Lines Matching refs:tfile
295 struct ttm_object_file *tfile, in vmw_user_resource_lookup_handle() argument
305 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
338 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument
348 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
357 ret = vmw_user_dmabuf_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
480 struct ttm_object_file *tfile, in vmw_user_dmabuf_alloc() argument
506 ret = ttm_prime_object_init(tfile, in vmw_user_dmabuf_alloc()
537 struct ttm_object_file *tfile) in vmw_user_dmabuf_verify_access() argument
547 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_dmabuf_verify_access()
566 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_grab() argument
593 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_dmabuf_synccpu_grab()
610 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_release() argument
614 return ttm_ref_object_base_unref(tfile, handle, in vmw_user_dmabuf_synccpu_release()
638 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_dmabuf_synccpu_ioctl() local
652 ret = vmw_user_dmabuf_lookup(tfile, arg->handle, &dma_buf, in vmw_user_dmabuf_synccpu_ioctl()
659 ret = vmw_user_dmabuf_synccpu_grab(user_bo, tfile, arg->flags); in vmw_user_dmabuf_synccpu_ioctl()
670 ret = vmw_user_dmabuf_synccpu_release(arg->handle, tfile, in vmw_user_dmabuf_synccpu_ioctl()
702 ret = vmw_user_dmabuf_alloc(dev_priv, vmw_fpriv(file_priv)->tfile, in vmw_dmabuf_alloc_ioctl()
727 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_dmabuf_unref_ioctl()
732 int vmw_user_dmabuf_lookup(struct ttm_object_file *tfile, in vmw_user_dmabuf_lookup() argument
739 base = ttm_base_object_lookup(tfile, handle); in vmw_user_dmabuf_lookup()
765 int vmw_user_dmabuf_reference(struct ttm_object_file *tfile, in vmw_user_dmabuf_reference() argument
777 return ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_dmabuf_reference()
862 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_stream_unref_ioctl() local
877 if (stream->base.tfile != tfile) { in vmw_stream_unref_ioctl()
882 ttm_ref_object_base_unref(tfile, stream->base.hash.key, TTM_REF_USAGE); in vmw_stream_unref_ioctl()
896 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_stream_claim_ioctl() local
933 stream->base.tfile = NULL; in vmw_stream_claim_ioctl()
944 ret = ttm_base_object_init(tfile, &stream->base, false, VMW_RES_STREAM, in vmw_stream_claim_ioctl()
960 struct ttm_object_file *tfile, in vmw_user_stream_lookup() argument
978 if (stream->base.tfile != tfile) { in vmw_user_stream_lookup()
1018 ret = vmw_user_dmabuf_alloc(dev_priv, vmw_fpriv(file_priv)->tfile, in vmw_dumb_create()
1044 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_dumb_map_offset() local
1048 ret = vmw_user_dmabuf_lookup(tfile, handle, &out_buf, NULL); in vmw_dumb_map_offset()
1070 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_dumb_destroy()