/linux-4.4.14/drivers/gpu/drm/ttm/ |
D | ttm_object.c | 127 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 …]
|
D | ttm_lock.c | 232 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.4.14/drivers/net/ |
D | tun.c | 382 struct tun_file *tfile) in tun_flow_update() argument 387 u16 queue_index = tfile->queue_index; in tun_flow_update() 398 if (tun->numqueues == 1 || tfile->detached) in tun_flow_update() 486 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue() argument 488 tfile->detached = tun; in tun_disable_queue() 489 list_add_tail(&tfile->next, &tun->disabled); in tun_disable_queue() 493 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue() argument 495 struct tun_struct *tun = tfile->detached; in tun_enable_queue() 497 tfile->detached = NULL; in tun_enable_queue() 498 list_del_init(&tfile->next); in tun_enable_queue() [all …]
|
/linux-4.4.14/include/drm/ttm/ |
D | ttm_object.h | 130 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,
|
D | ttm_lock.h | 188 struct ttm_object_file *tfile);
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_prime.c | 124 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()
|
D | vmwgfx_resource.c | 295 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument 305 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle() 338 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument 348 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle() 357 ret = vmw_user_dmabuf_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle() 480 struct ttm_object_file *tfile, in vmw_user_dmabuf_alloc() argument 506 ret = ttm_prime_object_init(tfile, in vmw_user_dmabuf_alloc() 537 struct ttm_object_file *tfile) in vmw_user_dmabuf_verify_access() argument 547 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_dmabuf_verify_access() 566 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_grab() argument [all …]
|
D | vmwgfx_surface.c | 677 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local 679 return ttm_ref_object_base_unref(tfile, arg->sid, TTM_REF_USAGE); in vmw_surface_destroy_ioctl() 702 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local 833 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl() 853 ret = vmw_user_dmabuf_alloc(dev_priv, tfile, in vmw_surface_define_ioctl() 866 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl() 902 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local 909 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference() 955 ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL); in vmw_surface_handle_reference() 969 (void) ttm_ref_object_base_unref(tfile, handle, TTM_REF_USAGE); in vmw_surface_handle_reference() [all …]
|
D | vmwgfx_fence.c | 593 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()
|
D | vmwgfx_shader.c | 714 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local 716 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_shader_destroy_ioctl() 727 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument 762 ushader->base.tfile = NULL; in vmw_user_shader_alloc() 776 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc() 851 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local 857 ret = vmw_user_dmabuf_lookup(tfile, buffer_handle, in vmw_shader_define() 892 num_output_sig, tfile, shader_handle); in vmw_shader_define()
|
D | vmwgfx_drv.h | 82 struct ttm_object_file *tfile; member 609 struct ttm_object_file *tfile, 615 struct ttm_object_file *tfile, 626 struct ttm_object_file *tfile); 628 struct ttm_object_file *tfile, 634 extern int vmw_user_dmabuf_reference(struct ttm_object_file *tfile, 646 extern int vmw_user_dmabuf_lookup(struct ttm_object_file *tfile, 654 struct ttm_object_file *tfile, 906 struct ttm_object_file *tfile, 1000 struct ttm_object_file *tfile, [all …]
|
D | vmwgfx_context.c | 734 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local 736 return ttm_ref_object_base_unref(tfile, arg->cid, TTM_REF_USAGE); in vmw_context_destroy_ioctl() 747 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define() local 788 ctx->base.tfile = NULL; in vmw_context_define() 799 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
|
D | vmwgfx_overlay.c | 464 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()
|
D | vmwgfx_ioctl.c | 250 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local 303 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
|
D | vmwgfx_kms.c | 170 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_du_crtc_cursor_set2() local 172 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_du_crtc_cursor_set2() 265 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument 978 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_kms_fb_create() local 1015 user_obj = ttm_base_object_lookup(tfile, mode_cmd.handle); in vmw_kms_fb_create() 1026 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_kms_fb_create()
|
D | vmwgfx_buffer.c | 774 struct ttm_object_file *tfile = in vmw_verify_access() local 775 vmw_fpriv((struct drm_file *)filp->private_data)->tfile; in vmw_verify_access() 777 return vmw_user_dmabuf_verify_access(bo, tfile); in vmw_verify_access()
|
D | vmwgfx_drv.c | 1000 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose() 1015 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open() 1016 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open() 1201 ret = ttm_vt_lock(&active->lock, false, vmw_fp->tfile); in vmw_master_set() 1236 ret = ttm_vt_lock(&vmaster->lock, false, vmw_fp->tfile); in vmw_master_drop()
|
D | vmwgfx_execbuf.c | 728 sw_context->fp->tfile, in vmw_cmd_res_check() 1239 ret = vmw_user_dmabuf_lookup(sw_context->fp->tfile, handle, &vmw_bo, in vmw_translate_mob_ptr() 1300 ret = vmw_user_dmabuf_lookup(sw_context->fp->tfile, handle, &vmw_bo, in vmw_translate_guest_ptr() 1714 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, in vmw_cmd_dma() 3725 ttm_ref_object_base_unref(vmw_fp->tfile, in vmw_execbuf_copy_fence_user() 3872 ret = vmw_user_resource_lookup_handle(dev_priv, sw_context->fp->tfile, in vmw_execbuf_tie_context()
|
/linux-4.4.14/drivers/remoteproc/ |
D | remoteproc_debugfs.c | 193 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()
|
D | remoteproc_internal.h | 57 void rproc_remove_trace_file(struct dentry *tfile);
|
/linux-4.4.14/fs/ |
D | eventpoll.c | 1265 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()
|