Lines Matching refs:mem_block
49 static void mark_block(struct drm_device * dev, struct mem_block *p, int in_use)
94 static struct mem_block *split_block(struct mem_block *p, int start, int size,
99 struct mem_block *newblock =
116 struct mem_block *newblock =
136 static struct mem_block *alloc_block(struct mem_block *heap, int size,
139 struct mem_block *p;
151 static struct mem_block *find_block(struct mem_block *heap, int start)
153 struct mem_block *p;
162 static void free_block(struct mem_block *p)
170 struct mem_block *q = p->next;
178 struct mem_block *q = p->prev;
188 static int init_heap(struct mem_block **heap, int start, int size)
190 struct mem_block *blocks = drm_alloc(sizeof(*blocks), DRM_MEM_BUFLISTS);
215 struct mem_block *heap)
217 struct mem_block *p;
234 struct mem_block *q = p->next;
245 void i915_mem_takedown(struct mem_block **heap)
247 struct mem_block *p;
253 struct mem_block *q = p;
262 static struct mem_block **get_heap(drm_i915_private_t * dev_priv, int region)
279 struct mem_block *block, **heap;
317 struct mem_block *block, **heap;
345 struct mem_block **heap;
369 struct mem_block **heap;