Searched refs:max_elements (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/drivers/infiniband/hw/bnxt_re/ |
D | qplib_fp.c | 280 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in clean_nq() 391 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bnxt_qplib_service_nq() 412 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq() 584 if (nq->hwq.max_elements) { in bnxt_qplib_free_nq() 586 nq->hwq.max_elements = 0; in bnxt_qplib_free_nq() 597 if (!nq->hwq.max_elements || in bnxt_qplib_alloc_nq() 598 nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) in bnxt_qplib_alloc_nq() 599 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_qplib_alloc_nq() 605 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq() 662 srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), in bnxt_qplib_create_srq() [all …]
|
D | qplib_res.h | 96 #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) 98 #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ 101 & (hwq->max_elements - 1))) 182 u32 max_elements; member 448 static inline void bnxt_qplib_hwq_incr_cons(u32 max_elements, u32 *cons, u32 cnt, in bnxt_qplib_hwq_incr_cons() argument 453 if (*cons >= max_elements) { in bnxt_qplib_hwq_incr_cons() 454 *cons %= max_elements; in bnxt_qplib_hwq_incr_cons()
|
D | qplib_rcfw.c | 777 bnxt_qplib_hwq_incr_cons(hwq->max_elements, &hwq->cons, in bnxt_qplib_service_creq() 894 req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); in bnxt_qplib_init_rcfw() 895 req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); in bnxt_qplib_init_rcfw() 896 req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); in bnxt_qplib_init_rcfw() 897 req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); in bnxt_qplib_init_rcfw() 969 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() 335 hwq->max_elements = hwq->depth; in bnxt_qplib_alloc_init_hwq() 423 if (!tbl->max_elements) in bnxt_qplib_map_tqm_pgtbl() 537 ctx->tim_tbl.max_elements = ctx->qpc_count * 16; in bnxt_qplib_alloc_ctx()
|
D | qplib_sp.c | 534 if (mrw->hwq.max_elements) in bnxt_qplib_free_mrw() 599 if (mrw->hwq.max_elements) { in bnxt_qplib_dereg_mrw() 627 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr() 690 if (mr->hwq.max_elements) in bnxt_qplib_reg_mr()
|
D | main.c | 1369 nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; in bnxt_re_alloc_res()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 2179 size_t max_elements) in read_stat_data() argument 2181 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data() 2186 TEST_ASSERT(max_elements, "Zero elements requested for stat '%s'", desc->name); in read_stat_data() 2212 size_t max_elements) in __vm_get_stat() argument 2234 data, max_elements); in __vm_get_stat()
|
/linux-6.12.1/drivers/s390/net/ |
D | qeth_core_main.c | 1398 for (i = 0; i < queue->max_elements; ++i) { in qeth_clear_output_buffer() 1405 qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); in qeth_clear_output_buffer() 1442 i < aob->sb_count && i < queue->max_elements; in qeth_tx_complete_pending_bufs() 3022 queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); in qeth_init_qdio_queues() 3957 const unsigned int max_elements = queue->max_elements; in qeth_add_hw_header() local 3986 if (__elements > max_elements) { in qeth_add_hw_header() 3990 max_elements, __elements, skb->len); in qeth_add_hw_header() 4164 (buffer->next_element_to_fill + elements > queue->max_elements)) { in __qeth_xmit() 4202 if (flush || next_element >= queue->max_elements) { in __qeth_xmit() 4249 queue->max_elements) { in qeth_do_send_packet() [all …]
|
D | qeth_core.h | 499 u8 max_elements; member
|
/linux-6.12.1/tools/testing/selftests/kvm/include/ |
D | kvm_util.h | 532 size_t max_elements); 535 size_t max_elements);
|