Home
last modified time | relevance | path

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

/src/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.c270 for (i = 0; i < nq_hwq->max_elements; i++) { in clean_nq()
294 bnxt_qplib_hwq_incr_cons(nq_hwq->max_elements, &peek_cons, in clean_nq()
418 bnxt_qplib_hwq_incr_cons(nq_hwq->max_elements, &nq_hwq->cons, in bnxt_qplib_service_nq()
573 dev_dbg(&pdev->dev, "QPLIB: NQ max = 0x%x\n", nq->hwq.max_elements); in bnxt_qplib_enable_nq()
583 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq_mem()
585 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq_mem()
596 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq_mem()
597 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq_mem()
598 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq_mem()
604 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq_mem()
[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.c563 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
623 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
652 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
713 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
H A Dmain.c3160 nq->hwq.max_elements = depth; in bnxt_re_setup_nqs()
3173 rattr.depth = nq->hwq.max_elements - 1; in bnxt_re_setup_nqs()
/src/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