Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/ttm/
Dttm_object.c128 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 …]
Dttm_lock.c233 struct ttm_object_file *tfile) in ttm_vt_lock() argument
256 ret = ttm_base_object_init(tfile, &lock->base, false, in ttm_vt_lock()
261 lock->vt_holder = tfile; in ttm_vt_lock()
/Linux-v4.19/drivers/net/
Dtun.c278 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive() local
279 struct sk_buff_head *queue = &tfile->sk.sk_write_queue; in tun_napi_receive()
316 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument
319 tfile->napi_enabled = napi_en; in tun_napi_init()
320 tfile->napi_frags_enabled = napi_en && napi_frags; in tun_napi_init()
322 netif_napi_add(tun->dev, &tfile->napi, tun_napi_poll, in tun_napi_init()
324 napi_enable(&tfile->napi); in tun_napi_init()
328 static void tun_napi_disable(struct tun_file *tfile) in tun_napi_disable() argument
330 if (tfile->napi_enabled) in tun_napi_disable()
331 napi_disable(&tfile->napi); in tun_napi_disable()
[all …]
/Linux-v4.19/include/drm/ttm/
Dttm_object.h131 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,
Dttm_lock.h189 struct ttm_object_file *tfile);
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c110 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_fd_to_handle() local
112 return ttm_prime_fd_to_handle(tfile, fd, handle); in vmw_prime_fd_to_handle()
120 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_handle_to_fd() local
122 return ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
Dvmwgfx_bo.c591 struct ttm_object_file *tfile, in vmw_user_bo_alloc() argument
617 ret = ttm_prime_object_init(tfile, in vmw_user_bo_alloc()
649 struct ttm_object_file *tfile) in vmw_user_bo_verify_access() argument
659 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_bo_verify_access()
683 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_grab() argument
709 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_bo_synccpu_grab()
726 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_release() argument
730 return ttm_ref_object_base_unref(tfile, handle, in vmw_user_bo_synccpu_release()
756 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_bo_synccpu_ioctl() local
770 ret = vmw_user_bo_lookup(tfile, arg->handle, &vbo, in vmw_user_bo_synccpu_ioctl()
[all …]
Dvmwgfx_simple_resource.c151 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_simple_resource_create_ioctl() local
191 usimple->base.tfile = NULL; in vmw_simple_resource_create_ioctl()
202 ret = ttm_base_object_init(tfile, &usimple->base, false, in vmw_simple_resource_create_ioctl()
231 vmw_simple_resource_lookup(struct ttm_object_file *tfile, in vmw_simple_resource_lookup() argument
239 base = ttm_base_object_lookup(tfile, handle); in vmw_simple_resource_lookup()
Dvmwgfx_fence.c601 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local
639 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create()
774 vmw_fence_obj_lookup(struct ttm_object_file *tfile, u32 handle) in vmw_fence_obj_lookup() argument
776 struct ttm_base_object *base = ttm_base_object_lookup(tfile, handle); in vmw_fence_obj_lookup()
803 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local
820 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl()
845 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_fence_obj_wait_ioctl()
858 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local
861 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl()
887 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_obj_unref_ioctl()
[all …]
Dvmwgfx_surface.c693 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local
695 return ttm_ref_object_base_unref(tfile, arg->sid, TTM_REF_USAGE); in vmw_surface_destroy_ioctl()
718 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local
846 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl()
866 ret = vmw_user_bo_alloc(dev_priv, tfile, in vmw_surface_define_ioctl()
879 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl()
915 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local
923 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference()
963 ret = ttm_ref_object_add(tfile, base, TTM_REF_USAGE, NULL, in vmw_surface_handle_reference()
978 (void) ttm_ref_object_base_unref(tfile, handle, TTM_REF_USAGE); in vmw_surface_handle_reference()
[all …]
Dvmwgfx_va.c119 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()
Dvmwgfx_shader.c719 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local
721 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_shader_destroy_ioctl()
732 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument
771 ushader->base.tfile = NULL; in vmw_user_shader_alloc()
785 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc()
864 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local
870 ret = vmw_user_bo_lookup(tfile, buffer_handle, in vmw_shader_define()
905 num_output_sig, tfile, shader_handle); in vmw_shader_define()
Dvmwgfx_drv.h85 struct ttm_object_file *tfile; member
636 struct ttm_object_file *tfile,
642 struct ttm_object_file *tfile,
651 struct ttm_object_file *tfile,
693 struct ttm_object_file *tfile);
695 struct ttm_object_file *tfile,
701 extern int vmw_user_bo_reference(struct ttm_object_file *tfile,
710 extern int vmw_user_bo_lookup(struct ttm_object_file *tfile,
936 struct ttm_object_file *tfile,
1033 struct ttm_object_file *tfile,
[all …]
Dvmwgfx_context.c735 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local
737 return ttm_ref_object_base_unref(tfile, arg->cid, TTM_REF_USAGE); in vmw_context_destroy_ioctl()
748 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define() local
793 ctx->base.tfile = NULL; in vmw_context_define()
804 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
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_bo_lookup(tfile, arg->handle, &buf, NULL); in vmw_overlay_ioctl()
Dvmwgfx_resource.c228 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument
238 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
271 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument
281 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
290 ret = vmw_user_bo_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
Dvmwgfx_ioctl.c251 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local
304 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
Dvmwgfx_resource_priv.h131 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
Dvmwgfx_ttm_buffer.c798 struct ttm_object_file *tfile = in vmw_verify_access() local
799 vmw_fpriv((struct drm_file *)filp->private_data)->tfile; in vmw_verify_access()
801 return vmw_user_bo_verify_access(bo, tfile); in vmw_verify_access()
Dvmwgfx_drv.c1072 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
1086 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open()
1087 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
1275 ret = ttm_vt_lock(&active->lock, false, vmw_fp->tfile); in vmw_master_set()
1310 ret = ttm_vt_lock(&vmaster->lock, false, vmw_fp->tfile); in vmw_master_drop()
Dvmwgfx_kms.c142 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
1431 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_kms_fb_create() local
1447 user_obj = ttm_base_object_lookup(tfile, mode_cmd->handles[0]); in vmw_kms_fb_create()
1458 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_kms_fb_create()
Dvmwgfx_execbuf.c781 sw_context->fp->tfile, in vmw_cmd_res_check()
1292 ret = vmw_user_bo_lookup(sw_context->fp->tfile, handle, &vmw_bo, NULL); in vmw_translate_mob_ptr()
1352 ret = vmw_user_bo_lookup(sw_context->fp->tfile, handle, &vmw_bo, NULL); in vmw_translate_guest_ptr()
1765 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, in vmw_cmd_dma()
3920 ttm_ref_object_base_unref(vmw_fp->tfile, in vmw_execbuf_copy_fence_user()
4067 ret = vmw_user_resource_lookup_handle(dev_priv, sw_context->fp->tfile, in vmw_execbuf_tie_context()
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_debugfs.c284 void rproc_remove_trace_file(struct dentry *tfile) in rproc_remove_trace_file() argument
286 debugfs_remove(tfile); in rproc_remove_trace_file()
292 struct dentry *tfile; in rproc_create_trace_file() local
294 tfile = debugfs_create_file(name, 0400, rproc->dbg_dir, trace, in rproc_create_trace_file()
296 if (!tfile) { in rproc_create_trace_file()
301 return tfile; in rproc_create_trace_file()
Dremoteproc_internal.h38 void rproc_remove_trace_file(struct dentry *tfile);
/Linux-v4.19/fs/
Deventpoll.c1420 struct file *tfile, int fd, int full_check) in ep_insert() argument
1441 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert()
1476 spin_lock(&tfile->f_lock); in ep_insert()
1477 list_add_tail_rcu(&epi->fllink, &tfile->f_ep_links); in ep_insert()
1478 spin_unlock(&tfile->f_lock); in ep_insert()
1520 spin_lock(&tfile->f_lock); in ep_insert()
1522 spin_unlock(&tfile->f_lock); in ep_insert()