Lines Matching refs:tfile

297 				    struct ttm_object_file *tfile,  in vmw_user_resource_lookup_handle()  argument
307 base = ttm_base_object_lookup(tfile, handle); in vmw_user_resource_lookup_handle()
340 struct ttm_object_file *tfile, in vmw_user_lookup_handle() argument
350 ret = vmw_user_resource_lookup_handle(dev_priv, tfile, handle, in vmw_user_lookup_handle()
359 ret = vmw_user_dmabuf_lookup(tfile, handle, out_buf, NULL); in vmw_user_lookup_handle()
482 struct ttm_object_file *tfile, in vmw_user_dmabuf_alloc() argument
508 ret = ttm_prime_object_init(tfile, in vmw_user_dmabuf_alloc()
539 struct ttm_object_file *tfile) in vmw_user_dmabuf_verify_access() argument
549 if (likely(ttm_ref_object_exists(tfile, &vmw_user_bo->prime.base))) in vmw_user_dmabuf_verify_access()
568 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_grab() argument
595 ret = ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_dmabuf_synccpu_grab()
612 struct ttm_object_file *tfile, in vmw_user_dmabuf_synccpu_release() argument
616 return ttm_ref_object_base_unref(tfile, handle, in vmw_user_dmabuf_synccpu_release()
640 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_user_dmabuf_synccpu_ioctl() local
654 ret = vmw_user_dmabuf_lookup(tfile, arg->handle, &dma_buf, in vmw_user_dmabuf_synccpu_ioctl()
661 ret = vmw_user_dmabuf_synccpu_grab(user_bo, tfile, arg->flags); in vmw_user_dmabuf_synccpu_ioctl()
672 ret = vmw_user_dmabuf_synccpu_release(arg->handle, tfile, in vmw_user_dmabuf_synccpu_ioctl()
704 ret = vmw_user_dmabuf_alloc(dev_priv, vmw_fpriv(file_priv)->tfile, in vmw_dmabuf_alloc_ioctl()
729 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_dmabuf_unref_ioctl()
734 int vmw_user_dmabuf_lookup(struct ttm_object_file *tfile, in vmw_user_dmabuf_lookup() argument
741 base = ttm_base_object_lookup(tfile, handle); in vmw_user_dmabuf_lookup()
767 int vmw_user_dmabuf_reference(struct ttm_object_file *tfile, in vmw_user_dmabuf_reference() argument
779 return ttm_ref_object_add(tfile, &user_bo->prime.base, in vmw_user_dmabuf_reference()
864 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_stream_unref_ioctl() local
879 if (stream->base.tfile != tfile) { in vmw_stream_unref_ioctl()
884 ttm_ref_object_base_unref(tfile, stream->base.hash.key, TTM_REF_USAGE); in vmw_stream_unref_ioctl()
898 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_stream_claim_ioctl() local
934 stream->base.tfile = NULL; in vmw_stream_claim_ioctl()
945 ret = ttm_base_object_init(tfile, &stream->base, false, VMW_RES_STREAM, in vmw_stream_claim_ioctl()
962 struct ttm_object_file *tfile, in vmw_user_stream_lookup() argument
980 if (stream->base.tfile != tfile) { in vmw_user_stream_lookup()
1020 ret = vmw_user_dmabuf_alloc(dev_priv, vmw_fpriv(file_priv)->tfile, in vmw_dumb_create()
1046 struct ttm_object_file *tfile = vmw_fpriv(file_priv)->tfile; in vmw_dumb_map_offset() local
1050 ret = vmw_user_dmabuf_lookup(tfile, handle, &out_buf, NULL); in vmw_dumb_map_offset()
1072 return ttm_ref_object_base_unref(vmw_fpriv(file_priv)->tfile, in vmw_dumb_destroy()