Home
last modified time | relevance | path

Searched refs:uresp (Results 1 – 5 of 5) sorted by relevance

/freebsd-11-stable/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_provider.c185 struct iwch_create_cq_resp uresp; in iwch_create_cq() local
247 uresp.cqid = chp->cq.cqid; in iwch_create_cq()
248 uresp.size_log2 = chp->cq.size_log2; in iwch_create_cq()
250 uresp.key = ucontext->key; in iwch_create_cq()
253 mm->key = uresp.key; in iwch_create_cq()
255 if (udata->outlen < sizeof uresp) { in iwch_create_cq()
260 mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * in iwch_create_cq()
264 mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * in iwch_create_cq()
266 uresp.memsize = mm->len; in iwch_create_cq()
267 resplen = sizeof uresp; in iwch_create_cq()
[all …]
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/
HDprovider.c125 struct c4iw_alloc_ucontext_resp uresp; in c4iw_alloc_ucontext() local
141 if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { in c4iw_alloc_ucontext()
153 uresp.status_page_size = PAGE_SIZE; in c4iw_alloc_ucontext()
156 uresp.status_page_key = context->key; in c4iw_alloc_ucontext()
160 ret = ib_copy_to_udata(udata, &uresp, in c4iw_alloc_ucontext()
161 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_alloc_ucontext()
165 mm->key = uresp.status_page_key; in c4iw_alloc_ucontext()
HDcq.c912 struct c4iw_create_cq_resp uresp; in c4iw_create_cq() local
991 memset(&uresp, 0, sizeof(uresp)); in c4iw_create_cq()
992 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq()
993 uresp.cqid = chp->cq.cqid; in c4iw_create_cq()
994 uresp.size = chp->cq.size; in c4iw_create_cq()
995 uresp.memsize = chp->cq.memsize; in c4iw_create_cq()
997 uresp.key = ucontext->key; in c4iw_create_cq()
999 uresp.gts_key = ucontext->key; in c4iw_create_cq()
1002 ret = ib_copy_to_udata(udata, &uresp, in c4iw_create_cq()
1003 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_create_cq()
[all …]
HDqp.c1710 struct c4iw_create_qp_resp uresp; in c4iw_create_qp() local
1824 uresp.flags = 0; in c4iw_create_qp()
1825 uresp.qid_mask = rhp->rdev.qpmask; in c4iw_create_qp()
1826 uresp.sqid = qhp->wq.sq.qid; in c4iw_create_qp()
1827 uresp.sq_size = qhp->wq.sq.size; in c4iw_create_qp()
1828 uresp.sq_memsize = qhp->wq.sq.memsize; in c4iw_create_qp()
1829 uresp.rqid = qhp->wq.rq.qid; in c4iw_create_qp()
1830 uresp.rq_size = qhp->wq.rq.size; in c4iw_create_qp()
1831 uresp.rq_memsize = qhp->wq.rq.memsize; in c4iw_create_qp()
1833 uresp.ma_sync_key = 0; in c4iw_create_qp()
[all …]
/freebsd-11-stable/sys/dev/mthca/
HDmthca_provider.c304 struct mthca_alloc_ucontext_resp uresp; in mthca_alloc_ucontext() local
311 memset(&uresp, 0, sizeof uresp); in mthca_alloc_ucontext()
313 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext()
315 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext()
317 uresp.uarc_size = 0; in mthca_alloc_ucontext()
337 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in mthca_alloc_ucontext()