Lines Matching refs:mem_block
46 static void mark_block(drm_device_t * dev, struct mem_block *p, int in_use)
91 static struct mem_block *split_block(struct mem_block *p, int start, int size,
96 struct mem_block *newblock =
113 struct mem_block *newblock =
133 static struct mem_block *alloc_block(struct mem_block *heap, int size,
136 struct mem_block *p;
148 static struct mem_block *find_block(struct mem_block *heap, int start)
150 struct mem_block *p;
159 static void free_block(struct mem_block *p)
167 struct mem_block *q = p->next;
175 struct mem_block *q = p->prev;
185 static int init_heap(struct mem_block **heap, int start, int size)
187 struct mem_block *blocks = drm_alloc(sizeof(*blocks), DRM_MEM_BUFLISTS);
211 void i915_mem_release(drm_device_t * dev, DRMFILE filp, struct mem_block *heap)
213 struct mem_block *p;
230 struct mem_block *q = p->next;
241 void i915_mem_takedown(struct mem_block **heap)
243 struct mem_block *p;
249 struct mem_block *q = p;
258 static struct mem_block **get_heap(drm_i915_private_t * dev_priv, int region)
275 struct mem_block *block, **heap;
315 struct mem_block *block, **heap;
346 struct mem_block **heap;
374 struct mem_block **heap;