/linux-5.19.10/drivers/infiniband/sw/rxe/ |
D | rxe_srq.c | 29 if (attr->max_sge > rxe->attr.max_srq_sge) { in rxe_srq_chk_init() 31 attr->max_sge, rxe->attr.max_srq_sge); in rxe_srq_chk_init() 35 if (attr->max_sge < RXE_MIN_SRQ_SGE) in rxe_srq_chk_init() 36 attr->max_sge = RXE_MIN_SRQ_SGE; in rxe_srq_chk_init() 58 srq->rq.max_sge = init->attr.max_sge; in rxe_srq_from_init() 60 srq_wqe_size = rcv_wqe_size(srq->rq.max_sge); in rxe_srq_from_init() 160 rcv_wqe_size(srq->rq.max_sge), udata, mi, in rxe_srq_from_attr()
|
D | rxe_qp.c | 215 qp->sq.max_sge = init->cap.max_send_sge = in rxe_qp_init_req() 270 qp->rq.max_sge = init->cap.max_recv_sge; in rxe_qp_init_resp() 272 wqe_size = rcv_wqe_size(qp->rq.max_sge); in rxe_qp_init_resp() 275 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp() 378 init->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_init() 383 init->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_init() 738 attr->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_attr() 743 attr->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_attr()
|
D | rxe_loc.h | 141 static inline int rcv_wqe_size(int max_sge) in rcv_wqe_size() argument 144 max_sge * sizeof(struct ib_sge); in rcv_wqe_size()
|
D | rxe_verbs.h | 83 int max_sge; member 91 int max_sge; member
|
D | rxe_verbs.c | 250 if (unlikely(num_sge > rq->max_sge)) { in post_one_recv() 356 attr->max_sge = srq->rq.max_sge; in rxe_query_srq() 498 if (unlikely(num_sge > sq->max_sge)) in validate_send_wr()
|
/linux-5.19.10/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 270 u32 max_sge = dev->caps.max_srq_sges; in proc_srq_sge() local 273 return max_sge; in proc_srq_sge() 282 max_sge = roundup_pow_of_two(max_sge + 1); in proc_srq_sge() 286 return max_sge; in proc_srq_sge() 295 u32 max_sge; in set_srq_basic_param() local 297 max_sge = proc_srq_sge(hr_dev, srq, !!udata); in set_srq_basic_param() 299 attr->max_sge > max_sge) { in set_srq_basic_param() 302 attr->max_wr, attr->max_sge); in set_srq_basic_param() 308 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge); in set_srq_basic_param() 311 attr->max_sge = srq->max_gs - srq->rsv_sge; in set_srq_basic_param()
|
D | hns_roce_qp.c | 410 u32 max_sge = dev->caps.max_rq_sg; in proc_rq_sge() local 413 return max_sge; in proc_rq_sge() 422 max_sge = roundup_pow_of_two(max_sge + 1); in proc_rq_sge() 426 return max_sge; in proc_rq_sge() 432 u32 max_sge = proc_rq_sge(hr_dev, hr_qp, user); in set_rq_size() local 448 cap->max_recv_sge > max_sge) { in set_rq_size()
|
/linux-5.19.10/drivers/infiniband/sw/rdmavt/ |
D | srq.c | 45 if (srq_init_attr->attr.max_sge == 0 || in rvt_create_srq() 46 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq() 55 srq->rq.max_sge = srq_init_attr->attr.max_sge; in rvt_create_srq() 56 sz = sizeof(struct ib_sge) * srq->rq.max_sge + in rvt_create_srq() 145 srq->rq.max_sge * sizeof(struct ib_sge); in rvt_modify_srq() 284 attr->max_sge = srq->rq.max_sge; in rvt_query_srq()
|
/linux-5.19.10/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_srq.c | 86 srq_attr->max_sge = resp->attrs.max_sge; in pvrdma_query_srq() 128 init_attr->attr.max_sge > dev->dsr->caps.max_srq_sge) { in pvrdma_create_srq() 179 cmd->attrs.max_sge = init_attr->attr.max_sge; in pvrdma_create_srq()
|
D | pvrdma_verbs.c | 84 props->max_send_sge = dev->dsr->caps.max_sge; in pvrdma_query_device() 85 props->max_recv_sge = dev->dsr->caps.max_sge; in pvrdma_query_device() 86 props->max_sge_rd = PVRDMA_GET_CAP(dev, dev->dsr->caps.max_sge, in pvrdma_query_device()
|
/linux-5.19.10/drivers/infiniband/core/ |
D | uverbs_std_types_wq.c | 49 ret = uverbs_copy_from(&wq_init_attr.max_sge, attrs, in UVERBS_HANDLER() 99 &wq_init_attr.max_sge, in UVERBS_HANDLER() 100 sizeof(wq_init_attr.max_sge)); in UVERBS_HANDLER()
|
D | uverbs_std_types_srq.c | 50 ret = uverbs_copy_from(&attr.attr.max_sge, attrs, in UVERBS_HANDLER() 123 &attr.attr.max_sge, in UVERBS_HANDLER() 124 sizeof(attr.attr.max_sge)); in UVERBS_HANDLER()
|
D | uverbs_cmd.c | 341 resp->max_sge = min(attr->max_send_sge, attr->max_recv_sge); in copy_query_dev_fields() 2909 wq_init_attr.max_sge = cmd.max_sge; in ib_uverbs_ex_create_wq() 2942 resp.max_sge = wq_init_attr.max_sge; in ib_uverbs_ex_create_wq() 3407 attr.attr.max_sge = cmd->max_sge; in __uverbs_create_xsrq() 3440 resp.max_sge = attr.attr.max_sge; in __uverbs_create_xsrq() 3477 xcmd.max_sge = cmd.max_sge; in ib_uverbs_create_srq() 3549 resp.max_sge = attr.max_sge; in ib_uverbs_query_srq() 3632 resp.tm_caps.max_sge = attr.tm_caps.max_sge; in ib_uverbs_ex_query_device() 3967 max_sge,
|
D | rw.c | 199 u32 max_sge = dir == DMA_TO_DEVICE ? qp->max_write_sge : in rdma_rw_init_map_wrs() local 204 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs() 216 u32 nr_sge = min(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
|
/linux-5.19.10/include/uapi/rdma/ |
D | ib_user_verbs.h | 187 __u32 max_sge; member 255 __u32 max_sge; member 1162 __u32 max_sge; member 1173 __u32 max_sge; member 1184 __u32 max_sge; member 1206 __u32 max_sge; member 1228 __u32 max_sge; member 1238 __u32 max_sge; member
|
/linux-5.19.10/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 148 attr->max_recv_sge = sdev->attrs.max_sge; in siw_query_device() 150 attr->max_send_sge = sdev->attrs.max_sge; in siw_query_device() 1378 u32 max_sge) in siw_alloc_mr() argument 1395 if (max_sge > SIW_MAX_SGE_PBL) { in siw_alloc_mr() 1396 siw_dbg_pd(pd, "too many sge's: %d\n", max_sge); in siw_alloc_mr() 1400 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr() 1412 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr() 1576 attrs->max_sge > SIW_MAX_SGE || attrs->srq_limit > attrs->max_wr) { in siw_create_srq() 1580 srq->max_sge = attrs->max_sge; in siw_create_srq() 1691 attrs->max_sge = srq->max_sge; in siw_query_srq() [all …]
|
D | siw_verbs.h | 70 u32 max_sge);
|
/linux-5.19.10/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 888 sq->wqe_size = bnxt_re_get_wqe_size(ilsize, sq->max_sge); in bnxt_re_setup_swqe_size() 903 sq->max_sge = qplqp->max_inline_data / in bnxt_re_setup_swqe_size() 1050 qp->qplib_qp.sq.max_sge = 2; in bnxt_re_create_shadow_qp() 1061 qp->qplib_qp.rq.max_sge = qp1_qp->rq.max_sge; in bnxt_re_create_shadow_qp() 1110 rq->max_sge = init_attr->cap.max_recv_sge; in bnxt_re_init_rq_attr() 1111 if (rq->max_sge > dev_attr->max_qp_sges) in bnxt_re_init_rq_attr() 1112 rq->max_sge = dev_attr->max_qp_sges; in bnxt_re_init_rq_attr() 1113 init_attr->cap.max_recv_sge = rq->max_sge; in bnxt_re_init_rq_attr() 1114 rq->wqe_size = bnxt_re_setup_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr() 1140 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr() [all …]
|
D | qplib_fp.h | 97 u32 max_sge; member 256 u16 max_sge; member
|
/linux-5.19.10/net/sunrpc/xprtrdma/ |
D | frwr_ops.c | 179 unsigned int max_sge; in frwr_query_device() local 188 max_sge = min_t(unsigned int, attrs->max_send_sge, in frwr_query_device() 190 if (max_sge < RPCRDMA_MIN_SEND_SGES) { in frwr_query_device() 191 pr_err("rpcrdma: HCA provides only %u send SGEs\n", max_sge); in frwr_query_device() 194 ep->re_attr.cap.max_send_sge = max_sge; in frwr_query_device()
|
/linux-5.19.10/net/rds/ |
D | ib.c | 154 rds_ibdev->max_sge = min(device->attrs.max_send_sge, RDS_IB_MAX_SGE); in rds_ib_add_one() 210 device->attrs.max_mr, rds_ibdev->max_wrs, rds_ibdev->max_sge, in rds_ib_add_one() 324 iinfo->max_send_sge = rds_ibdev->max_sge; in rds_ib_conn_info_visitor() 361 iinfo6->max_send_sge = rds_ibdev->max_sge; in rds6_ib_conn_info_visitor()
|
D | ib_send.c | 862 u32 max_sge = ic->rds_ibdev->max_sge; in rds_ib_xmit_rdma() local 900 i = DIV_ROUND_UP(op->op_count, max_sge); in rds_ib_xmit_rdma() 930 if (num_sge > max_sge) { in rds_ib_xmit_rdma() 931 send->s_rdma_wr.wr.num_sge = max_sge; in rds_ib_xmit_rdma() 932 num_sge -= max_sge; in rds_ib_xmit_rdma()
|
/linux-5.19.10/drivers/infiniband/hw/mlx4/ |
D | srq.c | 95 init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) in mlx4_ib_create_srq() 101 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq() 263 srq_attr->max_sge = srq->msrq.max_gs; in mlx4_ib_query_srq()
|
/linux-5.19.10/drivers/infiniband/hw/mthca/ |
D | mthca_srq.c | 216 attr->max_sge > dev->limits.max_srq_sge) in mthca_alloc_srq() 220 srq->max_gs = attr->max_sge; in mthca_alloc_srq() 298 attr->max_sge = srq->max_gs; in mthca_alloc_srq() 422 srq_attr->max_sge = srq->max_gs; in mthca_query_srq()
|
/linux-5.19.10/drivers/scsi/elx/efct/ |
D | efct_lio.h | 37 u32 max_sge; member
|