Lines Matching refs:ucontext

102 	struct iwch_ucontext *ucontext = to_iwch_ucontext(context);  in iwch_dealloc_ucontext()  local
106 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
108 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
109 kfree(ucontext); in iwch_dealloc_ucontext()
155 struct iwch_ucontext *ucontext = NULL; in iwch_create_cq() local
169 ucontext = to_iwch_ucontext(ib_context); in iwch_create_cq()
195 if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { in iwch_create_cq()
211 if (ucontext) { in iwch_create_cq()
221 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
222 uresp.key = ucontext->key; in iwch_create_cq()
223 ucontext->key += PAGE_SIZE; in iwch_create_cq()
224 spin_unlock(&ucontext->mmap_lock); in iwch_create_cq()
246 insert_mmap(ucontext, mm); in iwch_create_cq()
362 struct iwch_ucontext *ucontext; in iwch_mmap() local
373 ucontext = to_iwch_ucontext(context); in iwch_mmap()
375 mm = remove_mmap(ucontext, key, len); in iwch_mmap()
892 struct iwch_ucontext *ucontext; in iwch_destroy_qp() local
906 ucontext = ib_qp->uobject ? to_iwch_ucontext(ib_qp->uobject->context) in iwch_destroy_qp()
909 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp()
928 struct iwch_ucontext *ucontext; in iwch_create_qp() local
967 ucontext = pd->uobject ? to_iwch_ucontext(pd->uobject->context) : NULL; in iwch_create_qp()
968 if (!ucontext && wqsize < (rqsize + (2 * sqsize))) in iwch_create_qp()
980 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp()
1018 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
1044 spin_lock(&ucontext->mmap_lock); in iwch_create_qp()
1045 uresp.key = ucontext->key; in iwch_create_qp()
1046 ucontext->key += PAGE_SIZE; in iwch_create_qp()
1047 uresp.db_key = ucontext->key; in iwch_create_qp()
1048 ucontext->key += PAGE_SIZE; in iwch_create_qp()
1049 spin_unlock(&ucontext->mmap_lock); in iwch_create_qp()
1059 insert_mmap(ucontext, mm1); in iwch_create_qp()
1063 insert_mmap(ucontext, mm2); in iwch_create_qp()