Home
last modified time | relevance | path

Searched refs:tfile (Results 1 – 21 of 21) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/ttm/
Dttm_object.c127 struct ttm_object_file *tfile; member
133 ttm_object_file_ref(struct ttm_object_file *tfile) in ttm_object_file_ref() argument
135 kref_get(&tfile->refcount); in ttm_object_file_ref()
136 return tfile; in ttm_object_file_ref()
141 struct ttm_object_file *tfile = in ttm_object_file_destroy() local
144 kfree(tfile); in ttm_object_file_destroy()
150 struct ttm_object_file *tfile = *p_tfile; in ttm_object_file_unref() local
153 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref()
157 int ttm_base_object_init(struct ttm_object_file *tfile, in ttm_base_object_init() argument
165 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init()
[all …]
Dttm_lock.c232 struct ttm_object_file *tfile) in ttm_vt_lock() argument
255 ret = ttm_base_object_init(tfile, &lock->base, false, in ttm_vt_lock()
260 lock->vt_holder = tfile; in ttm_vt_lock()
/linux-4.1.27/drivers/net/
Dtun.c328 struct tun_file *tfile) in tun_flow_update() argument
333 u16 queue_index = tfile->queue_index; in tun_flow_update()
344 if (tun->numqueues == 1 || tfile->detached) in tun_flow_update()
432 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue() argument
434 tfile->detached = tun; in tun_disable_queue()
435 list_add_tail(&tfile->next, &tun->disabled); in tun_disable_queue()
439 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue() argument
441 struct tun_struct *tun = tfile->detached; in tun_enable_queue()
443 tfile->detached = NULL; in tun_enable_queue()
444 list_del_init(&tfile->next); in tun_enable_queue()
[all …]
/linux-4.1.27/include/drm/ttm/
Dttm_object.h130 struct ttm_object_file *tfile; member
175 extern int ttm_base_object_init(struct ttm_object_file *tfile,
196 *tfile, uint32_t key);
244 extern int ttm_ref_object_add(struct ttm_object_file *tfile,
248 extern bool ttm_ref_object_exists(struct ttm_object_file *tfile,
262 extern int ttm_ref_object_base_unref(struct ttm_object_file *tfile,
324 extern int ttm_prime_object_init(struct ttm_object_file *tfile,
342 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile,
344 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile,
Dttm_lock.h188 struct ttm_object_file *tfile);
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c124 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_fd_to_handle() local
126 return ttm_prime_fd_to_handle(tfile, fd, handle); in vmw_prime_fd_to_handle()
134 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_handle_to_fd() local
136 return ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
Dvmwgfx_resource.c297 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument
307 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
340 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument
350 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
359 ret = vmw_user_dmabuf_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
482 struct ttm_object_file *tfile, in vmw_user_dmabuf_alloc() argument
508 ret = ttm_prime_object_init(tfile, in vmw_user_dmabuf_alloc()
539 struct ttm_object_file *tfile) in vmw_user_dmabuf_verify_access() argument
549 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_dmabuf_verify_access()
568 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_grab() argument
[all …]
Dvmwgfx_surface.c673 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local
675 return ttm_ref_object_base_unref(tfile, arg->sid, TTM_REF_USAGE); in vmw_surface_destroy_ioctl()
698 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local
828 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl()
848 ret = vmw_user_dmabuf_alloc(dev_priv, tfile, in vmw_surface_define_ioctl()
861 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl()
897 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local
904 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference()
944 ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL); in vmw_surface_handle_reference()
958 (void) ttm_ref_object_base_unref(tfile, handle, TTM_REF_USAGE); in vmw_surface_handle_reference()
[all …]
Dvmwgfx_shader.c333 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local
335 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_shader_destroy_ioctl()
344 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument
379 ushader->base.tfile = NULL; in vmw_user_shader_alloc()
392 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc()
466 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define_ioctl() local
472 ret = vmw_user_dmabuf_lookup(tfile, arg->buffer_handle, in vmw_shader_define_ioctl()
509 shader_type, tfile, &arg->shader_handle); in vmw_shader_define_ioctl()
Dvmwgfx_fence.c593 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local
627 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create()
713 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local
730 base = ttm_base_object_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl()
759 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_fence_obj_wait_ioctl()
772 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local
775 base = ttm_base_object_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl()
805 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_obj_unref_ioctl()
1125 ret = ttm_ref_object_add(vmw_fp->tfile, base, in vmw_fence_event_ioctl()
1169 ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_event_ioctl()
Dvmwgfx_drv.h80 struct ttm_object_file *tfile; member
616 struct ttm_object_file *tfile,
622 struct ttm_object_file *tfile,
633 struct ttm_object_file *tfile);
635 struct ttm_object_file *tfile,
641 extern int vmw_user_dmabuf_reference(struct ttm_object_file *tfile,
653 extern int vmw_user_dmabuf_lookup(struct ttm_object_file *tfile,
661 struct ttm_object_file *tfile,
893 struct ttm_object_file *tfile,
990 struct ttm_object_file *tfile,
[all …]
Dvmwgfx_context.c463 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local
465 return ttm_ref_object_base_unref(tfile, arg->cid, TTM_REF_USAGE); in vmw_context_destroy_ioctl()
476 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define_ioctl() local
513 ctx->base.tfile = NULL; in vmw_context_define_ioctl()
524 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define_ioctl()
Dvmwgfx_overlay.c464 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_overlay_ioctl() local
476 ret = vmw_user_stream_lookup(dev_priv, tfile, &arg->stream_id, &res); in vmw_overlay_ioctl()
487 ret = vmw_user_dmabuf_lookup(tfile, arg->handle, &buf, NULL); in vmw_overlay_ioctl()
Dvmwgfx_ioctl.c224 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local
277 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
Dvmwgfx_buffer.c761 struct ttm_object_file *tfile = in vmw_verify_access() local
762 vmw_fpriv((struct drm_file *)filp->private_data)->tfile; in vmw_verify_access()
764 return vmw_user_dmabuf_verify_access(bo, tfile); in vmw_verify_access()
Dvmwgfx_drv.c946 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
961 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open()
962 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
1162 ret = ttm_vt_lock(&active->lock, false, vmw_fp->tfile); in vmw_master_set()
1211 ret = ttm_vt_lock(&vmaster->lock, false, vmw_fp->tfile); in vmw_master_drop()
Dvmwgfx_kms.c200 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_du_crtc_cursor_set() local
202 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_du_crtc_cursor_set()
290 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
1136 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_kms_fb_create() local
1173 user_obj = ttm_base_object_lookup(tfile, mode_cmd.handle); in vmw_kms_fb_create()
1184 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_kms_fb_create()
Dvmwgfx_execbuf.c542 sw_context->fp->tfile, in vmw_cmd_res_check()
890 ret = vmw_user_dmabuf_lookup(sw_context->fp->tfile, handle, &vmw_bo, in vmw_translate_mob_ptr()
953 ret = vmw_user_dmabuf_lookup(sw_context->fp->tfile, handle, &vmw_bo, in vmw_translate_guest_ptr()
1276 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, in vmw_cmd_dma()
2414 ttm_ref_object_base_unref(vmw_fp->tfile, in vmw_execbuf_copy_fence_user()
/linux-4.1.27/drivers/remoteproc/
Dremoteproc_debugfs.c193 void rproc_remove_trace_file(struct dentry *tfile) in rproc_remove_trace_file() argument
195 debugfs_remove(tfile); in rproc_remove_trace_file()
201 struct dentry *tfile; in rproc_create_trace_file() local
203 tfile = debugfs_create_file(name, 0400, rproc->dbg_dir, in rproc_create_trace_file()
205 if (!tfile) { in rproc_create_trace_file()
210 return tfile; in rproc_create_trace_file()
Dremoteproc_internal.h57 void rproc_remove_trace_file(struct dentry *tfile);
/linux-4.1.27/fs/
Deventpoll.c1265 struct file *tfile, int fd, int full_check) in ep_insert() argument
1284 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert()
1319 spin_lock(&tfile->f_lock); in ep_insert()
1320 list_add_tail_rcu(&epi->fllink, &tfile->f_ep_links); in ep_insert()
1321 spin_unlock(&tfile->f_lock); in ep_insert()
1360 spin_lock(&tfile->f_lock); in ep_insert()
1362 spin_unlock(&tfile->f_lock); in ep_insert()