Searched refs:max_elements (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | qplib_fp.c | 181 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 …]
|
D | qplib_res.c | 140 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 …]
|
D | qplib_rcfw.c | 360 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 …]
|
D | qplib_res.h | 49 #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
|
D | qplib_sp.c | 580 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()
|
D | main.c | 867 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/ |
D | qeth_core_main.c | 3883 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()
|