Lines Matching refs:mem_block
44 static struct mem_block *split_block(struct mem_block *p, int start, int size,
49 struct mem_block *newblock =
66 struct mem_block *newblock =
86 static struct mem_block *alloc_block(struct mem_block *heap, int size,
89 struct mem_block *p;
101 static struct mem_block *find_block(struct mem_block *heap, int start)
103 struct mem_block *p;
112 static void free_block(struct mem_block *p)
120 struct mem_block *q = p->next;
128 struct mem_block *q = p->prev;
138 static int init_heap(struct mem_block **heap, int start, int size)
140 struct mem_block *blocks = drm_alloc(sizeof(*blocks), DRM_MEM_BUFS);
164 void radeon_mem_release(struct drm_file *file_priv, struct mem_block *heap)
166 struct mem_block *p;
181 struct mem_block *q = p->next;
192 void radeon_mem_takedown(struct mem_block **heap)
194 struct mem_block *p;
200 struct mem_block *q = p;
211 static struct mem_block **get_heap(drm_radeon_private_t * dev_priv, int region)
227 struct mem_block *block, **heap;
262 struct mem_block *block, **heap;
288 struct mem_block **heap;