Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c139 return tfile; in ttm_object_file_ref()
177 kfree(tfile); in ttm_object_file_destroy()
200 base->tfile = ttm_object_file_ref(tfile); in ttm_base_object_init()
264 spin_lock(&tfile->lock); in ttm_base_object_lookup()
302 if (base->tfile != tfile && !base->shareable) in ttm_ref_object_add()
331 ref->tfile = tfile; in ttm_ref_object_add()
348 static void __releases(tfile->lock) __acquires(tfile->lock)
353 struct ttm_object_file *tfile = ref->tfile; in ttm_ref_object_release() local
410 struct ttm_object_file *tfile = kmalloc(sizeof(*tfile), GFP_KERNEL); in ttm_object_file_init() local
416 tfile->tdev = tdev; in ttm_object_file_init()
[all …]
H A Dttm_object.h104 struct ttm_object_file *tfile; member
150 extern int ttm_base_object_init(struct ttm_object_file *tfile,
167 *tfile, uint64_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,
288 extern int ttm_prime_object_init(struct ttm_object_file *tfile,
303 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile,
305 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile,
H A Dvmwgfx_prime.c77 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_fd_to_handle() local
78 int ret = ttm_prime_fd_to_handle(tfile, fd, handle); in vmw_prime_fd_to_handle()
91 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_handle_to_fd() local
95 ret = ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
H A 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()
H A 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()
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()
1036 struct ttm_object_file *tfile = vmw_fp->tfile; in vmw_fence_event_ioctl() local
1050 vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_event_ioctl()
1060 ret = ttm_ref_object_add(vmw_fp->tfile, base, in vmw_fence_event_ioctl()
[all …]
H A Dvmwgfx_va.c121 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_stream_unref_ioctl()
155 struct ttm_object_file *tfile, in vmw_user_stream_lookup() argument
160 vmw_simple_resource_lookup(tfile, *inout_id, &va_stream_func); in vmw_user_stream_lookup()
H A Dvmwgfx_shader.c680 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local
682 return ttm_ref_object_base_unref(tfile, arg->handle); in vmw_shader_destroy_ioctl()
692 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument
707 ushader->base.tfile = NULL; in vmw_user_shader_alloc()
721 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc()
776 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local
810 num_output_sig, tfile, shader_handle); in vmw_shader_define()
H A 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
837 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl()
905 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local
912 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference()
968 (void) ttm_ref_object_base_unref(tfile, handle); in vmw_surface_handle_reference()
989 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_reference_ioctl() local
1018 ttm_ref_object_base_unref(tfile, base->handle); in vmw_surface_reference_ioctl()
1424 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_gb_surface_define_internal() local
[all …]
H A 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()
H A Dvmwgfx_context.c720 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_destroy_ioctl() local
722 return ttm_ref_object_base_unref(tfile, arg->cid); in vmw_context_destroy_ioctl()
733 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_context_define() local
749 ctx->base.tfile = NULL; in vmw_context_define()
760 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
H A Dvmwgfx_resource_priv.h151 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
H A Dvmwgfx_resource.c256 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument
266 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
296 struct ttm_object_file *tfile = vmw_fpriv(filp)->tfile; in vmw_user_lookup_handle() local
302 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
H A Dvmwgfx_overlay.c425 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_overlay_ioctl() local
437 ret = vmw_user_stream_lookup(dev_priv, tfile, &arg->stream_id, &res); in vmw_overlay_ioctl()
H A Dvmwgfx_drv.h111 struct ttm_object_file *tfile; member
810 struct ttm_object_file *tfile,
820 struct ttm_object_file *tfile,
1064 struct ttm_object_file *tfile,
H A Dvmwgfx_drv.c1233 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
1247 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev); in vmw_driver_open()
1248 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
H A Dvmwgfx_execbuf.c668 (dev_priv, sw_context->fp->tfile, *id_loc, converter, &res); in vmw_cmd_res_check()
1563 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->tbo, header); in vmw_cmd_dma()
3913 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle); in vmw_execbuf_copy_fence_user()
4064 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
H A Dvmwgfx_kms.c363 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
/openbmc/linux/drivers/net/
H A Dtun.c721 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_detach_all()
727 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_detach_all()
767 if (rtnl_dereference(tfile->tun) && !tfile->detached) in tun_attach()
804 if (tfile->xdp_rxq.queue_index != tfile->queue_index) in tun_attach()
805 tfile->xdp_rxq.queue_index = tfile->queue_index; in tun_attach()
1145 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_net_xmit()
1269 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in __tun_xdp_flush_tfile()
3472 if (!tfile) in tun_chr_open()
3710 tfile->socket.sk->sk_write_space(tfile->socket.sk); in tun_device_event()
3775 if (!tfile) in tun_get_socket()
[all …]
/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_internal.h22 struct dentry *tfile; member
66 void rproc_remove_trace_file(struct dentry *tfile);
H A 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()
H A Dremoteproc_core.c579 trace->tfile = rproc_create_trace_file(name, rproc, trace); in rproc_handle_trace()
1229 rproc_remove_trace_file(trace->tfile); in rproc_resource_cleanup()
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dgit.py516 fd, tfile = tempfile.mkstemp(dir=os.path.dirname(filename))
518 yield tfile
521 os.chmod(tfile, (0o666 & ~umask))
522 os.rename(tfile, filename)
536 with create_atomic(ud.fullshallow) as tfile:
537 runfetchcmd("tar -czf %s ." % tfile, d, workdir=shallowclone)
546 with create_atomic(ud.fullmirror) as tfile:
550 % (tfile, mtime), d, workdir=ud.clonedir)
/openbmc/linux/fs/
H A Deventpoll.c1478 struct file *tfile, int fd, int full_check) in ep_insert() argument
1486 if (is_file_epoll(tfile)) in ep_insert()
1487 tep = tfile->private_data; in ep_insert()
1504 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert()
1511 if (unlikely(attach_epitem(tfile, epi) < 0)) { in ep_insert()
1520 list_file(tfile); in ep_insert()