/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | ttm_object.c | 128 struct ttm_object_file *tfile; member 134 ttm_object_file_ref(struct ttm_object_file *tfile) in ttm_object_file_ref() argument 136 kref_get(&tfile->refcount); in ttm_object_file_ref() 137 return tfile; in ttm_object_file_ref() 142 struct ttm_object_file *tfile = in ttm_object_file_destroy() local 145 kfree(tfile); in ttm_object_file_destroy() 151 struct ttm_object_file *tfile = *p_tfile; in ttm_object_file_unref() local 154 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref() 158 int ttm_base_object_init(struct ttm_object_file *tfile, in ttm_base_object_init() argument 166 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() [all …]
|
D | ttm_object.h | 128 struct ttm_object_file *tfile; member 176 extern int ttm_base_object_init(struct ttm_object_file *tfile, 197 *tfile, uint32_t key); 247 extern int ttm_ref_object_add(struct ttm_object_file *tfile, 252 extern bool ttm_ref_object_exists(struct ttm_object_file *tfile, 266 extern int ttm_ref_object_base_unref(struct ttm_object_file *tfile, 328 extern int ttm_prime_object_init(struct ttm_object_file *tfile, 346 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile, 348 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile, 363 ttm_base_object_noref_lookup(struct ttm_object_file *tfile, uint32_t key);
|
D | vmwgfx_prime.c | 77 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_fd_to_handle() local 79 return ttm_prime_fd_to_handle(tfile, fd, handle); in vmw_prime_fd_to_handle() 87 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_handle_to_fd() local 89 return ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
|
D | vmwgfx_bo.c | 597 struct ttm_object_file *tfile, in vmw_user_bo_alloc() argument 622 ret = ttm_prime_object_init(tfile, in vmw_user_bo_alloc() 654 struct ttm_object_file *tfile) in vmw_user_bo_verify_access() argument 664 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_bo_verify_access() 688 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_grab() argument 721 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_bo_synccpu_grab() 738 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_release() argument 742 return ttm_ref_object_base_unref(tfile, handle, in vmw_user_bo_synccpu_release() 768 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_bo_synccpu_ioctl() local 782 ret = vmw_user_bo_lookup(tfile, arg->handle, &vbo, in vmw_user_bo_synccpu_ioctl() [all …]
|
D | vmwgfx_simple_resource.c | 151 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_simple_resource_create_ioctl() local 192 usimple->base.tfile = NULL; in vmw_simple_resource_create_ioctl() 203 ret = ttm_base_object_init(tfile, &usimple->base, false, in vmw_simple_resource_create_ioctl() 232 vmw_simple_resource_lookup(struct ttm_object_file *tfile, in vmw_simple_resource_lookup() argument 240 base = ttm_base_object_lookup(tfile, handle); in vmw_simple_resource_lookup()
|
D | vmwgfx_fence.c | 606 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local 644 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create() 779 vmw_fence_obj_lookup(struct ttm_object_file *tfile, u32 handle) in vmw_fence_obj_lookup() argument 781 struct ttm_base_object *base = ttm_base_object_lookup(tfile, handle); in vmw_fence_obj_lookup() 808 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local 825 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl() 850 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_fence_obj_wait_ioctl() 863 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local 866 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl() 892 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_obj_unref_ioctl() [all …]
|
D | vmwgfx_va.c | 119 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_stream_unref_ioctl() 153 struct ttm_object_file *tfile, in vmw_user_stream_lookup() argument 158 vmw_simple_resource_lookup(tfile, *inout_id, &va_stream_func); in vmw_user_stream_lookup()
|
D | vmwgfx_surface.c | 713 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local 715 return ttm_ref_object_base_unref(tfile, arg->sid, TTM_REF_USAGE); in vmw_surface_destroy_ioctl() 739 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local 867 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl() 887 ret = vmw_user_bo_alloc(dev_priv, tfile, in vmw_surface_define_ioctl() 900 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl() 936 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local 943 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference() 986 ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL, in vmw_surface_handle_reference() 1001 (void) ttm_ref_object_base_unref(tfile, handle, TTM_REF_USAGE); in vmw_surface_handle_reference() [all …]
|
D | vmwgfx_shader.c | 707 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local 709 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_shader_destroy_ioctl() 720 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument 756 ushader->base.tfile = NULL; in vmw_user_shader_alloc() 770 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc() 846 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local 852 ret = vmw_user_bo_lookup(tfile, buffer_handle, in vmw_shader_define() 886 num_output_sig, tfile, shader_handle); in vmw_shader_define()
|
D | vmwgfx_drv.h | 94 struct ttm_object_file *tfile; member 763 struct ttm_object_file *tfile, 769 struct ttm_object_file *tfile, 775 struct ttm_object_file *tfile, 784 struct ttm_object_file *tfile, 854 struct ttm_object_file *tfile); 856 struct ttm_object_file *tfile, 862 extern int vmw_user_bo_reference(struct ttm_object_file *tfile, 871 extern int vmw_user_bo_lookup(struct ttm_object_file *tfile, 882 vmw_user_bo_noref_lookup(struct ttm_object_file *tfile, u32 handle); [all …]
|
D | vmwgfx_context.c | 721 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local 723 return ttm_ref_object_base_unref(tfile, arg->cid, TTM_REF_USAGE); in vmw_context_destroy_ioctl() 734 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define() local 775 ctx->base.tfile = NULL; in vmw_context_define() 786 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
|
D | vmwgfx_resource.c | 254 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument 264 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle() 299 struct ttm_object_file *tfile, in vmw_user_resource_noref_lookup_handle() argument 306 base = ttm_base_object_noref_lookup(tfile, handle); in vmw_user_resource_noref_lookup_handle() 324 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument 334 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle() 343 ret = vmw_user_bo_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
|
D | vmwgfx_overlay.c | 431 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_overlay_ioctl() local 443 ret = vmw_user_stream_lookup(dev_priv, tfile, &arg->stream_id, &res); in vmw_overlay_ioctl() 454 ret = vmw_user_bo_lookup(tfile, arg->handle, &buf, NULL); in vmw_overlay_ioctl()
|
D | ttm_lock.h | 184 struct ttm_object_file *tfile);
|
D | vmwgfx_ioctl.c | 257 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local 310 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
|
D | vmwgfx_resource_priv.h | 149 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
|
D | vmwgfx_ttm_buffer.c | 736 struct ttm_object_file *tfile = in vmw_verify_access() local 737 vmw_fpriv((struct drm_file *)filp->private_data)->tfile; in vmw_verify_access() 739 return vmw_user_bo_verify_access(bo, tfile); in vmw_verify_access()
|
D | vmwgfx_drv.c | 1075 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose() 1089 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open() 1090 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
|
D | vmwgfx_kms.c | 145 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument 1365 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_kms_fb_create() local 1381 user_obj = ttm_base_object_lookup(tfile, mode_cmd->handles[0]); in vmw_kms_fb_create() 1392 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_kms_fb_create()
|
D | vmwgfx_execbuf.c | 682 (dev_priv, sw_context->fp->tfile, *id_loc, converter); in vmw_cmd_res_check() 1169 vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle); in vmw_translate_mob_ptr() 1224 vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle); in vmw_translate_guest_ptr() 1567 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header); in vmw_cmd_dma() 3857 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle, in vmw_execbuf_copy_fence_user() 4009 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | tun.c | 238 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive() local 239 struct sk_buff_head *queue = &tfile->sk.sk_write_queue; in tun_napi_receive() 276 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument 279 tfile->napi_enabled = napi_en; in tun_napi_init() 280 tfile->napi_frags_enabled = napi_en && napi_frags; in tun_napi_init() 282 netif_tx_napi_add(tun->dev, &tfile->napi, tun_napi_poll, in tun_napi_init() 284 napi_enable(&tfile->napi); in tun_napi_init() 288 static void tun_napi_disable(struct tun_file *tfile) in tun_napi_disable() argument 290 if (tfile->napi_enabled) in tun_napi_disable() 291 napi_disable(&tfile->napi); in tun_napi_disable() [all …]
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | remoteproc_debugfs.c | 381 void rproc_remove_trace_file(struct dentry *tfile) in rproc_remove_trace_file() argument 383 debugfs_remove(tfile); in rproc_remove_trace_file() 389 struct dentry *tfile; in rproc_create_trace_file() local 391 tfile = debugfs_create_file(name, 0400, rproc->dbg_dir, trace, in rproc_create_trace_file() 393 if (!tfile) { in rproc_create_trace_file() 398 return tfile; in rproc_create_trace_file()
|
D | remoteproc_internal.h | 22 struct dentry *tfile; member 39 void rproc_remove_trace_file(struct dentry *tfile);
|
D | remoteproc_core.c | 679 trace->tfile = rproc_create_trace_file(name, rproc, trace); in rproc_handle_trace() 680 if (!trace->tfile) { in rproc_handle_trace() 1319 rproc_remove_trace_file(trace->tfile); in rproc_resource_cleanup()
|
/kernel/linux/linux-5.10/fs/ |
D | eventpoll.c | 1497 struct file *tfile, int fd, int full_check) in ep_insert() argument 1518 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert() 1531 spin_lock(&tfile->f_lock); in ep_insert() 1532 list_add_tail_rcu(&epi->fllink, &tfile->f_ep_links); in ep_insert() 1533 spin_unlock(&tfile->f_lock); in ep_insert() 1599 spin_lock(&tfile->f_lock); in ep_insert() 1601 spin_unlock(&tfile->f_lock); in ep_insert()
|