/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 | 216 qp->sq.max_sge = init->cap.max_send_sge = in rxe_qp_init_req() 268 qp->rq.max_sge = init->cap.max_recv_sge; in rxe_qp_init_resp() 270 wqe_size = rcv_wqe_size(qp->rq.max_sge); in rxe_qp_init_resp() 273 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp() 373 init->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_init() 378 init->cap.max_recv_sge = qp->rq.max_sge; in rxe_qp_to_init() 736 attr->cap.max_send_sge = qp->sq.max_sge; in rxe_qp_to_attr() 741 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 | 82 int max_sge; member 90 int max_sge; member
|
D | rxe_verbs.c | 251 if (unlikely(num_sge > rq->max_sge)) in post_one_recv() 349 attr->max_sge = srq->rq.max_sge; in rxe_query_srq() 489 if (unlikely(num_sge > sq->max_sge)) in validate_send_wr()
|
/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 | 423 u32 max_sge = dev->caps.max_rq_sg; in proc_rq_sge() local 426 return max_sge; in proc_rq_sge() 435 max_sge = roundup_pow_of_two(max_sge + 1); in proc_rq_sge() 439 return max_sge; in proc_rq_sge() 445 u32 max_sge = proc_rq_sge(hr_dev, hr_qp, user); in set_rq_size() local 461 cap->max_recv_sge > max_sge) { in set_rq_size()
|
/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()
|
/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() 2917 wq_init_attr.max_sge = cmd.max_sge; in ib_uverbs_ex_create_wq() 2950 resp.max_sge = wq_init_attr.max_sge; in ib_uverbs_ex_create_wq() 3415 attr.attr.max_sge = cmd->max_sge; in __uverbs_create_xsrq() 3448 resp.max_sge = attr.attr.max_sge; in __uverbs_create_xsrq() 3485 xcmd.max_sge = cmd.max_sge; in ib_uverbs_create_srq() 3557 resp.max_sge = attr.max_sge; in ib_uverbs_query_srq() 3640 resp.tm_caps.max_sge = attr.tm_caps.max_sge; in ib_uverbs_ex_query_device() 3975 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()
|
/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() 1413 u32 max_sge) in siw_alloc_mr() argument 1430 if (max_sge > SIW_MAX_SGE_PBL) { in siw_alloc_mr() 1431 siw_dbg_pd(pd, "too many sge's: %d\n", max_sge); in siw_alloc_mr() 1435 pbl = siw_pbl_alloc(max_sge); in siw_alloc_mr() 1447 rv = siw_mr_add_mem(mr, pd, pbl, 0, max_sge * PAGE_SIZE, 0); in siw_alloc_mr() 1611 attrs->max_sge > SIW_MAX_SGE || attrs->srq_limit > attrs->max_wr) { in siw_create_srq() 1615 srq->max_sge = attrs->max_sge; in siw_create_srq() 1726 attrs->max_sge = srq->max_sge; in siw_query_srq() [all …]
|
D | siw_verbs.h | 70 u32 max_sge);
|
D | siw.h | 54 int max_sge; member 248 u32 max_sge; member
|
/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 900 sq->wqe_size = bnxt_re_get_wqe_size(ilsize, sq->max_sge); in bnxt_re_setup_swqe_size() 915 sq->max_sge = qplqp->max_inline_data / in bnxt_re_setup_swqe_size() 1062 qp->qplib_qp.sq.max_sge = 2; in bnxt_re_create_shadow_qp() 1073 qp->qplib_qp.rq.max_sge = qp1_qp->rq.max_sge; in bnxt_re_create_shadow_qp() 1122 rq->max_sge = init_attr->cap.max_recv_sge; in bnxt_re_init_rq_attr() 1123 if (rq->max_sge > dev_attr->max_qp_sges) in bnxt_re_init_rq_attr() 1124 rq->max_sge = dev_attr->max_qp_sges; in bnxt_re_init_rq_attr() 1125 init_attr->cap.max_recv_sge = rq->max_sge; in bnxt_re_init_rq_attr() 1126 rq->wqe_size = bnxt_re_setup_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr() 1152 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
|
/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()
|
/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/scsi/elx/efct/ |
D | efct_lio.h | 37 u32 max_sge; member
|
/drivers/infiniband/hw/qedr/ |
D | verbs.c | 106 srq_attr->max_sge = qattr->max_sge; in qedr_query_srq() 142 attr->max_send_sge = qattr->max_sge; in qedr_query_device() 143 attr->max_recv_sge = qattr->max_sge; in qedr_query_device() 144 attr->max_sge_rd = qattr->max_sge; in qedr_query_device() 1221 if (attrs->cap.max_send_sge > qattr->max_sge) { in qedr_check_qp_attrs() 1224 attrs->cap.max_send_sge, qattr->max_sge); in qedr_check_qp_attrs() 1228 if (attrs->cap.max_recv_sge > qattr->max_sge) { in qedr_check_qp_attrs() 1231 attrs->cap.max_recv_sge, qattr->max_sge); in qedr_check_qp_attrs() 1433 if (attrs->attr.max_sge > qattr->max_sge) { in qedr_check_srq_params() 1436 attrs->attr.max_sge, qattr->max_sge); in qedr_check_srq_params() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | srq.c | 219 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq() 364 srq_attr->max_sge = srq->msrq.max_gs; in mlx5_ib_query_srq()
|
/drivers/scsi/csiostor/ |
D | csio_scsi.h | 149 uint8_t max_sge; /* Max SGE */ member
|