/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_cq.c | 59 struct rxe_create_cq_resp __user *uresp) in rxe_cq_from_init() argument 72 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, in rxe_cq_from_init() 80 cq->is_user = uresp; in rxe_cq_from_init() 92 struct rxe_resize_cq_resp __user *uresp, in rxe_cq_resize_queue() argument 99 uresp ? &uresp->mi : NULL, NULL, &cq->cq_lock); in rxe_cq_resize_queue()
|
D | rxe_srq.c | 46 struct rxe_create_srq_resp __user *uresp) in rxe_srq_from_init() argument 74 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, in rxe_srq_from_init() 82 if (uresp) { in rxe_srq_from_init() 83 if (copy_to_user(&uresp->srq_num, &srq->srq_num, in rxe_srq_from_init() 84 sizeof(uresp->srq_num))) { in rxe_srq_from_init()
|
D | rxe_verbs.c | 163 struct rxe_create_ah_resp __user *uresp = NULL; in rxe_create_ah() local 168 if (udata->outlen >= sizeof(*uresp)) in rxe_create_ah() 169 uresp = udata->outbuf; in rxe_create_ah() 187 if (uresp) { in rxe_create_ah() 189 err = copy_to_user(&uresp->ah_num, &ah->ah_num, in rxe_create_ah() 190 sizeof(uresp->ah_num)); in rxe_create_ah() 290 struct rxe_create_srq_resp __user *uresp = NULL; in rxe_create_srq() local 293 if (udata->outlen < sizeof(*uresp)) in rxe_create_srq() 295 uresp = udata->outbuf; in rxe_create_srq() 312 err = rxe_srq_from_init(rxe, srq, init, udata, uresp); in rxe_create_srq() [all …]
|
D | rxe_loc.h | 30 struct rxe_create_cq_resp __user *uresp); 33 struct rxe_resize_cq_resp __user *uresp, 106 struct rxe_create_qp_resp __user *uresp, 163 struct rxe_create_srq_resp __user *uresp);
|
D | rxe_qp.c | 189 struct rxe_create_qp_resp __user *uresp) in rxe_qp_init_req() argument 224 err = do_mmap_info(rxe, uresp ? &uresp->sq_mi : NULL, udata, in rxe_qp_init_req() 261 struct rxe_create_qp_resp __user *uresp) in rxe_qp_init_resp() argument 282 err = do_mmap_info(rxe, uresp ? &uresp->rq_mi : NULL, udata, in rxe_qp_init_resp() 308 struct rxe_create_qp_resp __user *uresp, in rxe_qp_from_init() argument 333 err = rxe_qp_init_req(rxe, qp, init, udata, uresp); in rxe_qp_from_init() 337 err = rxe_qp_init_resp(rxe, qp, init, udata, uresp); in rxe_qp_from_init()
|
/linux-6.1.9/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 931 struct ocrdma_create_cq_uresp uresp; in ocrdma_copy_cq_uresp() local 937 memset(&uresp, 0, sizeof(uresp)); in ocrdma_copy_cq_uresp() 938 uresp.cq_id = cq->id; in ocrdma_copy_cq_uresp() 939 uresp.page_size = PAGE_ALIGN(cq->len); in ocrdma_copy_cq_uresp() 940 uresp.num_pages = 1; in ocrdma_copy_cq_uresp() 941 uresp.max_hw_cqe = cq->max_hw_cqe; in ocrdma_copy_cq_uresp() 942 uresp.page_addr[0] = virt_to_phys(cq->va); in ocrdma_copy_cq_uresp() 943 uresp.db_page_addr = ocrdma_get_db_addr(dev, uctx->cntxt_pd->id); in ocrdma_copy_cq_uresp() 944 uresp.db_page_size = dev->nic_info.db_page_size; in ocrdma_copy_cq_uresp() 945 uresp.phase_change = cq->phase_change ? 1 : 0; in ocrdma_copy_cq_uresp() [all …]
|
/linux-6.1.9/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 84 struct siw_uresp_alloc_ctx uresp = {}; in siw_alloc_ucontext() local 93 uresp.dev_id = sdev->vendor_part_id; in siw_alloc_ucontext() 95 if (udata->outlen < sizeof(uresp)) { in siw_alloc_ucontext() 99 rv = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in siw_alloc_ucontext() 436 struct siw_uresp_create_qp uresp = {}; in siw_create_qp() local 438 uresp.num_sqe = num_sqe; in siw_create_qp() 439 uresp.num_rqe = num_rqe; in siw_create_qp() 440 uresp.qp_id = qp_id(qp); in siw_create_qp() 446 length, &uresp.sq_key); in siw_create_qp() 457 length, &uresp.rq_key); in siw_create_qp() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 82 struct c4iw_alloc_ucontext_resp uresp; in c4iw_alloc_ucontext() local 91 if (udata->outlen < sizeof(uresp) - sizeof(uresp.reserved)) { in c4iw_alloc_ucontext() 101 uresp.status_page_size = PAGE_SIZE; in c4iw_alloc_ucontext() 104 uresp.status_page_key = context->key; in c4iw_alloc_ucontext() 108 ret = ib_copy_to_udata(udata, &uresp, in c4iw_alloc_ucontext() 109 sizeof(uresp) - sizeof(uresp.reserved)); in c4iw_alloc_ucontext() 113 mm->key = uresp.status_page_key; in c4iw_alloc_ucontext() 225 struct c4iw_alloc_pd_resp uresp = {.pdid = php->pdid}; in c4iw_allocate_pd() local 227 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in c4iw_allocate_pd()
|
D | cq.c | 1006 struct c4iw_create_cq_resp uresp; in c4iw_create_cq() local 1104 memset(&uresp, 0, sizeof(uresp)); in c4iw_create_cq() 1105 uresp.qid_mask = rhp->rdev.cqmask; in c4iw_create_cq() 1106 uresp.cqid = chp->cq.cqid; in c4iw_create_cq() 1107 uresp.size = chp->cq.size; in c4iw_create_cq() 1108 uresp.memsize = chp->cq.memsize; in c4iw_create_cq() 1110 uresp.key = ucontext->key; in c4iw_create_cq() 1112 uresp.gts_key = ucontext->key; in c4iw_create_cq() 1117 uresp.flags |= C4IW_64B_CQE; in c4iw_create_cq() 1120 ret = ib_copy_to_udata(udata, &uresp, in c4iw_create_cq() [all …]
|
D | qp.c | 2118 struct c4iw_create_qp_resp uresp; in c4iw_create_qp() local 2241 memset(&uresp, 0, sizeof(uresp)); in c4iw_create_qp() 2249 uresp.flags = C4IW_QPF_ONCHIP; in c4iw_create_qp() 2252 uresp.flags |= C4IW_QPF_WRITE_W_IMM; in c4iw_create_qp() 2253 uresp.qid_mask = rhp->rdev.qpmask; in c4iw_create_qp() 2254 uresp.sqid = qhp->wq.sq.qid; in c4iw_create_qp() 2255 uresp.sq_size = qhp->wq.sq.size; in c4iw_create_qp() 2256 uresp.sq_memsize = qhp->wq.sq.memsize; in c4iw_create_qp() 2258 uresp.rqid = qhp->wq.rq.qid; in c4iw_create_qp() 2259 uresp.rq_size = qhp->wq.rq.size; in c4iw_create_qp() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 675 struct erdma_uresp_create_qp uresp; in erdma_create_qp() local 718 memset(&uresp, 0, sizeof(uresp)); in erdma_create_qp() 720 uresp.num_sqe = qp->attrs.sq_size; in erdma_create_qp() 721 uresp.num_rqe = qp->attrs.rq_size; in erdma_create_qp() 722 uresp.qp_id = QP_ID(qp); in erdma_create_qp() 723 uresp.rq_offset = qp->user_qp.rq_offset; in erdma_create_qp() 725 ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in erdma_create_qp() 1179 struct erdma_uresp_alloc_ctx uresp = {}; in erdma_alloc_ucontext() local 1194 if (udata->outlen < sizeof(uresp)) { in erdma_alloc_ucontext() 1200 ctx, (void *)ctx->sdb, PAGE_SIZE, ERDMA_MMAP_IO_NC, &uresp.sdb); in erdma_alloc_ucontext() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ |
D | verbs.c | 266 struct qedr_alloc_ucontext_resp uresp = {}; in qedr_alloc_ucontext() local 319 uresp.dpm_flags = 0; in qedr_alloc_ucontext() 321 uresp.dpm_flags = QEDR_DPM_TYPE_IWARP_LEGACY; in qedr_alloc_ucontext() 323 uresp.dpm_flags = QEDR_DPM_TYPE_ROCE_ENHANCED | in qedr_alloc_ucontext() 328 uresp.dpm_flags |= QEDR_DPM_SIZES_SET; in qedr_alloc_ucontext() 329 uresp.ldpm_limit_size = QEDR_LDPM_MAX_SIZE; in qedr_alloc_ucontext() 330 uresp.edpm_trans_size = QEDR_EDPM_TRANS_SIZE; in qedr_alloc_ucontext() 331 uresp.edpm_limit_size = QEDR_EDPM_MAX_SIZE; in qedr_alloc_ucontext() 334 uresp.wids_enabled = 1; in qedr_alloc_ucontext() 335 uresp.wid_count = oparams.wid_count; in qedr_alloc_ucontext() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/irdma/ |
D | verbs.c | 278 struct irdma_alloc_ucontext_resp uresp = {}; in irdma_alloc_ucontext() local 302 uresp.max_qps = iwdev->rf->max_qp; in irdma_alloc_ucontext() 303 uresp.max_pds = iwdev->rf->sc_dev.hw_attrs.max_hw_pds; in irdma_alloc_ucontext() 304 uresp.wq_size = iwdev->rf->sc_dev.hw_attrs.max_qp_wr * 2; in irdma_alloc_ucontext() 305 uresp.kernel_ver = req.userspace_ver; in irdma_alloc_ucontext() 306 if (ib_copy_to_udata(udata, &uresp, in irdma_alloc_ucontext() 307 min(sizeof(uresp), udata->outlen))) in irdma_alloc_ucontext() 315 &uresp.db_mmap_key); in irdma_alloc_ucontext() 319 uresp.kernel_ver = IRDMA_ABI_VER; in irdma_alloc_ucontext() 320 uresp.feature_flags = uk_attrs->feature_flags; in irdma_alloc_ucontext() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_verbs.c | 322 struct pvrdma_alloc_ucontext_resp uresp = {}; in pvrdma_alloc_ucontext() local 350 uresp.qp_tab_size = vdev->dsr->caps.max_qp; in pvrdma_alloc_ucontext() 351 ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in pvrdma_alloc_ucontext()
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_provider.c | 290 struct mthca_alloc_ucontext_resp uresp = {}; in mthca_alloc_ucontext() local 297 uresp.qp_tab_size = to_mdev(ibdev)->limits.num_qps; in mthca_alloc_ucontext() 299 uresp.uarc_size = to_mdev(ibdev)->uar_table.uarc_size; in mthca_alloc_ucontext() 301 uresp.uarc_size = 0; in mthca_alloc_ucontext() 314 if (ib_copy_to_udata(udata, &uresp, sizeof(uresp))) { in mthca_alloc_ucontext()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | psp_gfx_if.h | 394 union psp_gfx_uresp uresp; /* +64 response union containing command-specific responses */ member
|
D | amdgpu_psp.c | 874 *output_ptr = ((uint64_t)cmd->resp.uresp.fwar_db_info.fwar_db_addr_lo) + in psp_get_fw_attestation_records_addr() 875 ((uint64_t)cmd->resp.uresp.fwar_db_info.fwar_db_addr_hi << 32); in psp_get_fw_attestation_records_addr() 900 (cmd->resp.uresp.boot_cfg.boot_cfg & BOOT_CONFIG_GECC) ? 1 : 0; in psp_boot_config_get()
|