Lines Matching refs:file_priv
45 struct drm_file *file_priv) in split_block() argument
55 newblock->file_priv = NULL; in split_block()
72 newblock->file_priv = NULL; in split_block()
82 p->file_priv = file_priv; in split_block()
87 int align2, struct drm_file *file_priv) in alloc_block() argument
94 if (p->file_priv == NULL && start + size <= p->start + p->size) in alloc_block()
95 return split_block(p, start, size, file_priv); in alloc_block()
114 p->file_priv = NULL; in free_block()
119 if (p->next->file_priv == NULL) { in free_block()
127 if (p->prev->file_priv == NULL) { in free_block()
153 blocks->file_priv = NULL; in init_heap()
157 (*heap)->file_priv = (struct drm_file *) - 1; in init_heap()
164 void radeon_mem_release(struct drm_file *file_priv, struct mem_block *heap) in radeon_mem_release() argument
172 if (p->file_priv == file_priv) in radeon_mem_release()
173 p->file_priv = NULL; in radeon_mem_release()
180 while (p->file_priv == NULL && p->next->file_priv == NULL) { in radeon_mem_release()
223 int radeon_mem_alloc(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_alloc() argument
244 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv); in radeon_mem_alloc()
258 int radeon_mem_free(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_free() argument
277 if (block->file_priv != file_priv) in radeon_mem_free()
284 int radeon_mem_init_heap(struct drm_device *dev, void *data, struct drm_file *file_priv) in radeon_mem_init_heap() argument