Lines Matching refs:mem_block
34 u_mmDumpMemInfo(const struct mem_block *heap) in u_mmDumpMemInfo()
41 const struct mem_block *p; in u_mmDumpMemInfo()
69 struct mem_block *
72 struct mem_block *heap, *block; in u_mmInit()
77 heap = CALLOC_STRUCT(mem_block); in u_mmInit()
81 block = CALLOC_STRUCT(mem_block); in u_mmInit()
106 static struct mem_block *
107 SliceBlock(struct mem_block *p, in SliceBlock()
111 struct mem_block *newblock; in SliceBlock()
115 newblock = CALLOC_STRUCT(mem_block); in SliceBlock()
139 newblock = CALLOC_STRUCT(mem_block); in SliceBlock()
176 struct mem_block *
177 u_mmAllocMem(struct mem_block *heap, int size, int align2, int startSearch) in u_mmAllocMem()
179 struct mem_block *p; in u_mmAllocMem()
216 struct mem_block *
217 u_mmFindBlock(struct mem_block *heap, int start) in u_mmFindBlock()
219 struct mem_block *p; in u_mmFindBlock()
231 Join2Blocks(struct mem_block *p) in Join2Blocks()
238 struct mem_block *q = p->next; in Join2Blocks()
256 u_mmFreeMem(struct mem_block *b) in u_mmFreeMem()
285 u_mmDestroy(struct mem_block *heap) in u_mmDestroy()
287 struct mem_block *p; in u_mmDestroy()
293 struct mem_block *next = p->next; in u_mmDestroy()