Lines Matching refs:mem_block
43 static struct mem_block *split_block(struct mem_block *p, int start, int size,
48 struct mem_block *newblock = malloc(sizeof(*newblock),
65 struct mem_block *newblock = malloc(sizeof(*newblock),
85 static struct mem_block *alloc_block(struct mem_block *heap, int size,
88 struct mem_block *p;
100 static struct mem_block *find_block(struct mem_block *heap, int start)
102 struct mem_block *p;
111 static void free_block(struct mem_block *p)
119 struct mem_block *q = p->next;
127 struct mem_block *q = p->prev;
137 static int init_heap(struct mem_block **heap, int start, int size)
139 struct mem_block *blocks = malloc(sizeof(*blocks),
163 void radeon_mem_release(struct drm_file *file_priv, struct mem_block *heap)
165 struct mem_block *p;
180 struct mem_block *q = p->next;
191 void radeon_mem_takedown(struct mem_block **heap)
193 struct mem_block *p;
199 struct mem_block *q = p;
210 static struct mem_block **get_heap(drm_radeon_private_t * dev_priv, int region)
226 struct mem_block *block, **heap;
261 struct mem_block *block, **heap;
287 struct mem_block **heap;