Searched refs:max_elements (Results 1 – 10 of 10) sorted by relevance
/Linux-v6.6/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.h | 83 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) 85 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ 88 & (hwq->max_elements - 1))) 169 u32 max_elements; member 415 key = info->hwq->cons & (info->hwq->max_elements - 1); in bnxt_qplib_ring_db32() 430 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() 316 if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_nq() 397 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq() 568 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq() 570 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq() 581 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq() 582 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq() 583 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq() 589 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq() 646 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq() [all …]
|
D | qplib_rcfw.c | 747 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq() 897 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw() 898 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw() 899 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw() 900 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw() 970 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() 346 hwq->max_elements = depth; in bnxt_qplib_alloc_init_hwq() 434 if (!tbl->max_elements) in bnxt_qplib_map_tqm_pgtbl() 548 ctx->tim_tbl.max_elements = ctx->qpc_count * 16; in bnxt_qplib_alloc_ctx()
|
D | qplib_sp.c | 520 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw() 585 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw() 613 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 668 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
|
D | main.c | 1174 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 2103 size_t max_elements) in read_stat_data() argument 2105 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data() 2110 TEST_ASSERT(max_elements, "Zero elements requested for stat '%s'", desc->name); in read_stat_data() 2136 size_t max_elements) in __vm_get_stat() argument 2158 data, max_elements); in __vm_get_stat()
|
/Linux-v6.6/tools/testing/selftests/kvm/include/ |
D | kvm_util_base.h | 419 size_t max_elements); 422 size_t max_elements);
|
/Linux-v6.6/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() 2982 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues() 3930 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local 3959 if (__elements > max_elements) { in qeth_add_hw_header() 3963 max_elements, __elements, skb->len); in qeth_add_hw_header() 4137 (buffer->next_element_to_fill + elements > queue->max_elements)) { in __qeth_xmit() 4175 if (flush || next_element >= queue->max_elements) { in __qeth_xmit() 4222 queue->max_elements) { in qeth_do_send_packet() [all …]
|
D | qeth_core.h | 499 u8 max_elements; member
|