| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | ttm_object.c | 127 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 D | ttm_object.h | 104 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 D | vmwgfx_prime.c | 79 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 D | vmwgfx_fence.c | 297 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_fence_create() local 321 ret = ttm_base_object_init(tfile, &ufence->base, false, in vmw_user_fence_create() 415 vmw_fence_obj_lookup(struct ttm_object_file *tfile, u32 handle) in vmw_fence_obj_lookup() argument 417 struct ttm_base_object *base = ttm_base_object_lookup(tfile, handle); in vmw_fence_obj_lookup() 444 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_wait_ioctl() local 461 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_wait_ioctl() 486 return ttm_ref_object_base_unref(tfile, arg->handle); in vmw_fence_obj_wait_ioctl() 497 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_fence_obj_signaled_ioctl() local 500 base = vmw_fence_obj_lookup(tfile, arg->handle); in vmw_fence_obj_signaled_ioctl() 523 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_fence_obj_unref_ioctl() [all …]
|
| H A D | vmwgfx_simple_resource.c | 146 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 D | vmwgfx_va.c | 121 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 D | vmwgfx_shader.c | 682 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_destroy_ioctl() local 684 return ttm_ref_object_base_unref(tfile, arg->handle); in vmw_shader_destroy_ioctl() 694 struct ttm_object_file *tfile, in vmw_user_shader_alloc() argument 709 ushader->base.tfile = NULL; in vmw_user_shader_alloc() 723 ret = ttm_base_object_init(tfile, &ushader->base, false, in vmw_user_shader_alloc() 778 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_shader_define() local 815 num_output_sig, tfile, shader_handle); in vmw_shader_define()
|
| H A D | vmwgfx_surface.c | 691 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 D | vmwgfx_context.c | 720 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 D | vmwgfx_ioctl.c | 174 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 D | vmwgfx_resource.c | 258 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument 268 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle() 297 struct ttm_object_file *tfile = vmw_fpriv(filp)->tfile; in vmw_user_object_lookup() local 303 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_object_lookup()
|
| H A D | vmwgfx_overlay.c | 425 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 D | vmwgfx_resource_priv.h | 151 vmw_simple_resource_lookup(struct ttm_object_file *tfile,
|
| H A D | vmwgfx_drv.c | 1202 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 D | vmwgfx_execbuf.c | 651 (dev_priv, sw_context->fp->tfile, *id_loc, converter, &res); in vmw_cmd_res_check() 1562 vmw_kms_cursor_snoop(srf, sw_context->fp->tfile, &vmw_bo->tbo, in vmw_cmd_dma() 3925 ttm_ref_object_base_unref(vmw_fp->tfile, fence_handle); in vmw_execbuf_copy_fence_user() 4076 (dev_priv, sw_context->fp->tfile, handle, in vmw_execbuf_tie_context()
|
| H A D | vmwgfx_cursor_plane.c | 318 struct ttm_object_file *tfile, in vmw_kms_cursor_snoop() argument
|
| /linux/drivers/net/ |
| H A D | tun.c | 232 struct tun_file *tfile = container_of(napi, struct tun_file, napi); in tun_napi_receive() local 233 struct sk_buff_head *queue = &tfile->sk.sk_write_queue; in tun_napi_receive() 270 static void tun_napi_init(struct tun_struct *tun, struct tun_file *tfile, in tun_napi_init() argument 273 tfile->napi_enabled = napi_en; in tun_napi_init() 274 tfile->napi_frags_enabled = napi_en && napi_frags; in tun_napi_init() 276 netif_napi_add_tx(tun->dev, &tfile->napi, tun_napi_poll); in tun_napi_init() 277 napi_enable(&tfile->napi); in tun_napi_init() 281 static void tun_napi_enable(struct tun_file *tfile) in tun_napi_enable() argument 283 if (tfile->napi_enabled) in tun_napi_enable() 284 napi_enable(&tfile->napi); in tun_napi_enable() [all …]
|
| /linux/drivers/remoteproc/ |
| H 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()
|
| /linux/fs/ |
| H A D | eventpoll.c | 1866 struct file *tfile = epi->ffd.file; in ep_register_epitem() local 1872 error = ep_attach_file(tfile, epi); in ep_register_epitem() 1882 list_file(tfile, ctx); in ep_register_epitem() 2584 struct file *epfile, struct file *tfile, bool nonblock) in ep_ctl_lock() argument 2596 !is_file_epoll(tfile)) in ep_ctl_lock() 2607 if (is_file_epoll(tfile)) { in ep_ctl_lock() 2608 tep = tfile->private_data; in ep_ctl_lock()
|