Searched refs:uresp (Results 1 – 7 of 7) sorted by relevance
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 866 struct ocrdma_create_cq_uresp uresp; in ocrdma_copy_cq_uresp() local 868 memset(&uresp, 0, sizeof(uresp)); in ocrdma_copy_cq_uresp() 869 uresp.cq_id = cq->id; in ocrdma_copy_cq_uresp() 870 uresp.page_size = PAGE_ALIGN(cq->len); in ocrdma_copy_cq_uresp() 871 uresp.num_pages = 1; in ocrdma_copy_cq_uresp() 872 uresp.max_hw_cqe = cq->max_hw_cqe; in ocrdma_copy_cq_uresp() 873 uresp.page_addr[0] = virt_to_phys(cq->va); in ocrdma_copy_cq_uresp() 874 uresp.db_page_addr = ocrdma_get_db_addr(dev, uctx->cntxt_pd->id); in ocrdma_copy_cq_uresp() 875 uresp.db_page_size = dev->nic_info.db_page_size; in ocrdma_copy_cq_uresp() 876 uresp.phase_change = cq->phase_change ? 1 : 0; in ocrdma_copy_cq_uresp() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 147 struct iwch_create_cq_resp uresp; in iwch_create_cq() local 210 uresp.cqid = chp->cq.cqid; in iwch_create_cq() 211 uresp.size_log2 = chp->cq.size_log2; in iwch_create_cq() 213 uresp.key = ucontext->key; in iwch_create_cq() 216 mm->key = uresp.key; in iwch_create_cq() 218 if (udata->outlen < sizeof uresp) { in iwch_create_cq() 222 mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * in iwch_create_cq() 226 mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * in iwch_create_cq() 228 uresp.memsize = mm->len; in iwch_create_cq() 229 uresp.reserved = 0; in iwch_create_cq() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | cq.c | 868 struct c4iw_create_cq_resp uresp; in c4iw_create_cq() local 946 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq() 947 uresp.cqid = chp->cq.cqid; in c4iw_create_cq() 948 uresp.size = chp->cq.size; in c4iw_create_cq() 949 uresp.memsize = chp->cq.memsize; in c4iw_create_cq() 951 uresp.key = ucontext->key; in c4iw_create_cq() 953 uresp.gts_key = ucontext->key; in c4iw_create_cq() 956 ret = ib_copy_to_udata(udata, &uresp, in c4iw_create_cq() 957 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_create_cq() 961 mm->key = uresp.key; in c4iw_create_cq() [all …]
|
D | provider.c | 110 struct c4iw_alloc_ucontext_resp uresp; in c4iw_alloc_ucontext() local 125 if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { in c4iw_alloc_ucontext() 136 uresp.status_page_size = PAGE_SIZE; in c4iw_alloc_ucontext() 139 uresp.status_page_key = context->key; in c4iw_alloc_ucontext() 143 ret = ib_copy_to_udata(udata, &uresp, in c4iw_alloc_ucontext() 144 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_alloc_ucontext() 148 mm->key = uresp.status_page_key; in c4iw_alloc_ucontext()
|
D | qp.c | 1616 struct c4iw_create_qp_resp uresp; in c4iw_create_qp() local 1731 uresp.flags = C4IW_QPF_ONCHIP; in c4iw_create_qp() 1733 uresp.flags = 0; in c4iw_create_qp() 1734 uresp.qid_mask = rhp->rdev.qpmask; in c4iw_create_qp() 1735 uresp.sqid = qhp->wq.sq.qid; in c4iw_create_qp() 1736 uresp.sq_size = qhp->wq.sq.size; in c4iw_create_qp() 1737 uresp.sq_memsize = qhp->wq.sq.memsize; in c4iw_create_qp() 1738 uresp.rqid = qhp->wq.rq.qid; in c4iw_create_qp() 1739 uresp.rq_size = qhp->wq.rq.size; in c4iw_create_qp() 1740 uresp.rq_memsize = qhp->wq.rq.memsize; in c4iw_create_qp() [all …]
|
/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 646 struct nes_alloc_ucontext_resp uresp; in nes_alloc_ucontext() local 663 memset(&uresp, 0, sizeof uresp); in nes_alloc_ucontext() 665 uresp.max_qps = nesibdev->max_qp; in nes_alloc_ucontext() 666 uresp.max_pds = nesibdev->max_pd; in nes_alloc_ucontext() 667 uresp.wq_size = nesdev->nesadapter->max_qp_wr * 2; in nes_alloc_ucontext() 668 uresp.virtwq = nesadapter->virtwq; in nes_alloc_ucontext() 669 uresp.kernel_ver = NES_ABI_KERNEL_VER; in nes_alloc_ucontext() 676 nes_ucontext->mmap_wq_offset = uresp.max_pds; in nes_alloc_ucontext() 678 ((sizeof(struct nes_hw_qp_wqe) * uresp.max_qps * 2) + PAGE_SIZE-1) / in nes_alloc_ucontext() 682 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in nes_alloc_ucontext() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 300 struct mthca_alloc_ucontext_resp uresp; in mthca_alloc_ucontext() local 307 memset(&uresp, 0, sizeof uresp); in mthca_alloc_ucontext() 309 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext() 311 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext() 313 uresp.uarc_size = 0; in mthca_alloc_ucontext() 333 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in mthca_alloc_ucontext()
|