Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_cq.c44 struct rxe_create_cq_resp __user *uresp) in rxe_cq_from_init() argument
57 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, in rxe_cq_from_init()
65 cq->is_user = uresp; in rxe_cq_from_init()
73 struct rxe_resize_cq_resp __user *uresp, in rxe_cq_resize_queue() argument
80 uresp ? &uresp->mi : NULL, NULL, &cq->cq_lock); in rxe_cq_resize_queue()
Drxe_srq.c46 struct rxe_create_srq_resp __user *uresp) in rxe_srq_from_init() argument
73 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, in rxe_srq_from_init()
83 if (uresp) { in rxe_srq_from_init()
84 if (copy_to_user(&uresp->srq_num, &srq->srq_num, in rxe_srq_from_init()
85 sizeof(uresp->srq_num))) { in rxe_srq_from_init()
Drxe_verbs.c267 struct rxe_create_ah_resp __user *uresp = NULL; in rxe_create_ah() local
272 if (udata->outlen >= sizeof(*uresp)) in rxe_create_ah()
273 uresp = udata->outbuf; in rxe_create_ah()
295 if (uresp) { in rxe_create_ah()
297 err = copy_to_user(&uresp->ah_num, &ah->ah_num, in rxe_create_ah()
298 sizeof(uresp->ah_num)); in rxe_create_ah()
373 struct rxe_create_srq_resp __user *uresp = NULL; in rxe_create_srq() local
377 if (udata->outlen < sizeof(*uresp)) { in rxe_create_srq()
382 uresp = udata->outbuf; in rxe_create_srq()
407 err = rxe_srq_from_init(rxe, srq, init, udata, uresp); in rxe_create_srq()
[all …]
Drxe_qp.c188 struct rxe_create_qp_resp __user *uresp) in rxe_init_sq() argument
210 err = do_mmap_info(rxe, uresp ? &uresp->sq_mi : NULL, udata, in rxe_init_sq()
237 struct rxe_create_qp_resp __user *uresp) in rxe_qp_init_req() argument
258 err = rxe_init_sq(qp, init, udata, uresp); in rxe_qp_init_req()
281 struct rxe_create_qp_resp __user *uresp) in rxe_init_rq() argument
301 err = do_mmap_info(rxe, uresp ? &uresp->rq_mi : NULL, udata, in rxe_init_rq()
327 struct rxe_create_qp_resp __user *uresp) in rxe_qp_init_resp() argument
335 err = rxe_init_rq(qp, init, udata, uresp); in rxe_qp_init_resp()
351 struct rxe_create_qp_resp __user *uresp, in rxe_qp_from_init() argument
377 err = rxe_qp_init_req(rxe, qp, init, udata, uresp); in rxe_qp_from_init()
[all …]
Drxe_loc.h26 struct rxe_create_cq_resp __user *uresp);
29 struct rxe_resize_cq_resp __user *uresp,
104 struct rxe_create_qp_resp __user *uresp,
155 struct rxe_create_srq_resp __user *uresp);
/linux-6.6.21/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c931 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.6.21/drivers/infiniband/sw/siw/
Dsiw_verbs.c84 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.6.21/drivers/infiniband/hw/cxgb4/
Dprovider.c82 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()
Dcq.c1006 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 …]
Dqp.c2118 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.6.21/drivers/infiniband/hw/qedr/
Dverbs.c266 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.6.21/drivers/infiniband/hw/irdma/
Dverbs.c278 struct irdma_alloc_ucontext_resp uresp = {}; in irdma_alloc_ucontext() local
304 uresp.max_qps = iwdev->rf->max_qp; in irdma_alloc_ucontext()
305 uresp.max_pds = iwdev->rf->sc_dev.hw_attrs.max_hw_pds; in irdma_alloc_ucontext()
306 uresp.wq_size = iwdev->rf->sc_dev.hw_attrs.max_qp_wr * 2; in irdma_alloc_ucontext()
307 uresp.kernel_ver = req.userspace_ver; in irdma_alloc_ucontext()
308 if (ib_copy_to_udata(udata, &uresp, in irdma_alloc_ucontext()
309 min(sizeof(uresp), udata->outlen))) in irdma_alloc_ucontext()
317 &uresp.db_mmap_key); in irdma_alloc_ucontext()
321 uresp.kernel_ver = IRDMA_ABI_VER; in irdma_alloc_ucontext()
322 uresp.feature_flags = uk_attrs->feature_flags; in irdma_alloc_ucontext()
[all …]
/linux-6.6.21/drivers/infiniband/hw/erdma/
Derdma_verbs.c927 struct erdma_uresp_create_qp uresp; in erdma_create_qp() local
970 memset(&uresp, 0, sizeof(uresp)); in erdma_create_qp()
972 uresp.num_sqe = qp->attrs.sq_size; in erdma_create_qp()
973 uresp.num_rqe = qp->attrs.rq_size; in erdma_create_qp()
974 uresp.qp_id = QP_ID(qp); in erdma_create_qp()
975 uresp.rq_offset = qp->user_qp.rq_offset; in erdma_create_qp()
977 ret = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in erdma_create_qp()
1434 struct erdma_uresp_alloc_ctx uresp = {}; in erdma_alloc_ucontext() local
1441 if (udata->outlen < sizeof(uresp)) { in erdma_alloc_ucontext()
1456 ctx, (void *)ctx->sdb, PAGE_SIZE, ERDMA_MMAP_IO_NC, &uresp.sdb); in erdma_alloc_ucontext()
[all …]
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c322 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.6.21/drivers/infiniband/hw/mthca/
Dmthca_provider.c290 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.6.21/drivers/gpu/drm/amd/amdgpu/
Dpsp_gfx_if.h403 union psp_gfx_uresp uresp; /* +64 response union containing command-specific responses */ member
Damdgpu_psp.c927 *output_ptr = ((uint64_t)cmd->resp.uresp.fwar_db_info.fwar_db_addr_lo) + in psp_get_fw_attestation_records_addr()
928 ((uint64_t)cmd->resp.uresp.fwar_db_info.fwar_db_addr_hi << 32); in psp_get_fw_attestation_records_addr()
953 (cmd->resp.uresp.boot_cfg.boot_cfg & BOOT_CONFIG_GECC) ? 1 : 0; in psp_boot_config_get()