/linux-6.1.9/drivers/infiniband/sw/rxe/ |
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 pr_warn("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() 57 srq->rq.max_wr = init->attr.max_wr; in rxe_srq_from_init() 66 q = rxe_queue_init(rxe, &srq->rq.max_wr, srq_wqe_size, type); in rxe_srq_from_init() 102 if (attr->max_wr > rxe->attr.max_srq_wr) { in rxe_srq_chk_attr() 104 attr->max_wr, rxe->attr.max_srq_wr); in rxe_srq_chk_attr() [all …]
|
D | rxe_qp.c | 208 qp->sq.max_wr = init->cap.max_send_wr; in rxe_qp_init_req() 219 qp->sq.queue = rxe_queue_init(rxe, &qp->sq.max_wr, in rxe_qp_init_req() 268 qp->rq.max_wr = init->cap.max_recv_wr; in rxe_qp_init_resp() 274 qp_num(qp), qp->rq.max_wr, qp->rq.max_sge, wqe_size); in rxe_qp_init_resp() 277 qp->rq.queue = rxe_queue_init(rxe, &qp->rq.max_wr, in rxe_qp_init_resp() 376 init->cap.max_send_wr = qp->sq.max_wr; in rxe_qp_to_init() 381 init->cap.max_recv_wr = qp->rq.max_wr; in rxe_qp_to_init() 739 attr->cap.max_send_wr = qp->sq.max_wr; in rxe_qp_to_attr() 744 attr->cap.max_recv_wr = qp->rq.max_wr; in rxe_qp_to_attr()
|
D | rxe_verbs.h | 81 int max_wr; member 89 int max_wr; member
|
D | rxe_verbs.c | 359 attr->max_wr = srq->rq.queue->buf->index_mask; in rxe_query_srq()
|
/linux-6.1.9/drivers/infiniband/sw/rdmavt/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
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()
|
D | pvrdma_verbs.h | 293 u32 max_wr; member
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
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()
|
/linux-6.1.9/drivers/infiniband/core/ |
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()
|
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()
|
D | uverbs_cmd.c | 2913 wq_init_attr.max_wr = cmd.max_wr; in ib_uverbs_ex_create_wq() 2946 resp.max_wr = wq_init_attr.max_wr; in ib_uverbs_ex_create_wq() 3409 attr.attr.max_wr = cmd->max_wr; in __uverbs_create_xsrq() 3442 resp.max_wr = attr.attr.max_wr; in __uverbs_create_xsrq() 3479 xcmd.max_wr = cmd.max_wr; in ib_uverbs_create_srq() 3513 attr.max_wr = cmd.max_wr; in ib_uverbs_modify_srq() 3551 resp.max_wr = attr.max_wr; in ib_uverbs_query_srq()
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | srq.c | 209 if (init_attr->attr.max_wr >= max_srq_wqes) { in mlx5_ib_create_srq() 211 init_attr->attr.max_wr, in mlx5_ib_create_srq() 218 srq->msrq.max = roundup_pow_of_two(init_attr->attr.max_wr + 1); in mlx5_ib_create_srq() 305 init_attr->attr.max_wr = srq->msrq.max - 1; in mlx5_ib_create_srq() 363 srq_attr->max_wr = srq->msrq.max - 1; in mlx5_ib_query_srq()
|
D | main.c | 2818 attr.attr.max_wr = 1; in mlx5_ib_dev_res_init() 2830 attr.attr.max_wr = 1; in mlx5_ib_dev_res_init()
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ |
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()
|
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()
|
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() 1935 qp->sq.max_wr = attrs->cap.max_send_wr; in qedr_create_user_qp() 1946 qp->rq.max_wr = attrs->cap.max_recv_wr; in qedr_create_user_qp() 2177 qp->sq.max_wr = min_t(u32, attrs->cap.max_send_wr * dev->wq_multiplier, in qedr_create_kernel_qp() [all …]
|
/linux-6.1.9/include/uapi/rdma/ |
D | ib_user_verbs.h | 1161 __u32 max_wr; member 1172 __u32 max_wr; member 1183 __u32 max_wr; member 1192 __u32 max_wr; member 1205 __u32 max_wr; member 1227 __u32 max_wr; member 1237 __u32 max_wr; member
|
/linux-6.1.9/drivers/infiniband/sw/siw/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/cxgb4/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/ocrdma/ |
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()
|
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 1622 if (srq_init_attr->attr.max_wr >= dev_attr->max_srq_wqes) { in bnxt_re_create_srq() 1639 entries = roundup_pow_of_two(srq_init_attr->attr.max_wr + 1); in bnxt_re_create_srq() 1740 srq_attr->max_wr = srq->qplib_srq.max_wqe; in bnxt_re_query_srq()
|
/linux-6.1.9/include/rdma/ |
D | ib_verbs.h | 1057 u32 max_wr; member 1691 u32 max_wr; member
|
/linux-6.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_cm.c | 1558 .max_wr = ipoib_recvq_size, in ipoib_cm_create_srq()
|