Lines Matching refs:pfree_head
269 static void *_sram_alloc(size_t size, struct sram_piece *pfree_head, in _sram_alloc() argument
274 if (size <= 0 || !pfree_head || !pused_head) in _sram_alloc()
280 pslot = pfree_head->next; in _sram_alloc()
281 plast = pfree_head; in _sram_alloc()
326 static void *_sram_alloc_max(struct sram_piece *pfree_head, in _sram_alloc_max() argument
332 if (!pfree_head || !pused_head) in _sram_alloc_max()
335 pmax = pslot = pfree_head->next; in _sram_alloc_max()
349 return _sram_alloc(*psize, pfree_head, pused_head); in _sram_alloc_max()
354 struct sram_piece *pfree_head, in _sram_free() argument
359 if (!pfree_head || !pused_head) in _sram_free()
380 pslot = pfree_head->next; in _sram_free()
381 plast = pfree_head; in _sram_free()
388 if (plast != pfree_head && plast->paddr + plast->size == pavail->paddr) { in _sram_free()
805 struct sram_piece *pfree_head, in _sram_proc_show() argument
810 if (!pfree_head || !pused_head) in _sram_proc_show()
826 pslot = pfree_head->next; in _sram_proc_show()