Lines Matching refs:mem_block
36 drm_private void mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
42 const struct mem_block *p; in mmDumpMemInfo()
62 drm_private struct mem_block *mmInit(int ofs, int size) in mmInit()
64 struct mem_block *heap, *block; in mmInit()
69 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
73 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
97 static struct mem_block *SliceBlock(struct mem_block *p, in SliceBlock()
101 struct mem_block *newblock; in SliceBlock()
106 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
131 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
167 drm_private struct mem_block *mmAllocMem(struct mem_block *heap, int size, in mmAllocMem()
170 struct mem_block *p; in mmAllocMem()
199 static int Join2Blocks(struct mem_block *p) in Join2Blocks()
206 struct mem_block *q = p->next; in Join2Blocks()
223 drm_private int mmFreeMem(struct mem_block *b) in mmFreeMem()
250 drm_private void mmDestroy(struct mem_block *heap) in mmDestroy()
252 struct mem_block *p; in mmDestroy()
258 struct mem_block *next = p->next; in mmDestroy()