Lines Matching refs:mem_block
34 mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
40 const struct mem_block *p; in mmDumpMemInfo()
60 struct mem_block *
63 struct mem_block *heap, *block; in mmInit()
68 heap = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
72 block = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
97 static struct mem_block *
98 SliceBlock(struct mem_block *p, in SliceBlock()
102 struct mem_block *newblock; in SliceBlock()
106 newblock = (struct mem_block*) calloc(1, sizeof(struct mem_block)); in SliceBlock()
130 newblock = (struct mem_block*) calloc(1, sizeof(struct mem_block)); in SliceBlock()
167 struct mem_block *
168 mmAllocMem(struct mem_block *heap, unsigned size, unsigned align2, unsigned startSearch) in mmAllocMem()
170 struct mem_block *p; in mmAllocMem()
200 struct mem_block *
201 mmFindBlock(struct mem_block *heap, unsigned start) in mmFindBlock()
203 struct mem_block *p; in mmFindBlock()
215 Join2Blocks(struct mem_block *p) in Join2Blocks()
222 struct mem_block *q = p->next; in Join2Blocks()
240 mmFreeMem(struct mem_block *b) in mmFreeMem()
269 mmDestroy(struct mem_block *heap) in mmDestroy()
271 struct mem_block *p; in mmDestroy()
277 struct mem_block *next = p->next; in mmDestroy()