Lines Matching refs:ucontext
130 struct iwch_ucontext *ucontext = to_iwch_ucontext(context);
134 TAILQ_FOREACH_SAFE(mm, &ucontext->mmaps, entry, tmp) {
135 TAILQ_REMOVE(&ucontext->mmaps, mm, entry);
138 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx);
139 cxfree(ucontext);
155 mtx_init(&context->mmap_lock, "ucontext mmap", NULL, MTX_DEF);
187 struct iwch_ucontext *ucontext = NULL;
198 ucontext = to_iwch_ucontext(ib_context);
224 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) {
238 if (ucontext) {
248 mtx_lock(&ucontext->mmap_lock);
249 uresp.key = ucontext->key;
250 ucontext->key += PAGE_SIZE;
251 mtx_unlock(&ucontext->mmap_lock);
273 insert_mmap(ucontext, mm);
730 struct iwch_ucontext *ucontext;
749 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context)
752 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
771 struct iwch_ucontext *ucontext;
813 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL;
815 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) {
852 ucontext ? &ucontext->uctx : &rhp->rdev.uctx);
878 mtx_lock(&ucontext->mmap_lock);
879 uresp.key = ucontext->key;
880 ucontext->key += PAGE_SIZE;
881 uresp.db_key = ucontext->key;
882 ucontext->key += PAGE_SIZE;
883 mtx_unlock(&ucontext->mmap_lock);
893 insert_mmap(ucontext, mm1);
897 insert_mmap(ucontext, mm2);