Lines Matching refs:file_priv
43 struct drm_file *file_priv) in split_block() argument
53 newblock->file_priv = NULL; in split_block()
70 newblock->file_priv = NULL; in split_block()
80 p->file_priv = file_priv; in split_block()
85 int align2, struct drm_file *file_priv) in alloc_block() argument
92 if (p->file_priv == NULL && start + size <= p->start + p->size) in alloc_block()
93 return split_block(p, start, size, file_priv); in alloc_block()
112 p->file_priv = NULL; in free_block()
117 if (p->next->file_priv == NULL) { in free_block()
125 if (p->prev->file_priv == NULL) { in free_block()
151 blocks->file_priv = NULL; in init_heap()
154 (*heap)->file_priv = (struct drm_file *) - 1; in init_heap()
161 void radeon_mem_release(struct drm_file *file_priv, struct mem_block *heap) in radeon_mem_release() argument
169 if (p->file_priv == file_priv) in radeon_mem_release()
170 p->file_priv = NULL; in radeon_mem_release()
177 while (p->file_priv == NULL && p->next->file_priv == NULL) { in radeon_mem_release()
220 int radeon_mem_alloc(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_alloc() argument
241 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
255 int radeon_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_free() argument
274 if (block->file_priv != file_priv) in radeon_mem_free()
281 int radeon_mem_init_heap(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_init_heap() argument