Searched refs:max_elements (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
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 382 key = info->hwq->cons & (info->hwq->max_elements - 1); in bnxt_qplib_ring_db32() 397 key |= (info->hwq->cons & (info->hwq->max_elements - 1)) & in bnxt_qplib_ring_db()
|
D | qplib_fp.c | 251 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in clean_nq() 318 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq() 547 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq() 549 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq() 560 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq() 561 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq() 562 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq() 568 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq() 623 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq() 636 req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); in bnxt_qplib_create_srq() [all …]
|
D | qplib_rcfw.c | 393 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq() 534 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw() 535 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw() 536 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw() 537 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw() 610 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() 354 hwq->max_elements = depth; in bnxt_qplib_alloc_init_hwq() 442 if (!tbl->max_elements) in bnxt_qplib_map_tqm_pgtbl() 556 ctx->tim_tbl.max_elements = ctx->qpc_count * 16; in bnxt_qplib_alloc_ctx()
|
D | qplib_sp.c | 499 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw() 558 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw() 585 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 638 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
|
D | main.c | 1032 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1964 size_t max_elements) in read_stat_data() argument 1966 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data() 1971 TEST_ASSERT(max_elements, "Zero elements requested for stat '%s'", desc->name); in read_stat_data() 1997 size_t max_elements) in __vm_get_stat() argument 2019 data, max_elements); in __vm_get_stat()
|
/linux-6.1.9/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 358 size_t max_elements); 361 size_t max_elements);
|
/linux-6.1.9/drivers/s390/net/ |
D | qeth_core_main.c | 1361 for (i = 0; i < queue->max_elements; ++i) { in qeth_clear_output_buffer() 1368 qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); in qeth_clear_output_buffer() 1405 i < aob->sb_count && i < queue->max_elements; in qeth_tx_complete_pending_bufs() 2980 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues() 3928 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local 3957 if (__elements > max_elements) { in qeth_add_hw_header() 3961 max_elements, __elements, skb->len); in qeth_add_hw_header() 4135 (buffer->next_element_to_fill + elements > queue->max_elements)) { in __qeth_xmit() 4173 if (flush || next_element >= queue->max_elements) { in __qeth_xmit() 4220 queue->max_elements) { in qeth_do_send_packet() [all …]
|
D | qeth_core.h | 499 u8 max_elements; member
|