Lines Matching refs:ucontext
67 struct iwch_ucontext *ucontext = to_iwch_ucontext(context); in iwch_dealloc_ucontext() local
71 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
73 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
74 kfree(ucontext); in iwch_dealloc_ucontext()
120 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
134 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
160 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
176 if (ucontext) { in iwch_create_cq()
186 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
187 uresp.key = ucontext->key; in iwch_create_cq()
188 ucontext->key += PAGE_SIZE; in iwch_create_cq()
189 spin_unlock(&ucontext->mmap_lock); in iwch_create_cq()
210 insert_mmap(ucontext, mm); in iwch_create_cq()
324 struct iwch_ucontext *ucontext; in iwch_mmap() local
335 ucontext = to_iwch_ucontext(context); in iwch_mmap()
337 mm = remove_mmap(ucontext, key, len); in iwch_mmap()
764 struct iwch_ucontext *ucontext; in iwch_destroy_qp() local
778 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context) in iwch_destroy_qp()
781 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp()
800 struct iwch_ucontext *ucontext; in iwch_create_qp() local
839 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL; in iwch_create_qp()
840 if (!ucontext && wqsize < (rqsize + (2 * sqsize))) in iwch_create_qp()
852 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp()
890 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
916 spin_lock(&ucontext->mmap_lock); in iwch_create_qp()
917 uresp.key = ucontext->key; in iwch_create_qp()
918 ucontext->key += PAGE_SIZE; in iwch_create_qp()
919 uresp.db_key = ucontext->key; in iwch_create_qp()
920 ucontext->key += PAGE_SIZE; in iwch_create_qp()
921 spin_unlock(&ucontext->mmap_lock); in iwch_create_qp()
931 insert_mmap(ucontext, mm1); in iwch_create_qp()
935 insert_mmap(ucontext, mm2); in iwch_create_qp()