Lines Matching defs:ucontext
100 struct iwch_ucontext *ucontext = to_iwch_ucontext(context);
104 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry)
106 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx);
107 kfree(ucontext);
151 struct iwch_ucontext *ucontext = NULL;
160 ucontext = to_iwch_ucontext(ib_context);
197 if (ucontext) {
207 spin_lock(&ucontext->mmap_lock);
208 uresp.key = ucontext->key;
209 ucontext->key += PAGE_SIZE;
210 spin_unlock(&ucontext->mmap_lock);
220 insert_mmap(ucontext, mm);
336 struct iwch_ucontext *ucontext;
347 ucontext = to_iwch_ucontext(context);
349 mm = remove_mmap(ucontext, key, len);
737 struct iwch_ucontext *ucontext;
751 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context)
754 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
773 struct iwch_ucontext *ucontext;
815 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL;
817 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) {
867 spin_lock(&ucontext->mmap_lock);
868 uresp.key = ucontext->key;
869 ucontext->key += PAGE_SIZE;
870 uresp.db_key = ucontext->key;
871 ucontext->key += PAGE_SIZE;
872 spin_unlock(&ucontext->mmap_lock);
882 insert_mmap(ucontext, mm1);
886 insert_mmap(ucontext, mm2);