Lines Matching refs:ucontext
267 struct ib_ucontext *ucontext = in alloc_uobj() local
270 if (IS_ERR(ucontext)) in alloc_uobj()
271 return ERR_CAST(ucontext); in alloc_uobj()
272 attrs->context = ucontext; in alloc_uobj()
855 struct ib_ucontext *ucontext = ufile->ucontext; in ufile_destroy_ucontext() local
856 struct ib_device *ib_dev = ucontext->device; in ufile_destroy_ucontext()
866 ib_dev->ops.disassociate_ucontext(ucontext); in ufile_destroy_ucontext()
869 ib_rdmacg_uncharge(&ucontext->cg_obj, ib_dev, in ufile_destroy_ucontext()
872 rdma_restrack_del(&ucontext->res); in ufile_destroy_ucontext()
874 ib_dev->ops.dealloc_ucontext(ucontext); in ufile_destroy_ucontext()
875 WARN_ON(!xa_empty(&ucontext->mmap_xa)); in ufile_destroy_ucontext()
876 kfree(ucontext); in ufile_destroy_ucontext()
878 ufile->ucontext = NULL; in ufile_destroy_ucontext()
885 struct ib_ucontext *ucontext = ufile->ucontext; in __uverbs_cleanup_ufile() local
886 struct ib_device *ib_dev = ucontext->device; in __uverbs_cleanup_ufile()
939 if (!ufile->ucontext) in uverbs_destroy_ufile_hw()
1036 struct ib_ucontext *ucontext; in rdma_uattrs_has_raw_cap() local
1041 ucontext = ib_uverbs_get_ucontext_file(ufile); in rdma_uattrs_has_raw_cap()
1042 if (IS_ERR(ucontext)) in rdma_uattrs_has_raw_cap()
1044 has_cap = rdma_dev_has_raw_cap(ucontext->device); in rdma_uattrs_has_raw_cap()