Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c181 rq->hwq.max_elements * qp->rq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
185 sq->hwq.max_elements * qp->sq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
202 if (qp->sq_hdr_buf_size && sq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
204 sq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
215 if (qp->rq_hdr_buf_size && rq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
217 rq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
254 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq()
317 NQ_DB_REARM(nq->bar_reg_iomem, hwq->cons, hwq->max_elements); in bnxt_qplib_service_nq()
343 NQ_DB(nq->bar_reg_iomem, nq->hwq.cons, nq->hwq.max_elements); in bnxt_qplib_nq_stop_irq()
403 NQ_DB_REARM(nq->bar_reg_iomem, nq->hwq.cons, nq->hwq.max_elements); in bnxt_qplib_nq_start_irq()
[all …]
Dqplib_res.c140 if (!hwq->max_elements) in bnxt_qplib_free_hwq()
153 hwq->max_elements = 0; in bnxt_qplib_free_hwq()
278 *elements = hwq->max_elements = slots; in bnxt_qplib_alloc_init_hwq()
342 ctx->qpc_tbl.max_elements = ctx->qpc_count; in bnxt_qplib_alloc_ctx()
344 &ctx->qpc_tbl.max_elements, in bnxt_qplib_alloc_ctx()
351 ctx->mrw_tbl.max_elements = ctx->mrw_count; in bnxt_qplib_alloc_ctx()
353 &ctx->mrw_tbl.max_elements, in bnxt_qplib_alloc_ctx()
360 ctx->srqc_tbl.max_elements = ctx->srqc_count; in bnxt_qplib_alloc_ctx()
362 &ctx->srqc_tbl.max_elements, in bnxt_qplib_alloc_ctx()
369 ctx->cq_tbl.max_elements = ctx->cq_count; in bnxt_qplib_alloc_ctx()
[all …]
Dqplib_rcfw.c360 if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) in bnxt_qplib_service_creq()
396 creq->max_elements); in bnxt_qplib_service_creq()
513 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw()
514 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw()
515 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw()
516 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw()
548 rcfw->creq.max_elements = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
550 &rcfw->creq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
557 rcfw->cmdq.max_elements = BNXT_QPLIB_CMDQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
559 &rcfw->cmdq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
[all …]
Dqplib_res.h49 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1))
51 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \
54 & (hwq->max_elements - 1)))
98 u32 max_elements; member
Dqplib_sp.c580 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
639 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
676 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
679 mr->hwq.max_elements = pages; in bnxt_qplib_reg_mr()
682 &mr->hwq.max_elements, in bnxt_qplib_reg_mr()
730 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
750 frpl->hwq.max_elements = pages; in bnxt_qplib_alloc_fast_reg_page_list()
752 &frpl->hwq.max_elements, PAGE_SIZE, 0, in bnxt_qplib_alloc_fast_reg_page_list()
Dmain.c867 if (rdev->nq[0].hwq.max_elements) { in bnxt_re_cleanup_res()
948 rdev->nq[i].hwq.max_elements = BNXT_RE_MAX_CQ_COUNT + in bnxt_re_alloc_res()
/Linux-v4.19/drivers/s390/net/
Dqeth_core_main.c3883 const unsigned int max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_add_hw_header() local
3909 if (__elements > max_elements) { in qeth_add_hw_header()
3913 max_elements, __elements, skb->len); in qeth_add_hw_header()