Home
last modified time | relevance | path

Searched refs:num_desc (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.1.9/drivers/infiniband/hw/hfi1/
Diowait.h301 u16 num_desc = 0; in iowait_get_desc() local
307 num_desc = tx->num_desc; in iowait_get_desc()
311 return num_desc; in iowait_get_desc()
316 u32 num_desc = 0; in iowait_get_all_desc() local
318 num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); in iowait_get_all_desc()
319 num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); in iowait_get_all_desc()
320 return num_desc; in iowait_get_all_desc()
Dsdma.h515 tx->num_desc = 0; in sdma_txinit_ahg()
600 struct sdma_desc *desc = &tx->descp[tx->num_desc]; in make_tx_sdma_desc()
602 if (!tx->num_desc) { in make_tx_sdma_desc()
626 if (tx->num_desc) in sdma_txclean()
634 tx->descp[tx->num_desc].qw[0] |= in _sdma_close_tx()
636 tx->descp[tx->num_desc].qw[1] |= in _sdma_close_tx()
639 tx->descp[tx->num_desc].qw[1] |= in _sdma_close_tx()
669 tx->num_desc++; in _sdma_txadd_daddr()
699 if ((unlikely(tx->num_desc == tx->desc_limit))) { in sdma_txadd_page()
746 if ((unlikely(tx->num_desc == tx->desc_limit))) { in sdma_txadd_daddr()
[all …]
Dsdma_txreq.h76 u16 num_desc; member
91 return tx->num_desc; in sdma_txreq_built()
Dsdma.c1641 if (tx->num_desc) { in __sdma_txclean()
1649 for (i = 1 + skip; i < tx->num_desc; i++) in __sdma_txclean()
1651 tx->num_desc = 0; in __sdma_txclean()
1748 u32 num_desc; in sdma_desc_avail() local
1755 num_desc = iowait_get_all_desc(wait); in sdma_desc_avail()
1756 if (num_desc > avail) in sdma_desc_avail()
1758 avail -= num_desc; in sdma_desc_avail()
2283 for (i = 1; i < tx->num_desc; i++, descp++) { in submit_tx()
2307 sde->desc_avail -= tx->num_desc; in submit_tx()
2323 if (tx->num_desc <= sde->desc_avail) in sdma_check_progress()
[all …]
Dverbs_txreq.h53 tx->txreq.num_desc = 0; in get_txreq()
/linux-6.1.9/tools/testing/selftests/kvm/
Dkvm_binary_stats_test.c53 if (header.num_desc == 0) { in stats_test()
67 (header.desc_offset + size_desc * header.num_desc <= header.data_offset), in stats_test()
74 for (i = 0; i < header.num_desc; ++i) { in stats_test()
148 TEST_ASSERT(size_data >= header.num_desc * sizeof(*stats_data), in stats_test()
152 for (i = 0; i < header.num_desc; ++i) { in stats_test()
166 for (i = 0; i < header.num_desc; ++i) { in stats_test()
/linux-6.1.9/sound/soc/sof/
Dsof-client-probes.c188 size_t *num_desc) in sof_probes_points_info() argument
191 (void **)desc, num_desc); in sof_probes_points_info()
209 size_t num_desc) in sof_probes_points_add() argument
212 size_t size = struct_size(msg, desc, num_desc); in sof_probes_points_add()
220 msg->num_elems = num_desc; in sof_probes_points_add()
293 size_t num_desc; in sof_probes_compr_shutdown() local
297 ret = sof_probes_points_info(cdev, &desc, &num_desc); in sof_probes_compr_shutdown()
303 for (i = 0; i < num_desc; i++) in sof_probes_compr_shutdown()
423 size_t num_desc; in sof_probes_dfs_points_read() local
442 ret = sof_probes_points_info(cdev, &desc, &num_desc); in sof_probes_dfs_points_read()
[all …]
/linux-6.1.9/drivers/soc/ti/
Dknav_qmss_queue.c693 for (i = 0; i < pool->num_desc; i++) { in kdesc_fill_pool()
727 WARN_ON(i != pool->num_desc); in kdesc_empty_pool()
758 int num_desc, int region_id) in knav_pool_create() argument
806 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create()
820 if ((iter->region_offset - last_offset) >= num_desc) { in knav_pool_create()
824 last_offset = iter->region_offset + iter->num_desc; in knav_pool_create()
830 pool->num_desc = num_desc; in knav_pool_create()
832 region->used_desc += num_desc; in knav_pool_create()
872 pool->region->used_desc -= pool->num_desc; in knav_pool_destroy()
991 if (!region->num_desc) { in knav_queue_setup_region()
[all …]
Dknav_qmss.h199 unsigned num_desc; member
226 int num_desc; member
/linux-6.1.9/drivers/net/ethernet/ti/
Dk3-cppi-desc-pool.c23 size_t num_desc; member
58 pool->num_desc = size; in k3_cppi_desc_pool_create_name()
59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name()
Ddavinci_cpdma.c85 int num_desc; member
226 pool->num_desc = pool->mem_size / pool->desc_size; in cpdma_desc_pool_create()
234 pool->num_desc = cpdma_params->descs_pool_size; in cpdma_desc_pool_create()
235 pool->mem_size = pool->desc_size * pool->num_desc; in cpdma_desc_pool_create()
301 struct cpdma_desc __iomem *desc, int num_desc) in cpdma_desc_free() argument
527 ctlr->num_tx_desc = ctlr->pool->num_desc / 2; in cpdma_ctlr_create()
528 ctlr->num_rx_desc = ctlr->pool->num_desc - ctlr->num_tx_desc; in cpdma_ctlr_create()
1434 ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; in cpdma_set_num_rx_descs()
1438 ctlr->num_tx_desc = ctlr->pool->num_desc - ctlr->num_rx_desc; in cpdma_set_num_rx_descs()
/linux-6.1.9/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c101 for (i = 0; i < rds_ring->num_desc; ++i) { in netxen_release_rx_buffers()
122 for (i = 0; i < tx_ring->num_desc; i++) { in netxen_release_tx_buffers()
194 tx_ring->num_desc = adapter->num_txd; in netxen_alloc_sw_resources()
216 rds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
235 rds_ring->num_desc = adapter->num_jumbo_rxd; in netxen_alloc_sw_resources()
251 rds_ring->num_desc = adapter->num_lro_rxd; in netxen_alloc_sw_resources()
268 for (i = 0; i < rds_ring->num_desc; i++) { in netxen_alloc_sw_resources()
282 sds_ring->num_desc = adapter->num_rxd; in netxen_alloc_sw_resources()
1437 index = get_next_index(index, sds_ring->num_desc); in netxen_handle_fw_message()
1531 if (unlikely(index >= rds_ring->num_desc)) in netxen_process_rcv()
[all …]
Dnetxen_nic_ethtool.c420 u32 num_desc; in netxen_validate_ringparam() local
421 num_desc = max(val, min); in netxen_validate_ringparam()
422 num_desc = min(num_desc, max); in netxen_validate_ringparam()
423 num_desc = roundup_pow_of_two(num_desc); in netxen_validate_ringparam()
425 if (val != num_desc) { in netxen_validate_ringparam()
427 netxen_nic_driver_name, r_name, num_desc, val); in netxen_validate_ringparam()
430 return num_desc; in netxen_validate_ringparam()
Dnetxen_nic.h60 (sizeof(struct rcv_desc) * (rds_ring)->num_desc)
62 (sizeof(struct netxen_rx_buffer) * rds_ring->num_desc)
64 (sizeof(struct status_desc) * (sds_ring)->num_desc)
66 (sizeof(struct netxen_cmd_buffer) * tx_ring->num_desc)
68 (sizeof(struct cmd_desc_type0) * tx_ring->num_desc)
611 u32 num_desc; member
625 u32 num_desc; member
646 u32 num_desc; member
1859 tx_ring->sw_consumer, tx_ring->num_desc); in netxen_tx_avail()
Dnetxen_nic_ctx.c329 prq_rds[i].ring_size = cpu_to_le32(rds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
342 prq_sds[i].ring_size = cpu_to_le32(sds_ring->num_desc); in nx_fw_cmd_create_rx_ctx()
470 prq_cds->ring_size = cpu_to_le32(tx_ring->num_desc); in nx_fw_cmd_create_tx_ctx()
697 hwctx->cmd_ring_size = cpu_to_le32(tx_ring->num_desc); in netxen_init_old_ctx()
706 cpu_to_le32(rds_ring->num_desc); in netxen_init_old_ctx()
714 hwctx->sts_ring_size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
717 hwctx->sts_rings[ring].size = cpu_to_le32(sds_ring->num_desc); in netxen_init_old_ctx()
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c297 tx_ring->producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_82xx_change_filter()
413 producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_tx_encap_pkt()
536 producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_tx_pkt()
549 producer = get_next_index(producer, tx_ring->num_desc); in qlcnic_tx_pkt()
675 num_txd = tx_ring->num_desc; in qlcnic_xmit_frame()
876 producer = get_next_index(producer, rds_ring->num_desc); in qlcnic_post_rx_buffers_nodb()
880 writel((producer - 1) & (rds_ring->num_desc - 1), in qlcnic_post_rx_buffers_nodb()
921 sw_consumer = get_next_index(sw_consumer, tx_ring->num_desc); in qlcnic_process_cmd_ring()
1096 index = get_next_index(index, sds_ring->num_desc); in qlcnic_handle_fw_message()
1212 if (unlikely(index >= rds_ring->num_desc)) in qlcnic_process_rcv()
[all …]
Dqlcnic_init.c92 for (i = 0; i < rds_ring->num_desc; ++i) { in qlcnic_release_rx_buffers()
119 for (i = 0; i < rds_ring->num_desc; i++) { in qlcnic_reset_rx_buffers_list()
137 for (i = 0; i < tx_ring->num_desc; i++) { in qlcnic_release_tx_buffers()
203 rds_ring->num_desc = adapter->num_rxd; in qlcnic_alloc_sw_resources()
209 rds_ring->num_desc = adapter->num_jumbo_rxd; in qlcnic_alloc_sw_resources()
231 for (i = 0; i < rds_ring->num_desc; i++) { in qlcnic_alloc_sw_resources()
244 sds_ring->num_desc = adapter->num_rxd; in qlcnic_alloc_sw_resources()
Dqlcnic_ethtool.c653 u32 num_desc; in qlcnic_validate_ringparam() local
654 num_desc = max(val, min); in qlcnic_validate_ringparam()
655 num_desc = min(num_desc, max); in qlcnic_validate_ringparam()
656 num_desc = roundup_pow_of_two(num_desc); in qlcnic_validate_ringparam()
658 if (val != num_desc) { in qlcnic_validate_ringparam()
660 qlcnic_driver_name, r_name, num_desc, val); in qlcnic_validate_ringparam()
663 return num_desc; in qlcnic_validate_ringparam()
/linux-6.1.9/drivers/net/ethernet/toshiba/
Dspider_net.c288 dma_free_coherent(&card->pdev->dev, chain->num_desc * sizeof(struct spider_net_hw_descr), in spider_net_free_chain()
312 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain()
323 for (i=0; i < chain->num_desc; i++, descr++, hwdescr++) { in spider_net_init_chain()
729 if (cnt < card->tx_chain.num_desc/4) in spider_net_set_low_watermark()
1005 chain->num_desc); in show_rx_chain()
1035 int from = (chain->num_desc + off - cnt) % chain->num_desc; in show_rx_chain()
1036 int to = (chain->num_desc + off - 1) % chain->num_desc; in show_rx_chain()
1105 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_head_ptr()
1125 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_tail_ptr()
1133 if ((i == chain->num_desc) || (i == 0)) in spider_net_resync_tail_ptr()
[all …]
Dspider_net_ethtool.c120 ering->tx_pending = card->tx_chain.num_desc; in spider_net_ethtool_get_ringparam()
122 ering->rx_pending = card->rx_chain.num_desc; in spider_net_ethtool_get_ringparam()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.h248 entry->num_desc = txq->size; in cudbg_fill_qdesc_txq()
260 entry->num_desc = rxq->size; in cudbg_fill_qdesc_rxq()
272 entry->num_desc = flq->size; in cudbg_fill_qdesc_flq()
/linux-6.1.9/drivers/dma/qcom/
Dbam_dma.c65 u32 num_desc; member
683 async_desc->num_desc = num_alloc; in bam_prep_slave_sg()
871 async_desc->num_desc -= async_desc->xfer_len; in process_channel_irqs()
880 if (!async_desc->num_desc) { in process_channel_irqs()
971 for (i = 0; i < async_desc->num_desc; i++) in bam_tx_status()
1053 if (async_desc->num_desc > avail) in bam_start_dma()
1056 async_desc->xfer_len = async_desc->num_desc; in bam_start_dma()
1059 if (async_desc->num_desc == async_desc->xfer_len) in bam_start_dma()
/linux-6.1.9/include/linux/soc/ti/
Dknav_qmss.h71 int num_desc, int region_id);
/linux-6.1.9/arch/riscv/kvm/
Dvm.c23 .num_desc = ARRAY_SIZE(kvm_vm_stats_desc),
/linux-6.1.9/virt/kvm/
Dbinary_stats.c67 size_desc = header->num_desc * sizeof(*desc); in kvm_stats_read()

123