Home
last modified time | relevance | path

Searched refs:file_private (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/
Ddrm_syncobj.c160 struct drm_syncobj *drm_syncobj_find(struct drm_file *file_private, in drm_syncobj_find() argument
165 spin_lock(&file_private->syncobj_table_lock); in drm_syncobj_find()
168 syncobj = idr_find(&file_private->syncobj_idr, handle); in drm_syncobj_find()
172 spin_unlock(&file_private->syncobj_table_lock); in drm_syncobj_find()
316 int drm_syncobj_find_fence(struct drm_file *file_private, in drm_syncobj_find_fence() argument
320 struct drm_syncobj *syncobj = drm_syncobj_find(file_private, handle); in drm_syncobj_find_fence()
440 int drm_syncobj_get_handle(struct drm_file *file_private, in drm_syncobj_get_handle() argument
449 spin_lock(&file_private->syncobj_table_lock); in drm_syncobj_get_handle()
450 ret = idr_alloc(&file_private->syncobj_idr, syncobj, 1, 0, GFP_NOWAIT); in drm_syncobj_get_handle()
451 spin_unlock(&file_private->syncobj_table_lock); in drm_syncobj_get_handle()
[all …]
Ddrm_internal.h131 void drm_gem_open(struct drm_device *dev, struct drm_file *file_private);
132 void drm_gem_release(struct drm_device *dev, struct drm_file *file_private);
187 void drm_syncobj_open(struct drm_file *file_private);
188 void drm_syncobj_release(struct drm_file *file_private);
190 struct drm_file *file_private);
192 struct drm_file *file_private);
194 struct drm_file *file_private);
196 struct drm_file *file_private);
198 struct drm_file *file_private);
200 struct drm_file *file_private);
[all …]
Ddrm_gem.c921 drm_gem_open(struct drm_device *dev, struct drm_file *file_private) in drm_gem_open() argument
923 idr_init_base(&file_private->object_idr, 1); in drm_gem_open()
924 spin_lock_init(&file_private->table_lock); in drm_gem_open()
937 drm_gem_release(struct drm_device *dev, struct drm_file *file_private) in drm_gem_release() argument
939 idr_for_each(&file_private->object_idr, in drm_gem_release()
940 &drm_gem_object_release_handle, file_private); in drm_gem_release()
941 idr_destroy(&file_private->object_idr); in drm_gem_release()