Lines Matching refs:ucontext
724 if (!file->ucontext && in ib_uverbs_write()
767 if (!file->ucontext) { in ib_uverbs_write()
858 if (!file->ucontext) in ib_uverbs_mmap()
861 ret = ib_dev->mmap(file->ucontext, vma); in ib_uverbs_mmap()
921 file->ucontext = NULL; in ib_uverbs_open()
950 struct ib_ucontext *ucontext = NULL; in ib_uverbs_close() local
953 ucontext = file->ucontext; in ib_uverbs_close()
954 file->ucontext = NULL; in ib_uverbs_close()
960 if (ucontext) in ib_uverbs_close()
961 ib_uverbs_cleanup_ucontext(file, ucontext); in ib_uverbs_close()
1174 struct ib_ucontext *ucontext; in ib_uverbs_free_hw_resources() local
1179 ucontext = file->ucontext; in ib_uverbs_free_hw_resources()
1181 file->ucontext = NULL; in ib_uverbs_free_hw_resources()
1190 if (ucontext) { in ib_uverbs_free_hw_resources()
1191 ib_dev->disassociate_ucontext(ucontext); in ib_uverbs_free_hw_resources()
1192 ib_uverbs_cleanup_ucontext(file, ucontext); in ib_uverbs_free_hw_resources()