/drivers/infiniband/sw/rxe/ |
D | rxe_srq.c | 58 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()
|
D | rxe_qp.c | 228 qp->sq.max_sge = init->cap.max_send_sge = in rxe_qp_init_req() 274 qp->rq.max_sge = init->cap.max_recv_sge; in rxe_qp_init_resp() 276 wqe_size = rcv_wqe_size(qp->rq.max_sge); in rxe_qp_init_resp() 279 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp() 372 init->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_init() 377 init->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_init() 731 attr->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_attr() 736 attr->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_attr()
|
D | rxe_loc.h | 170 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()
|
D | rxe_verbs.h | 81 int max_sge; member 89 int max_sge; member
|
D | rxe_verbs.c | 225 if (unlikely(num_sge > rq->max_sge)) { in post_one_recv() 338 attr->max_sge = srq->rq.max_sge; in rxe_query_srq() 477 if (unlikely(num_sge > sq->max_sge)) in validate_send_wr()
|
/drivers/infiniband/sw/rdmavt/ |
D | srq.c | 87 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()
|
/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()
|
/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() 2912 wq_init_attr.max_sge = cmd.max_sge; in ib_uverbs_ex_create_wq() 2945 resp.max_sge = wq_init_attr.max_sge; in ib_uverbs_ex_create_wq() 3405 attr.attr.max_sge = cmd->max_sge; in __uverbs_create_xsrq() 3438 resp.max_sge = attr.attr.max_sge; in __uverbs_create_xsrq() 3475 xcmd.max_sge = cmd.max_sge; in ib_uverbs_create_srq() 3547 resp.max_sge = attr.max_sge; in ib_uverbs_query_srq() 3630 resp.tm_caps.max_sge = attr.tm_caps.max_sge; in ib_uverbs_ex_query_device() 3965 max_sge,
|
D | rw.c | 198 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()
|
/drivers/infiniband/sw/siw/ |
D | siw_verbs.c | 147 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 …]
|
D | siw_verbs.h | 71 u32 max_sge);
|
D | siw.h | 54 int max_sge; member 247 u32 max_sge; member
|
/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 883 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 …]
|
D | qplib_fp.h | 95 u32 max_sge; member 254 u16 max_sge; member
|
D | qplib_fp.c | 865 cpu_to_le16((sq->max_sge & CMDQ_CREATE_QP1_SQ_SGE_MASK) << in bnxt_qplib_create_qp1() 890 cpu_to_le16((rq->max_sge & in bnxt_qplib_create_qp1() 1019 cpu_to_le16(((sq->max_sge & CMDQ_CREATE_QP_SQ_SGE_MASK) << in bnxt_qplib_create_qp() 1047 6 : rq->max_sge; in bnxt_qplib_create_qp() 1329 req.sq_sge = cpu_to_le16(qp->sq.max_sge); in bnxt_qplib_modify_qp() 1330 req.rq_sge = cpu_to_le16(qp->rq.max_sge); in bnxt_qplib_modify_qp() 1417 qp->sq.max_sge = le16_to_cpu(sb->sq_sge); in bnxt_qplib_query_qp() 1418 qp->rq.max_sge = le16_to_cpu(sb->rq_sge); in bnxt_qplib_query_qp()
|
/drivers/infiniband/hw/mlx4/ |
D | srq.c | 91 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()
|
/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()
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_srq.c | 297 init_attr->attr.max_sge > hr_dev->caps.max_srq_sges) in hns_roce_create_srq() 304 srq->max_gs = init_attr->attr.max_sge; in hns_roce_create_srq()
|
/drivers/infiniband/hw/qedr/ |
D | verbs.c | 106 srq_attr->max_sge = qattr->max_sge; in qedr_query_srq() 141 attr->max_send_sge = qattr->max_sge; in qedr_query_device() 142 attr->max_recv_sge = qattr->max_sge; in qedr_query_device() 143 attr->max_sge_rd = qattr->max_sge; in qedr_query_device() 1226 if (attrs->cap.max_send_sge > qattr->max_sge) { in qedr_check_qp_attrs() 1229 attrs->cap.max_send_sge, qattr->max_sge); in qedr_check_qp_attrs() 1233 if (attrs->cap.max_recv_sge > qattr->max_sge) { in qedr_check_qp_attrs() 1236 attrs->cap.max_recv_sge, qattr->max_sge); in qedr_check_qp_attrs() 1423 if (attrs->attr.max_sge > qattr->max_sge) { in qedr_check_srq_params() 1426 attrs->attr.max_sge, qattr->max_sge); in qedr_check_srq_params() [all …]
|
/drivers/scsi/csiostor/ |
D | csio_scsi.h | 149 uint8_t max_sge; /* Max SGE */ member
|
/drivers/infiniband/hw/mlx5/ |
D | srq.c | 240 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq() 385 srq_attr->max_sge = srq->msrq.max_gs; in mlx5_ib_query_srq()
|
/drivers/infiniband/ulp/rtrs/ |
D | rtrs.c | 236 u32 max_send_wr, u32 max_recv_wr, u32 max_sge) in create_qp() argument 247 init_attr.cap.max_send_sge = max_sge; in create_qp()
|