Home
last modified time | relevance | path

Searched refs:max_elements (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.h72 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1))
74 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \
77 & (hwq->max_elements - 1)))
157 u32 max_elements; member
394 key = info->hwq->cons & (info->hwq->max_elements - 1); in bnxt_qplib_ring_db32()
409 key |= (info->hwq->cons & (info->hwq->max_elements - 1)) & in bnxt_qplib_ring_db()
H A Dqplib_fp.c250 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()
558 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq()
560 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq()
571 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq()
572 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq()
573 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq()
579 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq()
634 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq()
647 req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); in bnxt_qplib_create_srq()
[all...]
H A Dqplib_rcfw.c393 if (!CREQ_CMP_VALID(creqe, raw_cons, hwq->max_elements)) in bnxt_qplib_service_creq()
537 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw()
538 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw()
539 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw()
540 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw()
614 rcfw->crsqe_tbl = kcalloc(cmdq->hwq.max_elements, in bnxt_qplib_alloc_rcfw_channel()
H A Dqplib_res.c161 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()
H A Dqplib_sp.c584 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw()
643 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw()
680 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
732 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
H A Dmain.c1047 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
/kernel/linux/linux-6.6/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c251 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, sizeo in bnxt_qplib_create_srq()
[all...]
H A Dqplib_res.h83 #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()
H A Dqplib_rcfw.c747 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()
H A Dqplib_res.c161 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()
H A Dqplib_sp.c520 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()
H A Dmain.c1174 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c2094 * max_elements - the maximum number of 8-byte values to read into data
2103 size_t max_elements) in read_stat_data()
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()
2128 * max_elements - the maximum number of 8-byte values to read into data
2136 size_t max_elements) in __vm_get_stat()
2158 data, max_elements); in __vm_get_stat()
2101 read_stat_data(int stats_fd, struct kvm_stats_header *header, struct kvm_stats_desc *desc, uint64_t *data, size_t max_elements) read_stat_data() argument
2135 __vm_get_stat(struct kvm_vm *vm, const char *stat_name, uint64_t *data, size_t max_elements) __vm_get_stat() argument
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/include/
H A Dkvm_util_base.h419 size_t max_elements);
422 size_t max_elements);
/kernel/linux/linux-6.6/drivers/s390/net/
H A Dqeth_core_main.c1361 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()
[all...]
H A Dqeth_core.h499 u8 max_elements; member
/kernel/linux/linux-5.10/drivers/s390/net/
H A Dqeth_core_main.c1438 for (i = 0; i < queue->max_elements; ++i) { in qeth_clear_output_buffer()
1446 qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); in qeth_clear_output_buffer()
3043 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues()
3994 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local
4023 if (__elements > max_elements) { in qeth_add_hw_header()
4027 max_elements, __elements, skb->len); in qeth_add_hw_header()
4201 (buffer->next_element_to_fill + elements > queue->max_elements)) { in __qeth_xmit()
4239 if (flush || next_element >= queue->max_elements) { in __qeth_xmit()
4285 queue->max_elements) { in qeth_do_send_packet()
[all...]
H A Dqeth_core.h508 u8 max_elements; member
H A Dqeth_l2_main.c524 if (elements > queue->max_elements) { in qeth_l2_xmit_osn()

Completed in 44 milliseconds