| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | ttm_object.c | 140 return tfile; in ttm_object_file_ref() 148 kfree(tfile); in ttm_object_file_destroy() 173 base->tfile = ttm_object_file_ref(tfile); in ttm_base_object_init() 362 if (base->tfile != tfile && !base->shareable) in ttm_ref_object_add() 396 ref->tfile = tfile; in ttm_ref_object_add() 422 static void __releases(tfile->lock) __acquires(tfile->lock) 428 struct ttm_object_file *tfile = ref->tfile; in ttm_ref_object_release() local 497 struct ttm_object_file *tfile = kmalloc(sizeof(*tfile), GFP_KERNEL); in ttm_object_file_init() local 506 tfile->tdev = tdev; in ttm_object_file_init() 518 return tfile; in ttm_object_file_init() [all …]
|
| A D | ttm_object.h | 129 struct ttm_object_file *tfile; member 177 extern int ttm_base_object_init(struct ttm_object_file *tfile, 198 *tfile, uint32_t key); 248 extern int ttm_ref_object_add(struct ttm_object_file *tfile, 253 extern bool ttm_ref_object_exists(struct ttm_object_file *tfile, 267 extern int ttm_ref_object_base_unref(struct ttm_object_file *tfile, 329 extern int ttm_prime_object_init(struct ttm_object_file *tfile, 347 extern int ttm_prime_fd_to_handle(struct ttm_object_file *tfile, 349 extern int ttm_prime_handle_to_fd(struct ttm_object_file *tfile, 364 ttm_base_object_noref_lookup(struct ttm_object_file *tfile, uint32_t key);
|
| A 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()
|
| A D | vmwgfx_bo.c | 640 struct ttm_object_file *tfile, in vmw_user_bo_alloc() argument 665 ret = ttm_prime_object_init(tfile, in vmw_user_bo_alloc() 697 struct ttm_object_file *tfile) in vmw_user_bo_verify_access() argument 731 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_grab() argument 781 struct ttm_object_file *tfile, in vmw_user_bo_synccpu_release() argument 785 return ttm_ref_object_base_unref(tfile, handle, in vmw_user_bo_synccpu_release() 811 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_bo_synccpu_ioctl() local 825 ret = vmw_user_bo_lookup(tfile, arg->handle, &vbo, in vmw_user_bo_synccpu_ioctl() 947 base = ttm_base_object_lookup(tfile, handle); in vmw_user_bo_lookup() 996 base = ttm_base_object_noref_lookup(tfile, handle); in vmw_user_bo_noref_lookup() [all …]
|
| A D | vmwgfx_simple_resource.c | 151 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_simple_resource_create_ioctl() local 187 usimple->base.tfile = NULL; in vmw_simple_resource_create_ioctl() 198 ret = ttm_base_object_init(tfile, &usimple->base, false, in vmw_simple_resource_create_ioctl() 227 vmw_simple_resource_lookup(struct ttm_object_file *tfile, in vmw_simple_resource_lookup() argument 235 base = ttm_base_object_lookup(tfile, handle); in vmw_simple_resource_lookup()
|
| A D | vmwgfx_fence.c | 590 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local 628 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create() 792 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local 809 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl() 834 return ttm_ref_object_base_unref(tfile, arg->handle, in vmw_fence_obj_wait_ioctl() 847 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local 850 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl() 1099 struct ttm_object_file *tfile = vmw_fp->tfile; in vmw_fence_event_ioctl() local 1113 vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_event_ioctl() 1123 ret = ttm_ref_object_add(vmw_fp->tfile, base, in vmw_fence_event_ioctl() [all …]
|
| A 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()
|
| A D | vmwgfx_surface.c | 716 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_destroy_ioctl() local 742 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_define_ioctl() local 866 user_srf->prime.base.tfile = NULL; in vmw_surface_define_ioctl() 886 ret = vmw_user_bo_alloc(dev_priv, tfile, in vmw_surface_define_ioctl() 933 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_handle_reference() local 1019 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_surface_reference_ioctl() local 1454 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_gb_surface_define_internal() local 1558 ret = vmw_user_bo_alloc(dev_priv, tfile, in vmw_gb_surface_define_internal() 1639 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_gb_surface_reference_internal() local 1667 (void) ttm_ref_object_base_unref(tfile, base->handle, in vmw_gb_surface_reference_internal() [all …]
|
| A D | vmwgfx_ttm_glue.c | 67 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_mmap() local 79 ret = vmw_user_bo_verify_access(bo, tfile); in vmw_mmap()
|
| A 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() 881 num_output_sig, tfile, shader_handle); in vmw_shader_define()
|
| A D | vmwgfx_drv.h | 98 struct ttm_object_file *tfile; member 770 struct ttm_object_file *tfile, 776 struct ttm_object_file *tfile, 782 struct ttm_object_file *tfile, 791 struct ttm_object_file *tfile, 866 struct ttm_object_file *tfile); 868 struct ttm_object_file *tfile, 874 extern int vmw_user_bo_reference(struct ttm_object_file *tfile, 883 extern int vmw_user_bo_lookup(struct ttm_object_file *tfile, 894 vmw_user_bo_noref_lookup(struct ttm_object_file *tfile, u32 handle); [all …]
|
| A 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 771 ctx->base.tfile = NULL; in vmw_context_define() 782 ret = ttm_base_object_init(tfile, &ctx->base, false, VMW_RES_CONTEXT, in vmw_context_define()
|
| A D | vmwgfx_ioctl.c | 167 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_present_ioctl() local 216 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, arg->sid, in vmw_present_ioctl()
|
| A D | vmwgfx_resource.c | 255 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() 323 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument 333 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle() 342 ret = vmw_user_bo_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
|
| A 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()
|
| A D | vmwgfx_resource_priv.h | 149 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
|
| A D | vmwgfx_kms.c | 149 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument 1371 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_kms_fb_create() local 1387 user_obj = ttm_base_object_lookup(tfile, mode_cmd->handles[0]); in vmw_kms_fb_create() 1398 ret = vmw_user_lookup_handle(dev_priv, tfile, in vmw_kms_fb_create()
|
| A D | vmwgfx_drv.c | 1203 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose() 1217 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open() 1218 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
|
| A D | vmwgfx_execbuf.c | 687 (dev_priv, sw_context->fp->tfile, *id_loc, converter); in vmw_cmd_res_check() 1174 vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle); in vmw_translate_mob_ptr() 1229 vmw_bo = vmw_user_bo_noref_lookup(sw_context->fp->tfile, handle); in vmw_translate_guest_ptr() 1572 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->base, header); in vmw_cmd_dma() 3872 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle, in vmw_execbuf_copy_fence_user() 4022 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
|
| /linux/drivers/net/ |
| A D | tun.c | 710 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_detach_all() 716 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_detach_all() 755 if (rtnl_dereference(tfile->tun) && !tfile->detached) in tun_attach() 793 tfile->xdp_rxq.queue_index = tfile->queue_index; in tun_attach() 1070 if (!tfile) in tun_net_xmit() 1114 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in tun_net_xmit() 1238 tfile->socket.sk->sk_data_ready(tfile->socket.sk); in __tun_xdp_flush_tfile() 3371 if (!tfile) in tun_chr_open() 3388 sock_init_data(&tfile->socket, &tfile->sk); in tun_chr_open() 3607 tfile->socket.sk->sk_write_space(tfile->socket.sk); in tun_device_event() [all …]
|
| /linux/drivers/remoteproc/ |
| A 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()
|
| A D | remoteproc_internal.h | 22 struct dentry *tfile; member 39 void rproc_remove_trace_file(struct dentry *tfile);
|
| A D | remoteproc_core.c | 686 trace->tfile = rproc_create_trace_file(name, rproc, trace); in rproc_handle_trace() 687 if (!trace->tfile) { in rproc_handle_trace() 1339 rproc_remove_trace_file(trace->tfile); in rproc_resource_cleanup()
|
| /linux/fs/ |
| A D | eventpoll.c | 1438 struct file *tfile, int fd, int full_check) in ep_insert() argument 1446 if (is_file_epoll(tfile)) in ep_insert() 1447 tep = tfile->private_data; in ep_insert() 1464 ep_set_ffd(&epi->ffd, tfile, fd); in ep_insert() 1471 if (unlikely(attach_epitem(tfile, epi) < 0)) { in ep_insert() 1480 list_file(tfile); in ep_insert()
|