Lines Matching refs:mem_block
41 static struct mem_block *split_block(struct mem_block *p, int start, int size,
46 struct mem_block *newblock =
63 struct mem_block *newblock =
83 static struct mem_block *alloc_block(struct mem_block *heap, int size,
86 struct mem_block *p;
98 static struct mem_block *find_block(struct mem_block *heap, int start)
100 struct mem_block *p;
109 static void free_block(struct mem_block *p)
117 struct mem_block *q = p->next;
125 struct mem_block *q = p->prev;
135 static int init_heap(struct mem_block **heap, int start, int size)
137 struct mem_block *blocks = drm_alloc(sizeof(*blocks), DRM_MEM_BUFS);
161 void radeon_mem_release(DRMFILE filp, struct mem_block *heap)
163 struct mem_block *p;
178 struct mem_block *q = p->next;
189 void radeon_mem_takedown(struct mem_block **heap)
191 struct mem_block *p;
197 struct mem_block *q = p;
208 static struct mem_block **get_heap(drm_radeon_private_t * dev_priv, int region)
225 struct mem_block *block, **heap;
263 struct mem_block *block, **heap;
293 struct mem_block **heap;