Home
last modified time | relevance | path

Searched refs:max_sge (Results 1 – 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_srq.c58 if (attr->max_sge > rxe->attr.max_srq_sge) { in rxe_srq_chk_attr()
60 attr->max_sge, rxe->attr.max_srq_sge); in rxe_srq_chk_attr()
64 if (attr->max_sge < RXE_MIN_SRQ_SGE) in rxe_srq_chk_attr()
65 attr->max_sge = RXE_MIN_SRQ_SGE; in rxe_srq_chk_attr()
87 srq->rq.max_sge = init->attr.max_sge; in rxe_srq_from_init()
89 srq_wqe_size = rcv_wqe_size(srq->rq.max_sge); in rxe_srq_from_init()
138 rcv_wqe_size(srq->rq.max_sge), udata, mi, in rxe_srq_from_attr()
Drxe_qp.c225 qp->sq.max_sge = init->cap.max_send_sge = in rxe_qp_init_req()
275 qp->rq.max_sge = init->cap.max_recv_sge; in rxe_qp_init_resp()
277 wqe_size = rcv_wqe_size(qp->rq.max_sge); in rxe_qp_init_resp()
280 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp()
376 init->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_init()
381 init->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_init()
735 attr->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_attr()
740 attr->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_attr()
Drxe_loc.h170 static inline int rcv_wqe_size(int max_sge) in rcv_wqe_size() argument
173 max_sge * sizeof(struct ib_sge); in rcv_wqe_size()
Drxe_verbs.h81 int max_sge; member
89 int max_sge; member
/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dsrq.c87 if (srq_init_attr->attr.max_sge == 0 || in rvt_create_srq()
88 srq_init_attr->attr.max_sge > dev->dparms.props.max_srq_sge || in rvt_create_srq()
97 srq->rq.max_sge = srq_init_attr->attr.max_sge; in rvt_create_srq()
98 sz = sizeof(struct ib_sge) * srq->rq.max_sge + in rvt_create_srq()
187 srq->rq.max_sge * sizeof(struct ib_sge); in rvt_modify_srq()
325 attr->max_sge = srq->rq.max_sge; in rvt_query_srq()
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_srq.c86 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()
Dpvrdma_verbs.c84 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()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_wq.c49 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()
Duverbs_std_types_srq.c50 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()
Duverbs_cmd.c341 resp->max_sge = min(attr->max_send_sge, attr->max_recv_sge); in copy_query_dev_fields()
2907 wq_init_attr.max_sge = cmd.max_sge; in ib_uverbs_ex_create_wq()
2940 resp.max_sge = wq_init_attr.max_sge; in ib_uverbs_ex_create_wq()
3400 attr.attr.max_sge = cmd->max_sge; in __uverbs_create_xsrq()
3433 resp.max_sge = attr.attr.max_sge; in __uverbs_create_xsrq()
3470 xcmd.max_sge = cmd.max_sge; in ib_uverbs_create_srq()
3542 resp.max_sge = attr.max_sge; in ib_uverbs_query_srq()
3625 resp.tm_caps.max_sge = attr.tm_caps.max_sge; in ib_uverbs_ex_query_device()
3960 max_sge,
Drw.c198 u32 max_sge = dir == DMA_TO_DEVICE ? qp->max_write_sge : in rdma_rw_init_map_wrs() local
203 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
215 u32 nr_sge = min(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Dib_user_verbs.h118 __u32 max_sge; member
179 __u32 max_sge; member
952 __u32 max_sge; member
962 __u32 max_sge; member
972 __u32 max_sge; member
990 __u32 max_sge; member
1009 __u32 max_sge; member
1018 __u32 max_sge; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Dib_user_verbs.h187 __u32 max_sge; member
255 __u32 max_sge; member
1176 __u32 max_sge; member
1187 __u32 max_sge; member
1198 __u32 max_sge; member
1220 __u32 max_sge; member
1242 __u32 max_sge; member
1252 __u32 max_sge; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dib_user_verbs.h132 __u32 max_sge; member
187 __u32 max_sge; member
973 __u32 max_sge; member
983 __u32 max_sge; member
993 __u32 max_sge; member
1012 __u32 max_sge; member
1031 __u32 max_sge; member
1040 __u32 max_sge; member
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dfrwr_ops.c172 unsigned int max_sge; in frwr_query_device() local
181 max_sge = min_t(unsigned int, attrs->max_send_sge, in frwr_query_device()
183 if (max_sge < RPCRDMA_MIN_SEND_SGES) { in frwr_query_device()
184 pr_err("rpcrdma: HCA provides only %u send SGEs\n", max_sge); in frwr_query_device()
187 ep->re_attr.cap.max_send_sge = max_sge; in frwr_query_device()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_verbs.c147 attr->max_recv_sge = sdev->attrs.max_sge; in siw_query_device()
149 attr->max_send_sge = sdev->attrs.max_sge; in siw_query_device()
1406 u32 max_sge) in siw_alloc_mr() argument
1423 if (max_sge > SIW_MAX_SGE_PBL) { in siw_alloc_mr()
1424 siw_dbg_pd(pd, "too many sge's: %d\n", max_sge); in siw_alloc_mr()
1428 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr()
1440 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr()
1601 attrs->max_sge > SIW_MAX_SGE || attrs->srq_limit > attrs->max_wr) { in siw_create_srq()
1605 srq->max_sge = attrs->max_sge; in siw_create_srq()
1716 attrs->max_sge = srq->max_sge; in siw_query_srq()
[all …]
Dsiw_verbs.h71 u32 max_sge);
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c883 sq->wqe_size = bnxt_re_get_wqe_size(ilsize, sq->max_sge); in bnxt_re_setup_swqe_size()
898 sq->max_sge = qplqp->max_inline_data / in bnxt_re_setup_swqe_size()
1044 qp->qplib_qp.sq.max_sge = 2; in bnxt_re_create_shadow_qp()
1055 qp->qplib_qp.rq.max_sge = qp1_qp->rq.max_sge; in bnxt_re_create_shadow_qp()
1108 rq->max_sge = init_attr->cap.max_recv_sge; in bnxt_re_init_rq_attr()
1109 if (rq->max_sge > dev_attr->max_qp_sges) in bnxt_re_init_rq_attr()
1110 rq->max_sge = dev_attr->max_qp_sges; in bnxt_re_init_rq_attr()
1111 init_attr->cap.max_recv_sge = rq->max_sge; in bnxt_re_init_rq_attr()
1112 rq->wqe_size = bnxt_re_setup_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr()
1138 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
[all …]
Dqplib_fp.h95 u32 max_sge; member
254 u16 max_sge; member
/kernel/linux/linux-5.10/net/rds/
Dib.c154 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()
Dib_send.c863 u32 max_sge = ic->rds_ibdev->max_sge; in rds_ib_xmit_rdma() local
901 i = DIV_ROUND_UP(op->op_count, max_sge); in rds_ib_xmit_rdma()
931 if (num_sge > max_sge) { in rds_ib_xmit_rdma()
932 send->s_rdma_wr.wr.num_sge = max_sge; in rds_ib_xmit_rdma()
933 num_sge -= max_sge; in rds_ib_xmit_rdma()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dsrq.c91 init_attr->attr.max_sge > dev->dev->caps.max_srq_sge) in mlx4_ib_create_srq()
97 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
259 srq_attr->max_sge = srq->msrq.max_gs; in mlx4_ib_query_srq()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_srq.c216 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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_srq.c298 init_attr->attr.max_sge > hr_dev->caps.max_srq_sges) in hns_roce_create_srq()
305 srq->max_gs = init_attr->attr.max_sge; in hns_roce_create_srq()
/kernel/linux/linux-5.10/drivers/scsi/csiostor/
Dcsio_scsi.h149 uint8_t max_sge; /* Max SGE */ member

123