Searched refs:uresp (Results 1 – 7 of 7) sorted by relevance
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1038 struct ocrdma_create_cq_uresp uresp; in ocrdma_copy_cq_uresp() local 1040 memset(&uresp, 0, sizeof(uresp)); in ocrdma_copy_cq_uresp() 1041 uresp.cq_id = cq->id; in ocrdma_copy_cq_uresp() 1042 uresp.page_size = PAGE_ALIGN(cq->len); in ocrdma_copy_cq_uresp() 1043 uresp.num_pages = 1; in ocrdma_copy_cq_uresp() 1044 uresp.max_hw_cqe = cq->max_hw_cqe; in ocrdma_copy_cq_uresp() 1045 uresp.page_addr[0] = virt_to_phys(cq->va); in ocrdma_copy_cq_uresp() 1046 uresp.db_page_addr = ocrdma_get_db_addr(dev, uctx->cntxt_pd->id); in ocrdma_copy_cq_uresp() 1047 uresp.db_page_size = dev->nic_info.db_page_size; in ocrdma_copy_cq_uresp() 1048 uresp.phase_change = cq->phase_change ? 1 : 0; in ocrdma_copy_cq_uresp() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 153 struct iwch_create_cq_resp uresp; in iwch_create_cq() local 219 uresp.cqid = chp->cq.cqid; in iwch_create_cq() 220 uresp.size_log2 = chp->cq.size_log2; in iwch_create_cq() 222 uresp.key = ucontext->key; in iwch_create_cq() 225 mm->key = uresp.key; in iwch_create_cq() 227 if (udata->outlen < sizeof uresp) { in iwch_create_cq() 231 mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * in iwch_create_cq() 235 mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * in iwch_create_cq() 237 uresp.memsize = mm->len; in iwch_create_cq() 238 uresp.reserved = 0; in iwch_create_cq() [all …]
|
/drivers/infiniband/hw/cxgb4/ |
D | cq.c | 876 struct c4iw_create_cq_resp uresp; in c4iw_create_cq() local 956 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq() 957 uresp.cqid = chp->cq.cqid; in c4iw_create_cq() 958 uresp.size = chp->cq.size; in c4iw_create_cq() 959 uresp.memsize = chp->cq.memsize; in c4iw_create_cq() 961 uresp.key = ucontext->key; in c4iw_create_cq() 963 uresp.gts_key = ucontext->key; in c4iw_create_cq() 966 ret = ib_copy_to_udata(udata, &uresp, in c4iw_create_cq() 967 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_create_cq() 971 mm->key = uresp.key; in c4iw_create_cq() [all …]
|
D | provider.c | 114 struct c4iw_alloc_ucontext_resp uresp; in c4iw_alloc_ucontext() local 129 if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { in c4iw_alloc_ucontext() 140 uresp.status_page_size = PAGE_SIZE; in c4iw_alloc_ucontext() 143 uresp.status_page_key = context->key; in c4iw_alloc_ucontext() 147 ret = ib_copy_to_udata(udata, &uresp, in c4iw_alloc_ucontext() 148 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_alloc_ucontext() 152 mm->key = uresp.status_page_key; in c4iw_alloc_ucontext()
|
D | qp.c | 1636 struct c4iw_create_qp_resp uresp; in c4iw_create_qp() local 1751 uresp.flags = C4IW_QPF_ONCHIP; in c4iw_create_qp() 1753 uresp.flags = 0; in c4iw_create_qp() 1754 uresp.qid_mask = rhp->rdev.qpmask; in c4iw_create_qp() 1755 uresp.sqid = qhp->wq.sq.qid; in c4iw_create_qp() 1756 uresp.sq_size = qhp->wq.sq.size; in c4iw_create_qp() 1757 uresp.sq_memsize = qhp->wq.sq.memsize; in c4iw_create_qp() 1758 uresp.rqid = qhp->wq.rq.qid; in c4iw_create_qp() 1759 uresp.rq_size = qhp->wq.rq.size; in c4iw_create_qp() 1760 uresp.rq_memsize = qhp->wq.rq.memsize; in c4iw_create_qp() [all …]
|
/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 626 struct nes_alloc_ucontext_resp uresp; in nes_alloc_ucontext() local 643 memset(&uresp, 0, sizeof uresp); in nes_alloc_ucontext() 645 uresp.max_qps = nesibdev->max_qp; in nes_alloc_ucontext() 646 uresp.max_pds = nesibdev->max_pd; in nes_alloc_ucontext() 647 uresp.wq_size = nesdev->nesadapter->max_qp_wr * 2; in nes_alloc_ucontext() 648 uresp.virtwq = nesadapter->virtwq; in nes_alloc_ucontext() 649 uresp.kernel_ver = NES_ABI_KERNEL_VER; in nes_alloc_ucontext() 656 nes_ucontext->mmap_wq_offset = uresp.max_pds; in nes_alloc_ucontext() 658 ((sizeof(struct nes_hw_qp_wqe) * uresp.max_qps * 2) + PAGE_SIZE-1) / in nes_alloc_ucontext() 662 if (ib_copy_to_udata(udata, &uresp, sizeof uresp)) { in nes_alloc_ucontext() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 304 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()
|