/openbmc/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_srq.c | 15 if (attr->max_wr > rxe->attr.max_srq_wr) { in rxe_srq_chk_init() 17 attr->max_wr, rxe->attr.max_srq_wr); in rxe_srq_chk_init() 21 if (attr->max_wr <= 0) { in rxe_srq_chk_init() 22 rxe_dbg_dev(rxe, "max_wr(%d) <= 0\n", attr->max_wr); in rxe_srq_chk_init() 26 if (attr->max_wr < RXE_MIN_SRQ_WR) in rxe_srq_chk_init() 27 attr->max_wr = RXE_MIN_SRQ_WR; in rxe_srq_chk_init() 56 srq->rq.max_wr = init->attr.max_wr; in rxe_srq_from_init() 65 q = rxe_queue_init(rxe, &srq->rq.max_wr, wqe_size, in rxe_srq_from_init() 81 init->attr.max_wr = srq->rq.max_wr; in rxe_srq_from_init() 109 if (attr->max_wr > rxe->attr.max_srq_wr) { in rxe_srq_chk_attr() [all …]
|
H A D | rxe_qp.c | 194 qp->sq.max_wr = init->cap.max_send_wr; in rxe_init_sq() 201 qp->sq.queue = rxe_queue_init(rxe, &qp->sq.max_wr, wqe_size, in rxe_init_sq() 221 init->cap.max_send_wr = qp->sq.max_wr; in rxe_init_sq() 287 qp->rq.max_wr = init->cap.max_recv_wr; in rxe_init_rq() 292 qp->rq.queue = rxe_queue_init(rxe, &qp->rq.max_wr, wqe_size, in rxe_init_rq() 312 init->cap.max_recv_wr = qp->rq.max_wr; in rxe_init_rq() 422 init->cap.max_send_wr = qp->sq.max_wr; in rxe_qp_to_init() 427 init->cap.max_recv_wr = qp->rq.max_wr; in rxe_qp_to_init() 768 attr->cap.max_send_wr = qp->sq.max_wr; in rxe_qp_to_attr() 773 attr->cap.max_recv_wr = qp->rq.max_wr; in rxe_qp_to_attr()
|
H A D | rxe_verbs.h | 79 int max_wr; member 87 int max_wr; member
|
H A D | rxe_verbs.c | 478 attr->max_wr = srq->rq.queue->buf->index_mask; in rxe_query_srq()
|
/openbmc/linux/drivers/infiniband/sw/rdmavt/ |
H A D | srq.c | 47 srq_init_attr->attr.max_wr == 0 || in rvt_create_srq() 48 srq_init_attr->attr.max_wr > dev->dparms.props.max_srq_wr) in rvt_create_srq() 54 srq->rq.size = srq_init_attr->attr.max_wr + 1; in rvt_create_srq() 140 if ((attr->max_wr > dev->dparms.props.max_srq_wr) || in rvt_modify_srq() 142 attr->srq_limit : srq->limit) > attr->max_wr) in rvt_modify_srq() 146 size = attr->max_wr + 1; in rvt_modify_srq() 283 attr->max_wr = srq->rq.size - 1; in rvt_query_srq()
|
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_srq.c | 85 srq_attr->max_wr = resp->attrs.max_wr; in pvrdma_query_srq() 127 if (init_attr->attr.max_wr > dev->dsr->caps.max_srq_wr || in pvrdma_create_srq() 178 cmd->attrs.max_wr = init_attr->attr.max_wr; in pvrdma_create_srq()
|
H A D | pvrdma_verbs.h | 293 u32 max_wr; member
|
/openbmc/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_srq.c | 298 if (attr->max_wr > hr_dev->caps.max_srq_wrs || in set_srq_basic_param() 302 attr->max_wr, attr->max_sge); in set_srq_basic_param() 306 attr->max_wr = max_t(u32, attr->max_wr, HNS_ROCE_MIN_SRQ_WQE_NUM); in set_srq_basic_param() 307 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr); in set_srq_basic_param() 310 attr->max_wr = srq->wqe_cnt; in set_srq_basic_param()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_wq.c | 52 ret = uverbs_copy_from(&wq_init_attr.max_wr, attrs, in UVERBS_HANDLER() 93 &wq_init_attr.max_wr, in UVERBS_HANDLER() 94 sizeof(wq_init_attr.max_wr)); in UVERBS_HANDLER()
|
H A D | uverbs_std_types_srq.c | 53 ret = uverbs_copy_from(&attr.attr.max_wr, attrs, in UVERBS_HANDLER() 117 &attr.attr.max_wr, in UVERBS_HANDLER() 118 sizeof(attr.attr.max_wr)); in UVERBS_HANDLER()
|
H A D | uverbs_cmd.c | 2918 wq_init_attr.max_wr = cmd.max_wr; in ib_uverbs_ex_create_wq() 2951 resp.max_wr = wq_init_attr.max_wr; in ib_uverbs_ex_create_wq() 3414 attr.attr.max_wr = cmd->max_wr; in __uverbs_create_xsrq() 3447 resp.max_wr = attr.attr.max_wr; in __uverbs_create_xsrq() 3484 xcmd.max_wr = cmd.max_wr; in ib_uverbs_create_srq() 3518 attr.max_wr = cmd.max_wr; in ib_uverbs_modify_srq() 3556 resp.max_wr = attr.max_wr; in ib_uverbs_query_srq()
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | srq.c | 94 if (init_attr->attr.max_wr >= dev->dev->caps.max_srq_wqes || in mlx4_ib_create_srq() 100 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx4_ib_create_srq() 199 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx4_ib_create_srq() 262 srq_attr->max_wr = srq->msrq.max - 1; in mlx4_ib_query_srq()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | srq.c | 211 if (init_attr->attr.max_wr >= max_srq_wqes || in mlx5_ib_create_srq() 214 init_attr->attr.max_wr, max_srq_wqes, in mlx5_ib_create_srq() 225 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq() 312 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx5_ib_create_srq() 370 srq_attr->max_wr = srq->msrq.max - 1; in mlx5_ib_query_srq()
|
/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 215 if (attr->max_wr > dev->limits.max_srq_wqes || in mthca_alloc_srq() 219 srq->max = attr->max_wr; in mthca_alloc_srq() 297 attr->max_wr = srq->max - 1; in mthca_alloc_srq() 384 u32 max_wr = mthca_is_memfree(dev) ? srq->max - 1 : srq->max; in mthca_modify_srq() local 385 if (attr->srq_limit > max_wr) in mthca_modify_srq() 421 srq_attr->max_wr = srq->max - 1; in mthca_query_srq()
|
/openbmc/linux/include/uapi/rdma/ |
H A D | ib_user_verbs.h | 1177 __u32 max_wr; member 1188 __u32 max_wr; member 1199 __u32 max_wr; member 1208 __u32 max_wr; member 1221 __u32 max_wr; member 1243 __u32 max_wr; member 1253 __u32 max_wr; member
|
/openbmc/linux/drivers/infiniband/hw/qedr/ |
H A D | qedr.h | 329 u16 max_wr; member 347 u32 max_wr; member 521 info->cons = (info->cons + 1) % info->max_wr; in qedr_inc_sw_cons() 527 info->prod = (info->prod + 1) % info->max_wr; in qedr_inc_sw_prod()
|
H A D | qedr_roce_cm.c | 55 info->gsi_cons = (info->gsi_cons + 1) % info->max_wr; in qedr_inc_sw_gsi_cons() 339 qp->rq.max_wr = attrs->cap.max_recv_wr; in qedr_create_gsi_qp() 340 qp->sq.max_wr = attrs->cap.max_send_wr; in qedr_create_gsi_qp() 342 qp->rqe_wr_id = kcalloc(qp->rq.max_wr, sizeof(*qp->rqe_wr_id), in qedr_create_gsi_qp() 346 qp->wqe_wr_id = kcalloc(qp->sq.max_wr, sizeof(*qp->wqe_wr_id), in qedr_create_gsi_qp()
|
H A D | verbs.c | 105 srq_attr->max_wr = qattr->max_srq_wr; in qedr_query_srq() 1426 if (attrs->attr.max_wr > qattr->max_srq_wr) { in qedr_check_srq_params() 1429 attrs->attr.max_wr, qattr->max_srq_wr); in qedr_check_srq_params() 1524 num_elems = init_attr->attr.max_wr * RDMA_MAX_SRQ_WQE_SIZE; in qedr_alloc_srq_kernel_params() 1573 hw_srq->max_wr = init_attr->attr.max_wr; in qedr_create_srq() 1691 if (attr->srq_limit >= srq->hw_srq.max_wr) { in qedr_modify_srq() 1694 attr->srq_limit, srq->hw_srq.max_wr); in qedr_modify_srq() 1944 qp->sq.max_wr = attrs->cap.max_send_wr; in qedr_create_user_qp() 1955 qp->rq.max_wr = attrs->cap.max_recv_wr; in qedr_create_user_qp() 2186 qp->sq.max_wr = min_t(u32, attrs->cap.max_send_wr * dev->wq_multiplier, in qedr_create_kernel_qp() [all …]
|
/openbmc/linux/drivers/infiniband/hw/mana/ |
H A D | wq.c | 45 wq->wqe = init_attr->max_wr; in mana_ib_create_wq()
|
/openbmc/linux/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.c | 1610 if (attrs->max_wr == 0 || attrs->max_wr > SIW_MAX_SRQ_WR || in siw_create_srq() 1611 attrs->max_sge > SIW_MAX_SGE || attrs->srq_limit > attrs->max_wr) { in siw_create_srq() 1616 srq->num_rqe = roundup_pow_of_two(attrs->max_wr); in siw_create_srq() 1725 attrs->max_wr = srq->num_rqe; in siw_query_srq()
|
/openbmc/linux/drivers/infiniband/hw/cxgb4/ |
H A D | qp.c | 2686 if (attrs->attr.max_wr > rhp->rdev.hw_queue.t4_max_rq_size) in c4iw_create_srq() 2694 rqsize = attrs->attr.max_wr + 1; in c4iw_create_srq() 2731 attrs->attr.max_wr = rqsize - 1; in c4iw_create_srq() 2775 (unsigned long)srq->wq.memsize, attrs->attr.max_wr); in c4iw_create_srq()
|
/openbmc/linux/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_hw.c | 2757 max_rqe_allocated = srq_attr->attr.max_wr + 1; in ocrdma_mbx_create_srq() 2763 srq_attr->attr.max_wr); in ocrdma_mbx_create_srq() 2849 srq_attr->max_wr = in ocrdma_mbx_query_srq()
|
/openbmc/linux/include/rdma/ |
H A D | ib_verbs.h | 1063 u32 max_wr; member 1701 u32 max_wr; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | ib_verbs.c | 1746 if (srq_init_attr->attr.max_wr >= dev_attr->max_srq_wqes) { in bnxt_re_create_srq() 1764 entries = bnxt_re_init_depth(srq_init_attr->attr.max_wr + 1, uctx); in bnxt_re_create_srq() 1866 srq_attr->max_wr = srq->qplib_srq.max_wqe; in bnxt_re_query_srq()
|
/openbmc/linux/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_cm.c | 1558 .max_wr = ipoib_recvq_size, in ipoib_cm_create_srq()
|