Lines Matching refs:ucontext

887 	struct c4iw_ucontext *ucontext;  in free_qp_work()  local
892 ucontext = qhp->ucontext; in free_qp_work()
895 pr_debug("qhp %p ucontext %p\n", qhp, ucontext); in free_qp_work()
897 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !qhp->srq); in free_qp_work()
899 if (ucontext) in free_qp_work()
900 c4iw_put_ucontext(ucontext); in free_qp_work()
2131 struct c4iw_ucontext *ucontext; in c4iw_create_qp() local
2165 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_qp()
2189 if (ucontext) { in c4iw_create_qp()
2197 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_qp()
2235 if (udata && ucontext) { in c4iw_create_qp()
2282 spin_lock(&ucontext->mmap_lock); in c4iw_create_qp()
2284 uresp.ma_sync_key = ucontext->key; in c4iw_create_qp()
2285 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
2287 uresp.sq_key = ucontext->key; in c4iw_create_qp()
2288 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
2290 uresp.rq_key = ucontext->key; in c4iw_create_qp()
2291 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
2293 uresp.sq_db_gts_key = ucontext->key; in c4iw_create_qp()
2294 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
2296 uresp.rq_db_gts_key = ucontext->key; in c4iw_create_qp()
2297 ucontext->key += PAGE_SIZE; in c4iw_create_qp()
2299 spin_unlock(&ucontext->mmap_lock); in c4iw_create_qp()
2306 insert_mmap(ucontext, sq_key_mm); in c4iw_create_qp()
2311 insert_mmap(ucontext, rq_key_mm); in c4iw_create_qp()
2316 insert_mmap(ucontext, sq_db_key_mm); in c4iw_create_qp()
2322 insert_mmap(ucontext, rq_db_key_mm); in c4iw_create_qp()
2330 insert_mmap(ucontext, ma_sync_key_mm); in c4iw_create_qp()
2333 c4iw_get_ucontext(ucontext); in c4iw_create_qp()
2334 qhp->ucontext = ucontext; in c4iw_create_qp()
2371 ucontext ? &ucontext->uctx : &rhp->rdev.uctx, !attrs->srq); in c4iw_create_qp()
2691 struct c4iw_ucontext *ucontext; in c4iw_create_srq() local
2715 ucontext = pd->uobject ? to_c4iw_ucontext(pd->uobject->context) : NULL; in c4iw_create_srq()
2747 if (ucontext) in c4iw_create_srq()
2750 ret = alloc_srq_queue(srq, ucontext ? &ucontext->uctx : in c4iw_create_srq()
2781 spin_lock(&ucontext->mmap_lock); in c4iw_create_srq()
2782 uresp.srq_key = ucontext->key; in c4iw_create_srq()
2783 ucontext->key += PAGE_SIZE; in c4iw_create_srq()
2784 uresp.srq_db_gts_key = ucontext->key; in c4iw_create_srq()
2785 ucontext->key += PAGE_SIZE; in c4iw_create_srq()
2786 spin_unlock(&ucontext->mmap_lock); in c4iw_create_srq()
2793 insert_mmap(ucontext, srq_key_mm); in c4iw_create_srq()
2797 insert_mmap(ucontext, srq_db_key_mm); in c4iw_create_srq()
2813 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_create_srq()
2831 struct c4iw_ucontext *ucontext; in c4iw_destroy_srq() local
2839 ucontext = ibsrq->uobject ? in c4iw_destroy_srq()
2841 free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx, in c4iw_destroy_srq()