Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/infiniband/hw/cxgb3/
Diwch_provider.c154 struct iwch_create_cq_resp uresp; in iwch_create_cq() local
216 uresp.cqid = chp->cq.cqid; in iwch_create_cq()
217 uresp.size_log2 = chp->cq.size_log2; in iwch_create_cq()
219 uresp.key = ucontext->key; in iwch_create_cq()
222 mm->key = uresp.key; in iwch_create_cq()
224 if (udata->outlen < sizeof uresp) { in iwch_create_cq()
228 mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * in iwch_create_cq()
232 mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * in iwch_create_cq()
234 uresp.memsize = mm->len; in iwch_create_cq()
235 resplen = sizeof uresp; in iwch_create_cq()
[all …]
/linux-2.6.39/drivers/infiniband/hw/cxgb4/
Dcq.c756 struct c4iw_create_cq_resp uresp; in c4iw_create_cq() local
831 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq()
832 uresp.cqid = chp->cq.cqid; in c4iw_create_cq()
833 uresp.size = chp->cq.size; in c4iw_create_cq()
834 uresp.memsize = chp->cq.memsize; in c4iw_create_cq()
836 uresp.key = ucontext->key; in c4iw_create_cq()
838 uresp.gts_key = ucontext->key; in c4iw_create_cq()
841 ret = ib_copy_to_udata(udata, &uresp, sizeof uresp); in c4iw_create_cq()
845 mm->key = uresp.key; in c4iw_create_cq()
850 mm2->key = uresp.gts_key; in c4iw_create_cq()
Dqp.c1366 struct c4iw_create_qp_resp uresp; in c4iw_create_qp() local
1475 uresp.flags = C4IW_QPF_ONCHIP; in c4iw_create_qp()
1477 uresp.flags = 0; in c4iw_create_qp()
1478 uresp.qid_mask = rhp->rdev.qpmask; in c4iw_create_qp()
1479 uresp.sqid = qhp->wq.sq.qid; in c4iw_create_qp()
1480 uresp.sq_size = qhp->wq.sq.size; in c4iw_create_qp()
1481 uresp.sq_memsize = qhp->wq.sq.memsize; in c4iw_create_qp()
1482 uresp.rqid = qhp->wq.rq.qid; in c4iw_create_qp()
1483 uresp.rq_size = qhp->wq.rq.size; in c4iw_create_qp()
1484 uresp.rq_memsize = qhp->wq.rq.memsize; in c4iw_create_qp()
[all …]
/linux-2.6.39/drivers/infiniband/hw/nes/
Dnes_verbs.c653 struct nes_alloc_ucontext_resp uresp; in nes_alloc_ucontext() local
670 memset(&uresp, 0, sizeof uresp); in nes_alloc_ucontext()
672 uresp.max_qps = nesibdev->max_qp; in nes_alloc_ucontext()
673 uresp.max_pds = nesibdev->max_pd; in nes_alloc_ucontext()
674 uresp.wq_size = nesdev->nesadapter->max_qp_wr * 2; in nes_alloc_ucontext()
675 uresp.virtwq = nesadapter->virtwq; in nes_alloc_ucontext()
676 uresp.kernel_ver = NES_ABI_KERNEL_VER; in nes_alloc_ucontext()
683 nes_ucontext->mmap_wq_offset = uresp.max_pds; in nes_alloc_ucontext()
685 ((sizeof(struct nes_hw_qp_wqe) * uresp.max_qps * 2) + PAGE_SIZE-1) / in nes_alloc_ucontext()
689 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in nes_alloc_ucontext()
[all …]
/linux-2.6.39/drivers/infiniband/hw/mthca/
Dmthca_provider.c334 struct mthca_alloc_ucontext_resp uresp; in mthca_alloc_ucontext() local
341 memset(&uresp, 0, sizeof uresp); in mthca_alloc_ucontext()
343 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext()
345 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext()
347 uresp.uarc_size = 0; in mthca_alloc_ucontext()
367 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in mthca_alloc_ucontext()