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