Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/gpu/drm/vmwgfx/
Dttm_object.c129 struct ttm_object_file *tfile; member
135 ttm_object_file_ref(struct ttm_object_file *tfile) in ttm_object_file_ref() argument
137 kref_get(&tfile->refcount); in ttm_object_file_ref()
138 return tfile; in ttm_object_file_ref()
143 struct ttm_object_file *tfile = in ttm_object_file_destroy() local
146 kfree(tfile); in ttm_object_file_destroy()
152 struct ttm_object_file *tfile = *p_tfile; in ttm_object_file_unref() local
155 kref_put(&tfile->refcount, ttm_object_file_destroy); in ttm_object_file_unref()
159 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_object.h104 struct ttm_object_file *tfile; member
150 extern int ttm_base_object_init(struct ttm_object_file *tfile,
167 *tfile, uint32_t key);
217 extern int ttm_ref_object_add(struct ttm_object_file *tfile,
233 extern int ttm_ref_object_base_unref(struct ttm_object_file *tfile,
292 extern int ttm_prime_object_init(struct ttm_object_file *tfile,
307 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile,
309 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile,
317 ttm_base_object_noref_lookup(struct ttm_object_file *tfile, uint32_t key);
Dvmwgfx_prime.c77 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
88 return ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
Dvmwgfx_simple_resource.c146 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_simple_resource_create_ioctl() local
162 usimple->base.tfile = NULL; in vmw_simple_resource_create_ioctl()
173 ret = ttm_base_object_init(tfile, &usimple->base, false, in vmw_simple_resource_create_ioctl()
202 vmw_simple_resource_lookup(struct ttm_object_file *tfile, in vmw_simple_resource_lookup() argument
210 base = ttm_base_object_lookup(tfile, handle); in vmw_simple_resource_lookup()
Dvmwgfx_fence.c590 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local
614 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create()
702 vmw_fence_obj_lookup(struct ttm_object_file *tfile, u32 handle) in vmw_fence_obj_lookup() argument
704 struct ttm_base_object *base = ttm_base_object_lookup(tfile, handle); in vmw_fence_obj_lookup()
731 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local
748 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl()
773 return ttm_ref_object_base_unref(tfile, arg->handle); in vmw_fence_obj_wait_ioctl()
785 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local
788 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl()
814 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_obj_unref_ioctl()
[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.c677 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local
679 return ttm_ref_object_base_unref(tfile, arg->handle); in vmw_shader_destroy_ioctl()
689 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument
704 ushader->base.tfile = NULL; in vmw_user_shader_alloc()
718 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc()
773 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local
807 num_output_sig, tfile, shader_handle); in vmw_shader_define()
Dvmwgfx_surface.c705 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local
707 return ttm_ref_object_base_unref(tfile, arg->sid); in vmw_surface_destroy_ioctl()
731 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()
867 ret = ttm_prime_object_init(tfile, res->backup_size, &user_srf->prime, in vmw_surface_define_ioctl()
899 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local
906 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference()
948 ret = ttm_ref_object_add(tfile, base, NULL, require_exist); in vmw_surface_handle_reference()
962 (void) ttm_ref_object_base_unref(tfile, handle); in vmw_surface_handle_reference()
983 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_reference_ioctl() local
[all …]
Dvmwgfx_context.c716 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local
718 return ttm_ref_object_base_unref(tfile, arg->cid); in vmw_context_destroy_ioctl()
729 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define() local
745 ctx->base.tfile = NULL; in vmw_context_define()
756 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
Dvmwgfx_ioctl.c173 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local
222 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
Dvmwgfx_resource.c255 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument
265 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
298 struct ttm_object_file *tfile, in vmw_user_resource_noref_lookup_handle() argument
305 base = ttm_base_object_noref_lookup(tfile, handle); in vmw_user_resource_noref_lookup_handle()
328 struct ttm_object_file *tfile = vmw_fpriv(filp)->tfile; in vmw_user_lookup_handle() local
334 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
Dvmwgfx_overlay.c431 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()
Dvmwgfx_resource_priv.h149 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
Dvmwgfx_drv.h101 struct ttm_object_file *tfile; member
820 struct ttm_object_file *tfile,
826 struct ttm_object_file *tfile,
835 struct ttm_object_file *tfile,
1226 struct ttm_object_file *tfile,
Dvmwgfx_drv.c1192 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
1206 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open()
1207 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
Dvmwgfx_execbuf.c687 (dev_priv, sw_context->fp->tfile, *id_loc, converter); in vmw_cmd_res_check()
1570 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header); in vmw_cmd_dma()
3920 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle); in vmw_execbuf_copy_fence_user()
4071 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
Dvmwgfx_kms.c271 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
/Linux-v6.1/drivers/net/
Dtun.c227 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive() local
228 struct sk_buff_head *queue = &tfile->sk.sk_write_queue; in tun_napi_receive()
265 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument
268 tfile->napi_enabled = napi_en; in tun_napi_init()
269 tfile->napi_frags_enabled = napi_en && napi_frags; in tun_napi_init()
271 netif_napi_add_tx(tun->dev, &tfile->napi, tun_napi_poll); in tun_napi_init()
272 napi_enable(&tfile->napi); in tun_napi_init()
276 static void tun_napi_enable(struct tun_file *tfile) in tun_napi_enable() argument
278 if (tfile->napi_enabled) in tun_napi_enable()
279 napi_enable(&tfile->napi); in tun_napi_enable()
[all …]
/Linux-v6.1/drivers/remoteproc/
Dremoteproc_internal.h22 struct dentry *tfile; member
66 void rproc_remove_trace_file(struct dentry *tfile);
Dremoteproc_debugfs.c381 void rproc_remove_trace_file(struct dentry *tfile) in rproc_remove_trace_file() argument
383 debugfs_remove(tfile); in rproc_remove_trace_file()
Dremoteproc_core.c573 trace->tfile = rproc_create_trace_file(name, rproc, trace); in rproc_handle_trace()
1222 rproc_remove_trace_file(trace->tfile); in rproc_resource_cleanup()
/Linux-v6.1/fs/
Deventpoll.c1445 struct file *tfile, int fd, int full_check) in ep_insert() argument
1453 if (is_file_epoll(tfile)) in ep_insert()
1454 tep = tfile->private_data; in ep_insert()
1471 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert()
1478 if (unlikely(attach_epitem(tfile, epi) < 0)) { in ep_insert()
1487 list_file(tfile); in ep_insert()