uresp 113 drivers/infiniband/hw/cxgb3/iwch_provider.c struct iwch_create_cq_resp uresp; uresp 171 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.cqid = chp->cq.cqid; uresp 172 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.size_log2 = chp->cq.size_log2; uresp 174 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.key = ucontext->key; uresp 177 drivers/infiniband/hw/cxgb3/iwch_provider.c mm->key = uresp.key; uresp 179 drivers/infiniband/hw/cxgb3/iwch_provider.c if (udata->outlen < sizeof(uresp)) { uresp 182 drivers/infiniband/hw/cxgb3/iwch_provider.c mm->len = PAGE_ALIGN((1UL << uresp.size_log2) * uresp 186 drivers/infiniband/hw/cxgb3/iwch_provider.c mm->len = PAGE_ALIGN(((1UL << uresp.size_log2) + 1) * uresp 188 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.memsize = mm->len; uresp 189 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.reserved = 0; uresp 190 drivers/infiniband/hw/cxgb3/iwch_provider.c resplen = sizeof(uresp); uresp 192 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, resplen)) { uresp 442 drivers/infiniband/hw/cxgb3/iwch_provider.c struct iwch_reg_user_mr_resp uresp; uresp 508 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.pbl_addr = (mhp->attr.pbl_addr - uresp 511 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.pbl_addr); uresp 513 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 704 drivers/infiniband/hw/cxgb3/iwch_provider.c struct iwch_create_qp_resp uresp; uresp 819 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.qpid = qhp->wq.qpid; uresp 820 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.size_log2 = qhp->wq.size_log2; uresp 821 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.sq_size_log2 = qhp->wq.sq_size_log2; uresp 822 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.rq_size_log2 = qhp->wq.rq_size_log2; uresp 824 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.key = ucontext->key; uresp 826 drivers/infiniband/hw/cxgb3/iwch_provider.c uresp.db_key = ucontext->key; uresp 829 drivers/infiniband/hw/cxgb3/iwch_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 835 drivers/infiniband/hw/cxgb3/iwch_provider.c mm1->key = uresp.key; uresp 839 drivers/infiniband/hw/cxgb3/iwch_provider.c mm2->key = uresp.db_key; uresp 999 drivers/infiniband/hw/cxgb4/cq.c struct c4iw_create_cq_resp uresp; uresp 1094 drivers/infiniband/hw/cxgb4/cq.c memset(&uresp, 0, sizeof(uresp)); uresp 1095 drivers/infiniband/hw/cxgb4/cq.c uresp.qid_mask = rhp->rdev.cqmask; uresp 1096 drivers/infiniband/hw/cxgb4/cq.c uresp.cqid = chp->cq.cqid; uresp 1097 drivers/infiniband/hw/cxgb4/cq.c uresp.size = chp->cq.size; uresp 1098 drivers/infiniband/hw/cxgb4/cq.c uresp.memsize = chp->cq.memsize; uresp 1100 drivers/infiniband/hw/cxgb4/cq.c uresp.key = ucontext->key; uresp 1102 drivers/infiniband/hw/cxgb4/cq.c uresp.gts_key = ucontext->key; uresp 1107 drivers/infiniband/hw/cxgb4/cq.c uresp.flags |= C4IW_64B_CQE; uresp 1110 drivers/infiniband/hw/cxgb4/cq.c ret = ib_copy_to_udata(udata, &uresp, uresp 1112 drivers/infiniband/hw/cxgb4/cq.c sizeof(uresp) - sizeof(uresp.flags) : uresp 1113 drivers/infiniband/hw/cxgb4/cq.c sizeof(uresp)); uresp 1117 drivers/infiniband/hw/cxgb4/cq.c mm->key = uresp.key; uresp 1122 drivers/infiniband/hw/cxgb4/cq.c mm2->key = uresp.gts_key; uresp 81 drivers/infiniband/hw/cxgb4/provider.c struct c4iw_alloc_ucontext_resp uresp; uresp 90 drivers/infiniband/hw/cxgb4/provider.c if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { uresp 100 drivers/infiniband/hw/cxgb4/provider.c uresp.status_page_size = PAGE_SIZE; uresp 103 drivers/infiniband/hw/cxgb4/provider.c uresp.status_page_key = context->key; uresp 107 drivers/infiniband/hw/cxgb4/provider.c ret = ib_copy_to_udata(udata, &uresp, uresp 108 drivers/infiniband/hw/cxgb4/provider.c sizeof(uresp) - sizeof(uresp.reserved)); uresp 112 drivers/infiniband/hw/cxgb4/provider.c mm->key = uresp.status_page_key; uresp 223 drivers/infiniband/hw/cxgb4/provider.c struct c4iw_alloc_pd_resp uresp = {.pdid = php->pdid}; uresp 225 drivers/infiniband/hw/cxgb4/provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 2119 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_create_qp_resp uresp; uresp 2250 drivers/infiniband/hw/cxgb4/qp.c memset(&uresp, 0, sizeof(uresp)); uresp 2258 drivers/infiniband/hw/cxgb4/qp.c uresp.flags = C4IW_QPF_ONCHIP; uresp 2261 drivers/infiniband/hw/cxgb4/qp.c uresp.flags |= C4IW_QPF_WRITE_W_IMM; uresp 2262 drivers/infiniband/hw/cxgb4/qp.c uresp.qid_mask = rhp->rdev.qpmask; uresp 2263 drivers/infiniband/hw/cxgb4/qp.c uresp.sqid = qhp->wq.sq.qid; uresp 2264 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_size = qhp->wq.sq.size; uresp 2265 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_memsize = qhp->wq.sq.memsize; uresp 2267 drivers/infiniband/hw/cxgb4/qp.c uresp.rqid = qhp->wq.rq.qid; uresp 2268 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_size = qhp->wq.rq.size; uresp 2269 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_memsize = qhp->wq.rq.memsize; uresp 2273 drivers/infiniband/hw/cxgb4/qp.c uresp.ma_sync_key = ucontext->key; uresp 2276 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_key = ucontext->key; uresp 2279 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_key = ucontext->key; uresp 2282 drivers/infiniband/hw/cxgb4/qp.c uresp.sq_db_gts_key = ucontext->key; uresp 2285 drivers/infiniband/hw/cxgb4/qp.c uresp.rq_db_gts_key = ucontext->key; uresp 2289 drivers/infiniband/hw/cxgb4/qp.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 2292 drivers/infiniband/hw/cxgb4/qp.c sq_key_mm->key = uresp.sq_key; uresp 2297 drivers/infiniband/hw/cxgb4/qp.c rq_key_mm->key = uresp.rq_key; uresp 2302 drivers/infiniband/hw/cxgb4/qp.c sq_db_key_mm->key = uresp.sq_db_gts_key; uresp 2307 drivers/infiniband/hw/cxgb4/qp.c rq_db_key_mm->key = uresp.rq_db_gts_key; uresp 2314 drivers/infiniband/hw/cxgb4/qp.c ma_sync_key_mm->key = uresp.ma_sync_key; uresp 2676 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_create_srq_resp uresp; uresp 2751 drivers/infiniband/hw/cxgb4/qp.c memset(&uresp, 0, sizeof(uresp)); uresp 2752 drivers/infiniband/hw/cxgb4/qp.c uresp.flags = srq->flags; uresp 2753 drivers/infiniband/hw/cxgb4/qp.c uresp.qid_mask = rhp->rdev.qpmask; uresp 2754 drivers/infiniband/hw/cxgb4/qp.c uresp.srqid = srq->wq.qid; uresp 2755 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_size = srq->wq.size; uresp 2756 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_memsize = srq->wq.memsize; uresp 2757 drivers/infiniband/hw/cxgb4/qp.c uresp.rqt_abs_idx = srq->wq.rqt_abs_idx; uresp 2759 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_key = ucontext->key; uresp 2761 drivers/infiniband/hw/cxgb4/qp.c uresp.srq_db_gts_key = ucontext->key; uresp 2764 drivers/infiniband/hw/cxgb4/qp.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 2767 drivers/infiniband/hw/cxgb4/qp.c srq_key_mm->key = uresp.srq_key; uresp 2771 drivers/infiniband/hw/cxgb4/qp.c srq_db_key_mm->key = uresp.srq_db_gts_key; uresp 75 drivers/infiniband/hw/hns/hns_roce_pd.c struct hns_roce_ib_alloc_pd_resp uresp = {.pdn = pd->pdn}; uresp 77 drivers/infiniband/hw/hns/hns_roce_pd.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 125 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_alloc_ucontext_resp uresp = {}; uresp 136 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.max_qps = iwdev->max_qp; uresp 137 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.max_pds = iwdev->max_pd; uresp 138 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.wq_size = iwdev->max_qp_wr * 2; uresp 139 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.kernel_ver = req.userspace_ver; uresp 144 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) uresp 290 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_alloc_pd_resp uresp; uresp 311 drivers/infiniband/hw/i40iw/i40iw_verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 312 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.pd_id = pd_id; uresp 313 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 528 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_create_qp_resp uresp; uresp 727 drivers/infiniband/hw/i40iw/i40iw_verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 728 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.actual_sq_size = sq_size; uresp 729 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.actual_rq_size = rq_size; uresp 730 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.qp_id = qp_num; uresp 731 drivers/infiniband/hw/i40iw/i40iw_verbs.c uresp.push_idx = qp->push_idx; uresp 732 drivers/infiniband/hw/i40iw/i40iw_verbs.c err_code = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 308 drivers/infiniband/hw/mthca/mthca_provider.c struct mthca_alloc_ucontext_resp uresp = {}; uresp 315 drivers/infiniband/hw/mthca/mthca_provider.c uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; uresp 317 drivers/infiniband/hw/mthca/mthca_provider.c uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; uresp 319 drivers/infiniband/hw/mthca/mthca_provider.c uresp.uarc_size = 0; uresp 332 drivers/infiniband/hw/mthca/mthca_provider.c if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { uresp 945 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_create_cq_uresp uresp; uresp 951 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 952 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.cq_id = cq->id; uresp 953 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.page_size = PAGE_ALIGN(cq->len); uresp 954 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_pages = 1; uresp 955 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.max_hw_cqe = cq->max_hw_cqe; uresp 956 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.page_addr[0] = virt_to_phys(cq->va); uresp 957 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_addr = ocrdma_get_db_addr(dev, uctx->cntxt_pd->id); uresp 958 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_size = dev->nic_info.db_page_size; uresp 959 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.phase_change = cq->phase_change ? 1 : 0; uresp 960 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 966 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_add_mmap(uctx, uresp.db_page_addr, uresp.db_page_size); uresp 969 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_add_mmap(uctx, uresp.page_addr[0], uresp.page_size); uresp 971 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ocrdma_del_mmap(uctx, uresp.db_page_addr, uresp.db_page_size); uresp 1190 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_create_qp_uresp uresp; uresp 1194 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 1197 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.qp_id = qp->id; uresp 1198 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.sq_dbid = qp->sq.dbid; uresp 1199 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_sq_pages = 1; uresp 1200 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.sq_page_size = PAGE_ALIGN(qp->sq.len); uresp 1201 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.sq_page_addr[0] = virt_to_phys(qp->sq.va); uresp 1202 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_wqe_allocated = qp->sq.max_cnt; uresp 1204 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_dbid = qp->rq.dbid; uresp 1205 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_rq_pages = 1; uresp 1206 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_size = PAGE_ALIGN(qp->rq.len); uresp 1207 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_addr[0] = virt_to_phys(qp->rq.va); uresp 1208 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_rqe_allocated = qp->rq.max_cnt; uresp 1210 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_addr = usr_db; uresp 1211 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_size = dev->nic_info.db_page_size; uresp 1212 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_sq_offset = OCRDMA_DB_GEN2_SQ_OFFSET; uresp 1213 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_rq_offset = OCRDMA_DB_GEN2_RQ_OFFSET; uresp 1214 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_shift = OCRDMA_DB_RQ_SHIFT; uresp 1217 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.dpp_credit = dpp_credit_lmt; uresp 1218 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.dpp_offset = dpp_offset; uresp 1220 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1225 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_add_mmap(pd->uctx, uresp.sq_page_addr[0], uresp 1226 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.sq_page_size); uresp 1231 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_add_mmap(pd->uctx, uresp.rq_page_addr[0], uresp 1232 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_size); uresp 1238 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ocrdma_del_mmap(pd->uctx, uresp.sq_page_addr[0], uresp.sq_page_size); uresp 1751 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_create_srq_uresp uresp; uresp 1753 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 1754 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_dbid = srq->rq.dbid; uresp 1755 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_rq_pages = 1; uresp 1756 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_addr[0] = virt_to_phys(srq->rq.va); uresp 1757 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_size = srq->rq.len; uresp 1758 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_addr = dev->nic_info.unmapped_db + uresp 1760 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_page_size = dev->nic_info.db_page_size; uresp 1761 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.num_rqe_allocated = srq->rq.max_cnt; uresp 1763 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_rq_offset = OCRDMA_DB_GEN2_RQ_OFFSET; uresp 1764 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_shift = 24; uresp 1766 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_rq_offset = OCRDMA_DB_RQ_OFFSET; uresp 1767 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.db_shift = 16; uresp 1770 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1773 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = ocrdma_add_mmap(srq->pd->uctx, uresp.rq_page_addr[0], uresp 1774 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c uresp.rq_page_size); uresp 319 drivers/infiniband/hw/qedr/verbs.c struct qedr_alloc_ucontext_resp uresp = {}; uresp 341 drivers/infiniband/hw/qedr/verbs.c uresp.dpm_enabled = dev->user_dpm_enabled; uresp 342 drivers/infiniband/hw/qedr/verbs.c uresp.wids_enabled = 1; uresp 343 drivers/infiniband/hw/qedr/verbs.c uresp.wid_count = oparams.wid_count; uresp 344 drivers/infiniband/hw/qedr/verbs.c uresp.db_pa = ctx->dpi_phys_addr; uresp 345 drivers/infiniband/hw/qedr/verbs.c uresp.db_size = ctx->dpi_size; uresp 346 drivers/infiniband/hw/qedr/verbs.c uresp.max_send_wr = dev->attr.max_sqe; uresp 347 drivers/infiniband/hw/qedr/verbs.c uresp.max_recv_wr = dev->attr.max_rqe; uresp 348 drivers/infiniband/hw/qedr/verbs.c uresp.max_srq_wr = dev->attr.max_srq_wr; uresp 349 drivers/infiniband/hw/qedr/verbs.c uresp.sges_per_send_wr = QEDR_MAX_SQE_ELEMENTS_PER_SQE; uresp 350 drivers/infiniband/hw/qedr/verbs.c uresp.sges_per_recv_wr = QEDR_MAX_RQE_ELEMENTS_PER_RQE; uresp 351 drivers/infiniband/hw/qedr/verbs.c uresp.sges_per_srq_wr = dev->attr.max_srq_sge; uresp 352 drivers/infiniband/hw/qedr/verbs.c uresp.max_cqes = QEDR_MAX_CQES; uresp 354 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 457 drivers/infiniband/hw/qedr/verbs.c struct qedr_alloc_pd_uresp uresp = { uresp 463 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 664 drivers/infiniband/hw/qedr/verbs.c struct qedr_create_cq_uresp uresp; uresp 667 drivers/infiniband/hw/qedr/verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 669 drivers/infiniband/hw/qedr/verbs.c uresp.db_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_UCM_RDMA_CQ_CONS_32BIT); uresp 670 drivers/infiniband/hw/qedr/verbs.c uresp.icid = cq->icid; uresp 672 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1127 drivers/infiniband/hw/qedr/verbs.c struct qedr_create_srq_uresp uresp = {}; uresp 1130 drivers/infiniband/hw/qedr/verbs.c uresp.srq_id = srq->srq_id; uresp 1132 drivers/infiniband/hw/qedr/verbs.c rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1140 drivers/infiniband/hw/qedr/verbs.c struct qedr_create_qp_uresp *uresp, uresp 1145 drivers/infiniband/hw/qedr/verbs.c uresp->rq_db_offset = uresp 1147 drivers/infiniband/hw/qedr/verbs.c uresp->rq_db2_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_TCM_FLAGS); uresp 1149 drivers/infiniband/hw/qedr/verbs.c uresp->rq_db_offset = uresp 1153 drivers/infiniband/hw/qedr/verbs.c uresp->rq_icid = qp->icid; uresp 1157 drivers/infiniband/hw/qedr/verbs.c struct qedr_create_qp_uresp *uresp, uresp 1160 drivers/infiniband/hw/qedr/verbs.c uresp->sq_db_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_XCM_RDMA_SQ_PROD); uresp 1164 drivers/infiniband/hw/qedr/verbs.c uresp->sq_icid = qp->icid; uresp 1166 drivers/infiniband/hw/qedr/verbs.c uresp->sq_icid = qp->icid + 1; uresp 1172 drivers/infiniband/hw/qedr/verbs.c struct qedr_create_qp_uresp uresp; uresp 1175 drivers/infiniband/hw/qedr/verbs.c memset(&uresp, 0, sizeof(uresp)); uresp 1176 drivers/infiniband/hw/qedr/verbs.c qedr_copy_sq_uresp(dev, &uresp, qp); uresp 1177 drivers/infiniband/hw/qedr/verbs.c qedr_copy_rq_uresp(dev, &uresp, qp); uresp 1179 drivers/infiniband/hw/qedr/verbs.c uresp.atomic_supported = dev->atomic_cap != IB_ATOMIC_NONE; uresp 1180 drivers/infiniband/hw/qedr/verbs.c uresp.qp_id = qp->qp_id; uresp 1182 drivers/infiniband/hw/qedr/verbs.c rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 322 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c struct pvrdma_alloc_ucontext_resp uresp = {}; uresp 350 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c uresp.qp_tab_size = vdev->dsr->caps.max_qp; uresp 351 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 86 drivers/infiniband/sw/rxe/rxe_cq.c struct rxe_create_cq_resp __user *uresp) uresp 97 drivers/infiniband/sw/rxe/rxe_cq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, uresp 105 drivers/infiniband/sw/rxe/rxe_cq.c if (uresp) uresp 118 drivers/infiniband/sw/rxe/rxe_cq.c struct rxe_resize_cq_resp __user *uresp, uresp 125 drivers/infiniband/sw/rxe/rxe_cq.c uresp ? &uresp->mi : NULL, NULL, &cq->cq_lock); uresp 57 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_create_cq_resp __user *uresp); uresp 60 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_resize_cq_resp __user *uresp, uresp 159 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_create_qp_resp __user *uresp, uresp 227 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_create_srq_resp __user *uresp); uresp 221 drivers/infiniband/sw/rxe/rxe_qp.c struct rxe_create_qp_resp __user *uresp) uresp 256 drivers/infiniband/sw/rxe/rxe_qp.c err = do_mmap_info(rxe, uresp ? &uresp->sq_mi : NULL, udata, uresp 290 drivers/infiniband/sw/rxe/rxe_qp.c struct rxe_create_qp_resp __user *uresp) uresp 310 drivers/infiniband/sw/rxe/rxe_qp.c err = do_mmap_info(rxe, uresp ? &uresp->rq_mi : NULL, udata, uresp 338 drivers/infiniband/sw/rxe/rxe_qp.c struct rxe_create_qp_resp __user *uresp, uresp 360 drivers/infiniband/sw/rxe/rxe_qp.c err = rxe_qp_init_req(rxe, qp, init, udata, uresp); uresp 364 drivers/infiniband/sw/rxe/rxe_qp.c err = rxe_qp_init_resp(rxe, qp, init, udata, uresp); uresp 103 drivers/infiniband/sw/rxe/rxe_srq.c struct rxe_create_srq_resp __user *uresp) uresp 130 drivers/infiniband/sw/rxe/rxe_srq.c err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, uresp 138 drivers/infiniband/sw/rxe/rxe_srq.c if (uresp) { uresp 139 drivers/infiniband/sw/rxe/rxe_srq.c if (copy_to_user(&uresp->srq_num, &srq->srq_num, uresp 140 drivers/infiniband/sw/rxe/rxe_srq.c sizeof(uresp->srq_num))) { uresp 299 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_create_srq_resp __user *uresp = NULL; uresp 302 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) uresp 304 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; uresp 318 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_srq_from_init(rxe, srq, init, udata, uresp); uresp 419 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_create_qp_resp __user *uresp = NULL; uresp 422 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) uresp 424 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; uresp 447 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_qp_from_init(rxe, qp, pd, init, uresp, ibpd, udata); uresp 788 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_create_cq_resp __user *uresp = NULL; uresp 791 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) uresp 793 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; uresp 804 drivers/infiniband/sw/rxe/rxe_verbs.c uresp); uresp 825 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_resize_cq_resp __user *uresp = NULL; uresp 828 drivers/infiniband/sw/rxe/rxe_verbs.c if (udata->outlen < sizeof(*uresp)) uresp 830 drivers/infiniband/sw/rxe/rxe_verbs.c uresp = udata->outbuf; uresp 837 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_cq_resize_queue(cq, cqe, uresp, udata); uresp 101 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uresp_alloc_ctx uresp = {}; uresp 112 drivers/infiniband/sw/siw/siw_verbs.c uresp.dev_id = sdev->vendor_part_id; uresp 114 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { uresp 118 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 454 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uresp_create_qp uresp = {}; uresp 456 drivers/infiniband/sw/siw/siw_verbs.c uresp.num_sqe = num_sqe; uresp 457 drivers/infiniband/sw/siw/siw_verbs.c uresp.num_rqe = num_rqe; uresp 458 drivers/infiniband/sw/siw/siw_verbs.c uresp.qp_id = qp_id(qp); uresp 475 drivers/infiniband/sw/siw/siw_verbs.c uresp.sq_key = qp->xa_sq_index << PAGE_SHIFT; uresp 476 drivers/infiniband/sw/siw/siw_verbs.c uresp.rq_key = qp->xa_rq_index << PAGE_SHIFT; uresp 478 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { uresp 482 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1153 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uresp_create_cq uresp = {}; uresp 1166 drivers/infiniband/sw/siw/siw_verbs.c uresp.cq_key = cq->xa_cq_index << PAGE_SHIFT; uresp 1167 drivers/infiniband/sw/siw/siw_verbs.c uresp.cq_id = cq->id; uresp 1168 drivers/infiniband/sw/siw/siw_verbs.c uresp.num_cqe = size; uresp 1170 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { uresp 1174 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1349 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uresp_reg_mr uresp = {}; uresp 1363 drivers/infiniband/sw/siw/siw_verbs.c uresp.stag = mem->stag; uresp 1365 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { uresp 1369 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); uresp 1610 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uresp_create_srq uresp = {}; uresp 1619 drivers/infiniband/sw/siw/siw_verbs.c uresp.srq_key = srq->xa_srq_index; uresp 1620 drivers/infiniband/sw/siw/siw_verbs.c uresp.num_rqe = srq->num_rqe; uresp 1622 drivers/infiniband/sw/siw/siw_verbs.c if (udata->outlen < sizeof(uresp)) { uresp 1626 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp));