Home
last modified time | relevance | path

Searched refs:max_elements (Results 1 – 8 of 8) sorted by relevance

/freebsd-14.2/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.h179 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1))
180 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \
183 & (hwq->max_elements - 1)))
261 u32 max_elements; member
525 static inline void bnxt_qplib_hwq_incr_cons(u32 max_elements, u32 *cons, in bnxt_qplib_hwq_incr_cons() argument
530 if (*cons >= max_elements) { in bnxt_qplib_hwq_incr_cons()
531 *cons %= max_elements; in bnxt_qplib_hwq_incr_cons()
H A Dqplib_fp.c579 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq_mem()
581 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq_mem()
592 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq_mem()
600 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq_mem()
1186 xrrq->max_elements = in bnxt_qplib_create_qp()
1188 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1196 hwq_attr.depth = xrrq->max_elements; in bnxt_qplib_create_qp()
1209 req_size = xrrq->max_elements * in bnxt_qplib_create_qp()
1213 hwq_attr.depth = xrrq->max_elements; in bnxt_qplib_create_qp()
1664 if (qp->irrq.max_elements) in bnxt_qplib_free_qp_res()
[all …]
H A Dqplib_rcfw.c871 bnxt_qplib_hwq_incr_cons(creq_hwq->max_elements, &creq_hwq->cons, in bnxt_qplib_service_creq()
959 req.number_of_qp = cpu_to_le32(hwq->max_elements); in bnxt_qplib_init_rcfw()
966 req.number_of_mrw = cpu_to_le32(hwq->max_elements); in bnxt_qplib_init_rcfw()
973 req.number_of_srq = cpu_to_le32(hwq->max_elements); in bnxt_qplib_init_rcfw()
980 req.number_of_cq = cpu_to_le32(hwq->max_elements); in bnxt_qplib_init_rcfw()
1073 rcfw->crsqe_tbl = kcalloc(cmdq->hwq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
H A Dqplib_res.c201 if (!hwq->max_elements) in bnxt_qplib_free_hwq()
214 hwq->max_elements = 0; in bnxt_qplib_free_hwq()
387 hwq->max_elements = depth; in bnxt_qplib_alloc_init_hwq()
478 if (!qtbl_hwq->max_elements) in bnxt_qplib_map_tqm_pgtbl()
H A Dqplib_sp.c561 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
621 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
650 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
711 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
H A Dmain.c3140 nq->hwq.max_elements = depth; in bnxt_re_setup_nqs()
3153 rattr.depth = nq->hwq.max_elements - 1; in bnxt_re_setup_nqs()
/freebsd-14.2/sys/dev/isci/scil/
H A Dsci_abstract_list.c134 pool->max_elements = element_count; in sci_abstract_element_pool_construct()
H A Dsci_abstract_list.h179 U32 max_elements; member