Lines Matching refs:uresp
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()
336 uresp.db_pa = rdma_user_mmap_get_offset(ctx->db_mmap_entry); in qedr_alloc_ucontext()
337 uresp.db_size = ctx->dpi_size; in qedr_alloc_ucontext()
338 uresp.max_send_wr = dev->attr.max_sqe; in qedr_alloc_ucontext()
339 uresp.max_recv_wr = dev->attr.max_rqe; in qedr_alloc_ucontext()
340 uresp.max_srq_wr = dev->attr.max_srq_wr; in qedr_alloc_ucontext()
341 uresp.sges_per_send_wr = QEDR_MAX_SQE_ELEMENTS_PER_SQE; in qedr_alloc_ucontext()
342 uresp.sges_per_recv_wr = QEDR_MAX_RQE_ELEMENTS_PER_RQE; in qedr_alloc_ucontext()
343 uresp.sges_per_srq_wr = dev->attr.max_srq_sge; in qedr_alloc_ucontext()
344 uresp.max_cqes = QEDR_MAX_CQES; in qedr_alloc_ucontext()
346 rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_alloc_ucontext()
459 struct qedr_alloc_pd_uresp uresp = { in qedr_alloc_pd() local
465 rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_alloc_pd()
706 struct qedr_create_cq_uresp uresp; in qedr_copy_cq_uresp() local
709 memset(&uresp, 0, sizeof(uresp)); in qedr_copy_cq_uresp()
711 uresp.db_offset = db_offset; in qedr_copy_cq_uresp()
712 uresp.icid = cq->icid; in qedr_copy_cq_uresp()
714 uresp.db_rec_addr = in qedr_copy_cq_uresp()
717 rc = qedr_ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_copy_cq_uresp()
1258 struct qedr_create_srq_uresp uresp = {}; in qedr_copy_srq_uresp() local
1261 uresp.srq_id = srq->srq_id; in qedr_copy_srq_uresp()
1263 rc = ib_copy_to_udata(udata, &uresp, sizeof(uresp)); in qedr_copy_srq_uresp()
1271 struct qedr_create_qp_uresp *uresp, in qedr_copy_rq_uresp() argument
1276 uresp->rq_db_offset = in qedr_copy_rq_uresp()
1278 uresp->rq_db2_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_TCM_FLAGS); in qedr_copy_rq_uresp()
1280 uresp->rq_db_offset = in qedr_copy_rq_uresp()
1284 uresp->rq_icid = qp->icid; in qedr_copy_rq_uresp()
1286 uresp->rq_db_rec_addr = in qedr_copy_rq_uresp()
1291 struct qedr_create_qp_uresp *uresp, in qedr_copy_sq_uresp() argument
1294 uresp->sq_db_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_XCM_RDMA_SQ_PROD); in qedr_copy_sq_uresp()
1298 uresp->sq_icid = qp->icid; in qedr_copy_sq_uresp()
1300 uresp->sq_icid = qp->icid + 1; in qedr_copy_sq_uresp()
1303 uresp->sq_db_rec_addr = in qedr_copy_sq_uresp()
1309 struct qedr_create_qp_uresp *uresp) in qedr_copy_qp_uresp() argument
1313 memset(uresp, 0, sizeof(*uresp)); in qedr_copy_qp_uresp()
1316 qedr_copy_sq_uresp(dev, uresp, qp); in qedr_copy_qp_uresp()
1319 qedr_copy_rq_uresp(dev, uresp, qp); in qedr_copy_qp_uresp()
1321 uresp->atomic_supported = dev->atomic_cap != IB_ATOMIC_NONE; in qedr_copy_qp_uresp()
1322 uresp->qp_id = qp->qp_id; in qedr_copy_qp_uresp()
1324 rc = qedr_ib_copy_to_udata(udata, uresp, sizeof(*uresp)); in qedr_copy_qp_uresp()
1847 struct qedr_create_qp_uresp uresp = {}; in qedr_create_user_qp() local
1927 rc = qedr_copy_qp_uresp(dev, qp, udata, &uresp); in qedr_create_user_qp()
1934 qp->usq.db_addr = ctx->dpi_addr + uresp.sq_db_offset; in qedr_create_user_qp()
1945 qp->urq.db_addr = ctx->dpi_addr + uresp.rq_db_offset; in qedr_create_user_qp()
1956 qp->urq.db_rec_db2_addr = ctx->dpi_addr + uresp.rq_db2_offset; in qedr_create_user_qp()