Home
last modified time | relevance | path

Searched refs:wqe_mode (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.h280 u8 wqe_mode; member
591 static inline u32 bnxt_qplib_get_depth(struct bnxt_qplib_q *que, u8 wqe_mode, bool is_sq) in bnxt_qplib_get_depth() argument
598 if (wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE && is_sq) in bnxt_qplib_get_depth()
603 static inline u32 bnxt_qplib_set_sq_size(struct bnxt_qplib_q *que, u8 wqe_mode) in bnxt_qplib_set_sq_size() argument
605 return (wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) ? in bnxt_qplib_set_sq_size()
606 que->max_wqe : bnxt_qplib_get_depth(que, wqe_mode, true); in bnxt_qplib_set_sq_size()
609 static inline u32 bnxt_qplib_set_sq_max_slot(u8 wqe_mode) in bnxt_qplib_set_sq_max_slot() argument
611 return (wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) ? in bnxt_qplib_set_sq_max_slot()
656 return (qp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE); in __is_var_wqe()
Dqplib_fp.c870 hwq_attr.depth = bnxt_qplib_get_depth(sq, qp->wqe_mode, false); in bnxt_qplib_create_qp1()
880 req.sq_size = cpu_to_le32(bnxt_qplib_set_sq_size(sq, qp->wqe_mode)); in bnxt_qplib_create_qp1()
898 hwq_attr.depth = bnxt_qplib_get_depth(rq, qp->wqe_mode, false); in bnxt_qplib_create_qp1()
940 sq->dbinfo.max_slot = bnxt_qplib_set_sq_max_slot(qp->wqe_mode); in bnxt_qplib_create_qp1()
1030 hwq_attr.depth = bnxt_qplib_get_depth(sq, qp->wqe_mode, true); in bnxt_qplib_create_qp()
1032 hwq_attr.aux_depth = psn_sz ? bnxt_qplib_set_sq_size(sq, qp->wqe_mode) in bnxt_qplib_create_qp()
1036 hwq_attr.aux_depth = roundup_pow_of_two(bnxt_qplib_set_sq_size(sq, qp->wqe_mode)); in bnxt_qplib_create_qp()
1053 req.sq_size = cpu_to_le32(bnxt_qplib_set_sq_size(sq, qp->wqe_mode)); in bnxt_qplib_create_qp()
1071 hwq_attr.depth = bnxt_qplib_get_depth(rq, qp->wqe_mode, false); in bnxt_qplib_create_qp()
1089 nsge = (qp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) ? in bnxt_qplib_create_qp()
[all …]
Dib_verbs.h193 return rdev->chip_ctx->modes.wqe_mode; in bnxt_re_is_var_size_supported()
Dqplib_res.h55 u8 wqe_mode; member
Dib_verbs.c974 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_setup_rwqe_size()
1012 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) { in bnxt_re_setup_swqe_size()
1050 psn_nume = (qplib_qp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) ? in bnxt_re_init_user_qp()
1291 if (uctx && qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) { in bnxt_re_init_sq_attr()
1306 diff = (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) ? in bnxt_re_init_sq_attr()
1310 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) in bnxt_re_init_sq_attr()
1311 sq->max_sw_wqe = bnxt_qplib_get_depth(sq, qplqp->wqe_mode, true); in bnxt_re_init_sq_attr()
1403 qplqp->wqe_mode = bnxt_re_is_var_size_supported(rdev, uctx); in bnxt_re_init_qp_attr()
4277 resp.mode = rdev->chip_ctx->modes.wqe_mode; in bnxt_re_alloc_ucontext()
Dqplib_sp.c139 attr->max_qp_sges = cctx->modes.wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE ? in bnxt_qplib_get_dev_attr()
Dmain.c138 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p7(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()