Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c182 rq->hwq.max_elements * qp->rq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
186 sq->hwq.max_elements * qp->sq_hdr_buf_size, in bnxt_qplib_free_qp_hdr_buf()
203 if (qp->sq_hdr_buf_size && sq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
205 sq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
216 if (qp->rq_hdr_buf_size && rq->hwq.max_elements) { in bnxt_qplib_alloc_qp_hdr_buf()
218 rq->hwq.max_elements * in bnxt_qplib_alloc_qp_hdr_buf()
256 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq()
318 hwq->max_elements, nq->ring_id, in bnxt_qplib_service_nq()
347 nq->hwq.max_elements, nq->ring_id, gen_p5); in bnxt_qplib_nq_stop_irq()
410 nq->hwq.max_elements, nq->ring_id, gen_p5); 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()
286 *elements = hwq->max_elements = slots; in bnxt_qplib_alloc_init_hwq()
350 ctx->qpc_tbl.max_elements = ctx->qpc_count; in bnxt_qplib_alloc_ctx()
352 &ctx->qpc_tbl.max_elements, in bnxt_qplib_alloc_ctx()
359 ctx->mrw_tbl.max_elements = ctx->mrw_count; in bnxt_qplib_alloc_ctx()
361 &ctx->mrw_tbl.max_elements, in bnxt_qplib_alloc_ctx()
368 ctx->srqc_tbl.max_elements = ctx->srqc_count; in bnxt_qplib_alloc_ctx()
370 &ctx->srqc_tbl.max_elements, in bnxt_qplib_alloc_ctx()
377 ctx->cq_tbl.max_elements = ctx->cq_count; in bnxt_qplib_alloc_ctx()
[all …]
Dqplib_rcfw.c382 if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) in bnxt_qplib_service_creq()
418 raw_cons, creq->max_elements, in bnxt_qplib_service_creq()
538 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw()
539 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw()
540 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw()
541 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw()
576 rcfw->creq.max_elements = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
579 &rcfw->creq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
591 rcfw->cmdq.max_elements = rcfw->cmdq_depth; in bnxt_qplib_alloc_rcfw_channel()
594 &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_rcfw.h181 u32 max_elements, u32 xid, in bnxt_qplib_ring_creq_db_rearm() argument
184 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_creq_db_rearm()
194 u32 max_elements, u32 xid, in bnxt_qplib_ring_creq_db() argument
197 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_creq_db()
Dqplib_sp.c587 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
646 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
682 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
685 mr->hwq.max_elements = pages; in bnxt_qplib_reg_mr()
688 &mr->hwq.max_elements, in bnxt_qplib_reg_mr()
736 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
756 frpl->hwq.max_elements = pages; in bnxt_qplib_alloc_fast_reg_page_list()
758 &frpl->hwq.max_elements, PAGE_SIZE, 0, in bnxt_qplib_alloc_fast_reg_page_list()
Dqplib_fp.h450 u32 max_elements, u32 xid, in bnxt_qplib_ring_nq_db_rearm() argument
453 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_nq_db_rearm()
462 u32 max_elements, u32 xid, in bnxt_qplib_ring_nq_db() argument
465 u32 index = raw_cons & (max_elements - 1); in bnxt_qplib_ring_nq_db()
Dmain.c999 rdev->nq[i].hwq.max_elements = BNXT_RE_MAX_CQ_COUNT + in bnxt_re_alloc_res()
/Linux-v5.4/drivers/s390/net/
Dqeth_core_main.c1136 for (i = 0; i < queue->max_elements; ++i) { in qeth_clear_output_buffer()
1143 qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); in qeth_clear_output_buffer()
2671 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues()
3617 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local
3646 if (__elements > max_elements) { in qeth_add_hw_header()
3650 max_elements, __elements, skb->len); in qeth_add_hw_header()
3821 if ((buffer->next_element_to_fill + elements > queue->max_elements) || in __qeth_xmit()
3849 if (flush || next_element >= queue->max_elements) { in __qeth_xmit()
3896 queue->max_elements) { in qeth_do_send_packet()
3932 if (!queue->do_pack || stopped || next_element >= queue->max_elements) { in qeth_do_send_packet()
[all …]
Dqeth_core.h519 u8 max_elements; member
Dqeth_l2_main.c574 if (elements > queue->max_elements) { in qeth_l2_xmit_osn()