Searched refs:max_elements (Results 1 – 8 of 8) sorted by relevance
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_fp.c | 250 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in clean_nq() 317 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq() 402 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq() 576 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq() 578 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq() 589 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq() 590 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq() 591 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq() 597 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq() 652 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq() [all …]
|
D | qplib_res.h | 66 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) 68 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ 71 & (hwq->max_elements - 1))) 151 u32 max_elements; member 389 key = info->hwq->cons & (info->hwq->max_elements - 1); in bnxt_qplib_ring_db32() 404 key |= (info->hwq->cons & (info->hwq->max_elements - 1)) & in bnxt_qplib_ring_db()
|
D | qplib_rcfw.c | 397 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq() 541 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw() 542 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw() 543 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw() 544 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw() 618 rcfw->crsqe_tbl = kcalloc(cmdq->hwq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
|
D | qplib_res.c | 161 if (!hwq->max_elements) in bnxt_qplib_free_hwq() 174 hwq->max_elements = 0; in bnxt_qplib_free_hwq() 345 hwq->max_elements = depth; in bnxt_qplib_alloc_init_hwq() 433 if (!tbl->max_elements) in bnxt_qplib_map_tqm_pgtbl() 547 ctx->tim_tbl.max_elements = ctx->qpc_count * 16; in bnxt_qplib_alloc_ctx()
|
D | qplib_sp.c | 595 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw() 654 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw() 681 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 733 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
|
D | main.c | 1035 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
|
/drivers/s390/net/ |
D | qeth_core_main.c | 1324 for (i = 0; i < queue->max_elements; ++i) { in qeth_clear_output_buffer() 1331 qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); in qeth_clear_output_buffer() 1368 i < aob->sb_count && i < queue->max_elements; in qeth_tx_complete_pending_bufs() 2952 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues() 3900 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local 3929 if (__elements > max_elements) { in qeth_add_hw_header() 3933 max_elements, __elements, skb->len); in qeth_add_hw_header() 4107 (buffer->next_element_to_fill + elements > queue->max_elements)) { in __qeth_xmit() 4145 if (flush || next_element >= queue->max_elements) { in __qeth_xmit() 4192 queue->max_elements) { in qeth_do_send_packet() [all …]
|
D | qeth_core.h | 499 u8 max_elements; member
|