Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c127 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()
139 static int ttm_tfile_find_ref_rcu(struct ttm_object_file *tfile, in ttm_tfile_find_ref_rcu() argument
145 hash_for_each_possible_rcu(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref_rcu()
154 static int ttm_tfile_find_ref(struct ttm_object_file *tfile, in ttm_tfile_find_ref() argument
160 hash_for_each_possible(tfile->ref_hash, hash, head, key) { in ttm_tfile_find_ref()
171 struct ttm_object_file *tfile = in ttm_object_file_destroy() local
174 kfree(tfile); in ttm_object_file_destroy()
[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,
302 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile,
304 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile,
H A Dvmwgfx_prime.c79 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_fd_to_handle() local
80 int ret = ttm_prime_fd_to_handle(tfile, fd, handle); in vmw_prime_fd_to_handle()
94 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_prime_handle_to_fd() local
100 ret = ttm_prime_handle_to_fd(tfile, handle, flags, prime_fd); in vmw_prime_handle_to_fd()
113 ret = ttm_prime_handle_to_fd(tfile, surf_handle, 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_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_surface.c691 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local
693 return ttm_ref_object_base_unref(tfile, arg->sid); in vmw_surface_destroy_ioctl()
717 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local
847 ret = ttm_prime_object_init(tfile, res->guest_memory_size, in vmw_surface_define_ioctl()
939 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_buffer_prime_to_surface_base() local
966 ret = ttm_ref_object_add(tfile, base, NULL, false); in vmw_buffer_prime_to_surface_base()
987 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local
994 ret = ttm_prime_fd_to_handle(tfile, u_handle, &handle); in vmw_surface_handle_reference()
1040 ret = ttm_ref_object_add(tfile, base, NULL, require_exist); in vmw_surface_handle_reference()
1054 (void) ttm_ref_object_base_unref(tfile, handle); in vmw_surface_handle_reference()
[all …]
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_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_ioctl.c174 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local
223 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
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_resource_priv.h151 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
H A Dvmwgfx_drv.h88 struct ttm_object_file *tfile; member
791 struct ttm_object_file *tfile,
801 struct ttm_object_file *tfile,
1045 struct ttm_object_file *tfile,
H A Dvmwgfx_drv.c1202 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
1216 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev); in vmw_driver_open()
1217 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
H A Dvmwgfx_execbuf.c651 (dev_priv, sw_context->fp->tfile, *id_loc, converter, &res); in vmw_cmd_res_check()
1552 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->tbo, in vmw_cmd_dma()
3909 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle); in vmw_execbuf_copy_fence_user()
4060 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
H A Dvmwgfx_cursor_plane.c318 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
/linux/drivers/net/
H A Dtun.c229 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive() local
230 struct sk_buff_head *queue = &tfile->sk.sk_write_queue; in tun_napi_receive()
267 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument
270 tfile->napi_enabled = napi_en; in tun_napi_init()
271 tfile->napi_frags_enabled = napi_en && napi_frags; in tun_napi_init()
273 netif_napi_add_tx(tun->dev, &tfile->napi, tun_napi_poll); in tun_napi_init()
274 napi_enable(&tfile->napi); in tun_napi_init()
278 static void tun_napi_enable(struct tun_file *tfile) in tun_napi_enable() argument
280 if (tfile->napi_enabled) in tun_napi_enable()
281 napi_enable(&tfile in tun_napi_enable()
284 tun_napi_disable(struct tun_file * tfile) tun_napi_disable() argument
290 tun_napi_del(struct tun_file * tfile) tun_napi_del() argument
296 tun_napi_frags_enabled(const struct tun_file * tfile) tun_napi_frags_enabled() argument
412 tun_flow_update(struct tun_struct * tun,u32 rxhash,struct tun_file * tfile) tun_flow_update() argument
529 tun_disable_queue(struct tun_struct * tun,struct tun_file * tfile) tun_disable_queue() argument
536 tun_enable_queue(struct tun_file * tfile) tun_enable_queue() argument
560 tun_queue_purge(struct tun_file * tfile) tun_queue_purge() argument
571 __tun_detach(struct tun_file * tfile,bool clean) __tun_detach() argument
629 tun_detach(struct tun_file * tfile,bool clean) tun_detach() argument
649 struct tun_file *tfile, *tmp; tun_detach_all() local
694 struct tun_file *tfile = file->private_data; tun_attach() local
785 tun_get(struct tun_file * tfile) tun_get() argument
1009 struct tun_file *tfile; tun_net_xmit() local
1132 struct tun_file *tfile; tun_xdp_set() local
1196 __tun_xdp_flush_tfile(struct tun_file * tfile) __tun_xdp_flush_tfile() argument
1208 struct tun_file *tfile; tun_xdp_xmit() local
1348 tun_sock_writeable(struct tun_struct * tun,struct tun_file * tfile) tun_sock_writeable() argument
1360 struct tun_file *tfile = file->private_data; tun_chr_poll() local
1392 tun_napi_alloc_frags(struct tun_file * tfile,size_t len,const struct iov_iter * it) tun_napi_alloc_frags() argument
1449 tun_alloc_skb(struct tun_file * tfile,size_t prepad,size_t len,size_t linear,int noblock) tun_alloc_skb() argument
1476 tun_rx_batched(struct tun_struct * tun,struct tun_file * tfile,struct sk_buff * skb,int more) tun_rx_batched() argument
1516 tun_can_build_skb(struct tun_struct * tun,struct tun_file * tfile,int len,int noblock,bool zerocopy) tun_can_build_skb() argument
1538 __tun_build_skb(struct tun_file * tfile,struct page_frag * alloc_frag,char * buf,int buflen,int len,int pad,int metasize) __tun_build_skb() argument
1599 tun_build_skb(struct tun_struct * tun,struct tun_file * tfile,struct iov_iter * from,struct virtio_net_hdr * hdr,int len,int * skb_xdp) tun_build_skb() argument
1695 tun_get_user(struct tun_struct * tun,struct tun_file * tfile,void * msg_control,struct iov_iter * from,int noblock,bool more) tun_get_user() argument
1990 struct tun_file *tfile = file->private_data; tun_chr_write_iter() local
2008 tun_put_user_xdp(struct tun_struct * tun,struct tun_file * tfile,struct xdp_frame * xdp_frame,struct iov_iter * iter) tun_put_user_xdp() argument
2036 tun_put_user(struct tun_struct * tun,struct tun_file * tfile,struct sk_buff * skb,struct iov_iter * iter) tun_put_user() argument
2118 tun_ring_recv(struct tun_file * tfile,int noblock,int * err) tun_ring_recv() argument
2159 tun_do_read(struct tun_struct * tun,struct tun_file * tfile,struct iov_iter * to,int noblock,void * ptr) tun_do_read() argument
2199 struct tun_file *tfile = file->private_data; tun_chr_read_iter() local
2354 struct tun_file *tfile; tun_sock_write_space() local
2379 tun_xdp_one(struct tun_struct * tun,struct tun_file * tfile,struct xdp_buff * xdp,int * flush,struct tun_page * tpage) tun_xdp_one() argument
2517 struct tun_file *tfile = container_of(sock, struct tun_file, socket); tun_sendmsg() local
2572 struct tun_file *tfile = container_of(sock, struct tun_file, socket); tun_recvmsg() local
2623 struct tun_file *tfile = container_of(sock, struct tun_file, socket); tun_peek_len() local
2700 struct tun_file *tfile = file->private_data; tun_set_iff() local
2907 struct tun_file *tfile; tun_detach_filter() local
2922 struct tun_file *tfile; tun_attach_filter() local
2941 struct tun_file *tfile; tun_set_sndbuf() local
2952 struct tun_file *tfile = file->private_data; tun_set_queue() local
3048 struct tun_file *tfile = file->private_data; __tun_chr_ioctl() local
3376 struct tun_file *tfile = file->private_data; tun_chr_fasync() local
3401 struct tun_file *tfile; tun_chr_open() local
3439 struct tun_file *tfile = file->private_data; tun_chr_close() local
3449 struct tun_file *tfile = file->private_data; tun_chr_show_fdinfo() local
3608 struct tun_file *tfile; tun_queue_resize() local
3649 struct tun_file *tfile; tun_device_event() local
3713 struct tun_file *tfile; tun_get_socket() local
3725 struct tun_file *tfile; tun_get_tx_ring() local
[all...]
/linux/drivers/remoteproc/
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.c575 trace->tfile = rproc_create_trace_file(name, rproc, trace); in rproc_handle_trace()
1225 rproc_remove_trace_file(trace->tfile); in rproc_resource_cleanup()
/linux/fs/
H A Deventpoll.c1850 struct file *tfile = epi->ffd.file; in ep_send_events()
1856 error = ep_attach_file(tfile, epi);
1866 list_file(tfile, ctx); in ep_timeout_to_timespec()
2548 * recently loop-checked (ep->gen == loop_check_gen), or @tfile is in do_compat_epoll_pwait()
2566 struct file *epfile, struct file *tfile, bool nonblock) in COMPAT_SYSCALL_DEFINE6()
2578 !is_file_epoll(tfile)) in COMPAT_SYSCALL_DEFINE6()
2589 if (is_file_epoll(tfile)) { in eventpoll_init()
2590 tep = tfile->private_data; in eventpoll_init()
1567 ep_insert(struct eventpoll * ep,const struct epoll_event * event,struct file * tfile,int fd,int full_check) ep_insert() argument