Lines Matching refs:ucontext

68 	struct iwch_ucontext *ucontext = to_iwch_ucontext(context);  in iwch_dealloc_ucontext()  local
72 list_for_each_entry_safe(mm, tmp, &ucontext->mmaps, entry) in iwch_dealloc_ucontext()
74 cxio_release_ucontext(&rhp->rdev, &ucontext->uctx); in iwch_dealloc_ucontext()
77 static int iwch_alloc_ucontext(struct ib_ucontext *ucontext, in iwch_alloc_ucontext() argument
80 struct ib_device *ibdev = ucontext->device; in iwch_alloc_ucontext()
81 struct iwch_ucontext *context = to_iwch_ucontext(ucontext); in iwch_alloc_ucontext()
163 struct iwch_ucontext *ucontext = rdma_udata_to_drv_context( in iwch_create_cq() local
173 spin_lock(&ucontext->mmap_lock); in iwch_create_cq()
174 uresp.key = ucontext->key; in iwch_create_cq()
175 ucontext->key += PAGE_SIZE; in iwch_create_cq()
176 spin_unlock(&ucontext->mmap_lock); in iwch_create_cq()
197 insert_mmap(ucontext, mm); in iwch_create_cq()
244 struct iwch_ucontext *ucontext; in iwch_mmap() local
255 ucontext = to_iwch_ucontext(context); in iwch_mmap()
257 mm = remove_mmap(ucontext, key, len); in iwch_mmap()
670 struct iwch_ucontext *ucontext; in iwch_destroy_qp() local
684 ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, in iwch_destroy_qp()
687 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_destroy_qp()
706 struct iwch_ucontext *ucontext; in iwch_create_qp() local
745 ucontext = rdma_udata_to_drv_context(udata, struct iwch_ucontext, in iwch_create_qp()
747 if (!ucontext && wqsize < (rqsize + (2 * sqsize))) in iwch_create_qp()
759 ucontext ? &ucontext->uctx : &rhp->rdev.uctx)) { in iwch_create_qp()
797 ucontext ? &ucontext->uctx : &rhp->rdev.uctx); in iwch_create_qp()
823 spin_lock(&ucontext->mmap_lock); in iwch_create_qp()
824 uresp.key = ucontext->key; in iwch_create_qp()
825 ucontext->key += PAGE_SIZE; in iwch_create_qp()
826 uresp.db_key = ucontext->key; in iwch_create_qp()
827 ucontext->key += PAGE_SIZE; in iwch_create_qp()
828 spin_unlock(&ucontext->mmap_lock); in iwch_create_qp()
838 insert_mmap(ucontext, mm1); in iwch_create_qp()
842 insert_mmap(ucontext, mm2); in iwch_create_qp()