Lines Matching refs:mem_block
32 drm_private void mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
38 const struct mem_block *p; in mmDumpMemInfo()
58 drm_private struct mem_block *mmInit(int ofs, int size) in mmInit()
60 struct mem_block *heap, *block; in mmInit()
65 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
69 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
93 static struct mem_block *SliceBlock(struct mem_block *p, in SliceBlock()
97 struct mem_block *newblock; in SliceBlock()
102 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
127 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
163 drm_private struct mem_block *mmAllocMem(struct mem_block *heap, int size, in mmAllocMem()
166 struct mem_block *p; in mmAllocMem()
195 static int Join2Blocks(struct mem_block *p) in Join2Blocks()
202 struct mem_block *q = p->next; in Join2Blocks()
219 drm_private int mmFreeMem(struct mem_block *b) in mmFreeMem()
246 drm_private void mmDestroy(struct mem_block *heap) in mmDestroy()
248 struct mem_block *p; in mmDestroy()
254 struct mem_block *next = p->next; in mmDestroy()