Lines Matching defs:ucontext
98 struct iwch_ucontext *ucontext = to_iwch_ucontext(context);
102 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry)
104 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx);
105 kfree(ucontext);
149 struct iwch_ucontext *ucontext = NULL;
160 ucontext = to_iwch_ucontext(ib_context);
186 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) {
202 if (ucontext) {
212 spin_lock(&ucontext->mmap_lock);
213 uresp.key = ucontext->key;
214 ucontext->key += PAGE_SIZE;
215 spin_unlock(&ucontext->mmap_lock);
237 insert_mmap(ucontext, mm);
353 struct iwch_ucontext *ucontext;
364 ucontext = to_iwch_ucontext(context);
366 mm = remove_mmap(ucontext, key, len);
863 struct iwch_ucontext *ucontext;
877 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context)
880 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
899 struct iwch_ucontext *ucontext;
938 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL;
939 if (!ucontext && wqsize < (rqsize + (2 * sqsize)))
951 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) {
989 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
1015 spin_lock(&ucontext->mmap_lock);
1016 uresp.key = ucontext->key;
1017 ucontext->key += PAGE_SIZE;
1018 uresp.db_key = ucontext->key;
1019 ucontext->key += PAGE_SIZE;
1020 spin_unlock(&ucontext->mmap_lock);
1030 insert_mmap(ucontext, mm1);
1034 insert_mmap(ucontext, mm2);