Lines Matching refs:file_priv
254 struct drm_file *file_priv = data; in drm_gem_object_release_handle() local
259 dev->driver->gem_close_object(obj, file_priv); in drm_gem_object_release_handle()
262 drm_gem_remove_prime_handles(obj, file_priv); in drm_gem_object_release_handle()
263 drm_vma_node_revoke(&obj->vma_node, file_priv); in drm_gem_object_release_handle()
345 drm_gem_handle_create_tail(struct drm_file *file_priv, in drm_gem_handle_create_tail() argument
362 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail()
364 ret = idr_alloc(&file_priv->object_idr, obj, 1, 0, GFP_NOWAIT); in drm_gem_handle_create_tail()
366 spin_unlock(&file_priv->table_lock); in drm_gem_handle_create_tail()
375 ret = drm_vma_node_allow(&obj->vma_node, file_priv); in drm_gem_handle_create_tail()
380 ret = dev->driver->gem_open_object(obj, file_priv); in drm_gem_handle_create_tail()
389 drm_vma_node_revoke(&obj->vma_node, file_priv); in drm_gem_handle_create_tail()
391 spin_lock(&file_priv->table_lock); in drm_gem_handle_create_tail()
392 idr_remove(&file_priv->object_idr, handle); in drm_gem_handle_create_tail()
393 spin_unlock(&file_priv->table_lock); in drm_gem_handle_create_tail()
409 int drm_gem_handle_create(struct drm_file *file_priv, in drm_gem_handle_create() argument
415 return drm_gem_handle_create_tail(file_priv, obj, handlep); in drm_gem_handle_create()
627 struct drm_file *file_priv) in drm_gem_close_ioctl() argument
635 ret = drm_gem_handle_delete(file_priv, args->handle); in drm_gem_close_ioctl()
653 struct drm_file *file_priv) in drm_gem_flink_ioctl() argument
662 obj = drm_gem_object_lookup(file_priv, args->handle); in drm_gem_flink_ioctl()
703 struct drm_file *file_priv) in drm_gem_open_ioctl() argument
723 ret = drm_gem_handle_create_tail(file_priv, obj, &handle); in drm_gem_open_ioctl()