Home
last modified time | relevance | path

Searched refs:num_queues (Results 1 – 25 of 122) sorted by relevance

12345

/linux/drivers/net/xen-netback/
H A Dinterface.c183 unsigned int num_queues; in xenvif_select_queue() local
187 num_queues = READ_ONCE(vif->num_queues); in xenvif_select_queue()
188 if (num_queues < 1) in xenvif_select_queue()
209 unsigned int num_queues; in xenvif_start_xmit() local
219 num_queues = READ_ONCE(vif->num_queues); in xenvif_start_xmit()
220 if (num_queues < 1) in xenvif_start_xmit()
225 if (index >= num_queues) { in xenvif_start_xmit()
228 index %= num_queues; in xenvif_start_xmit()
275 unsigned int num_queues; in xenvif_get_stats() local
283 num_queues = READ_ONCE(vif->num_queues); in xenvif_get_stats()
[all …]
H A Dxenbus.c177 for (i = 0; i < vif->num_queues; ++i) { in xenvif_debugfs_addif()
255 unsigned int num_queues = vif->num_queues; in backend_disconnect() local
267 vif->num_queues = 0; in backend_disconnect()
270 for (queue_index = 0; queue_index < num_queues; ++queue_index) in backend_disconnect()
533 for (queue_index = 0; queue_index < vif->num_queues; queue_index++) { in xen_net_rate_changed()
772 be->vif->num_queues = requested_num_queues; in connect()
790 be->vif->num_queues = queue_index; in connect()
806 be->vif->num_queues = queue_index; in connect()
837 if (be->vif->num_queues > 0) in connect()
839 for (queue_index = 0; queue_index < be->vif->num_queues; ++queue_index) in connect()
[all …]
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_ethtool.c81 unsigned int num_queues = apc->num_queues; in mana_get_sset_count() local
86 return ARRAY_SIZE(mana_eth_stats) + num_queues * in mana_get_sset_count()
93 unsigned int num_queues = apc->num_queues; in mana_get_strings() local
102 for (i = 0; i < num_queues; i++) { in mana_get_strings()
110 for (i = 0; i < num_queues; i++) { in mana_get_strings()
129 unsigned int num_queues = apc->num_queues; in mana_get_ethtool_stats() local
157 for (q = 0; q < num_queues; q++) { in mana_get_ethtool_stats()
176 for (q = 0; q < num_queues; q++) { in mana_get_ethtool_stats()
215 cmd->data = apc->num_queues; in mana_get_rxnfc()
276 if (rxfh->indir[i] >= apc->num_queues) { in mana_set_rxfh()
[all …]
H A Dmana_bpf.c152 unsigned int num_queues = apc->num_queues; in mana_chn_setxdp() local
161 bpf_prog_add(prog, num_queues); in mana_chn_setxdp()
163 for (i = 0; i < num_queues; i++) in mana_chn_setxdp()
167 for (i = 0; i < num_queues; i++) in mana_chn_setxdp()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_main.c38 if (cptvf->num_queues) { in init_worker_threads()
40 cptvf->num_queues); in init_worker_threads()
43 for (i = 0; i < cptvf->num_queues; i++) { in init_worker_threads()
63 if (cptvf->num_queues) { in cleanup_worker_threads()
65 cptvf->num_queues); in cleanup_worker_threads()
68 for (i = 0; i < cptvf->num_queues; i++) in cleanup_worker_threads()
90 pqinfo->num_queues = 0; in free_pending_queues()
94 u32 num_queues) in alloc_pending_queues() argument
100 pqinfo->num_queues = num_queues; in alloc_pending_queues()
126 u32 num_queues) in init_pending_queues() argument
[all …]
H A Dotx_cptvf.h52 u32 num_queues; /* Number of queues supported */ member
57 for (i = 0, q = &qinfo->queue[i]; i < qinfo->num_queues; i++, \
87 u32 num_queues; member
/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-pko.c71 const int num_queues = 1; in __cvmx_pko_iport_config() local
76 for (queue = 0; queue < num_queues; queue++) { in __cvmx_pko_iport_config()
85 config.s.tail = (queue == (num_queues - 1)); in __cvmx_pko_iport_config()
101 num_queues, queue); in __cvmx_pko_iport_config()
327 uint64_t num_queues, in cvmx_pko_config_port() argument
347 if (base_queue + num_queues > CVMX_PKO_MAX_OUTPUT_QUEUES) { in cvmx_pko_config_port()
350 (unsigned long long)(base_queue + num_queues)); in cvmx_pko_config_port()
360 for (queue = 0; queue < num_queues; queue++) { in cvmx_pko_config_port()
374 && queue == num_queues - 1) in cvmx_pko_config_port()
417 cvmx_dprintf("num queues: %d (%lld,%lld)\n", num_queues, in cvmx_pko_config_port()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dinit.c108 int i, num_queues, size, ret; in iwl_configure_rxq() local
126 num_queues = fwrt->trans->num_rx_queues - 1; in iwl_configure_rxq()
128 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
134 cmd->num_queues = num_queues; in iwl_configure_rxq()
136 for (i = 0; i < num_queues; i++) { in iwl_configure_rxq()
/linux/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c105 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_get_strings()
139 (priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS) + in gve_get_sset_count()
177 rx_qid_to_stats_idx = kmalloc_array(priv->rx_cfg.num_queues, in gve_get_ethtool_stats()
181 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
202 ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
270 GVE_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues; in gve_get_ethtool_stats()
277 (priv->rx_cfg.num_queues - num_stopped_rxqs) + in gve_get_ethtool_stats()
291 if (queue_id < 0 || queue_id >= priv->rx_cfg.num_queues) { in gve_get_ethtool_stats()
299 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
354 i += priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS; in gve_get_ethtool_stats()
[all …]
H A Dgve_main.c117 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats()
249 priv->rx_cfg.num_queues; in gve_alloc_stats_report()
325 if (block->tx->q_num < priv->tx_cfg.num_queues) in gve_napi_poll()
451 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
452 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks()
453 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks()
454 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks()
863 err = gve_adminq_create_rx_queues(priv, priv->rx_cfg.num_queues); in gve_create_rings()
866 priv->rx_cfg.num_queues); in gve_create_rings()
873 priv->rx_cfg.num_queues); in gve_create_rings()
[all …]
/linux/drivers/net/wireless/silabs/wfx/
H A Dqueue.c234 int i, j, num_queues = 0; in wfx_tx_queues_get_skb() local
243 WARN_ON(num_queues >= ARRAY_SIZE(queues)); in wfx_tx_queues_get_skb()
244 queues[num_queues] = &wvif->tx_queue[i]; in wfx_tx_queues_get_skb()
245 for (j = num_queues; j > 0; j--) in wfx_tx_queues_get_skb()
249 num_queues++; in wfx_tx_queues_get_skb()
255 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
277 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
296 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
/linux/drivers/net/netdevsim/
H A Dbus.c138 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues);
143 unsigned int id, port_count, num_queues; in new_device_store() local
147 err = sscanf(buf, "%u %u %u", &id, &port_count, &num_queues); in new_device_store()
153 num_queues = 1; in new_device_store()
173 nsim_bus_dev = nsim_bus_dev_new(id, port_count, num_queues); in new_device_store()
420 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues) in nsim_bus_dev_new() argument
436 nsim_bus_dev->num_queues = num_queues; in nsim_bus_dev_new()
/linux/drivers/net/
H A Dxen-netfront.c363 unsigned int num_queues = dev->real_num_tx_queues; in xennet_open() local
370 for (i = 0; i < num_queues; ++i) { in xennet_open()
588 unsigned int num_queues = dev->real_num_tx_queues; in xennet_select_queue() local
593 if (num_queues == 1) { in xennet_select_queue()
597 queue_idx = hash % num_queues; in xennet_select_queue()
648 unsigned int num_queues = dev->real_num_tx_queues; in xennet_xdp_xmit() local
660 queue = &np->queues[smp_processor_id() % num_queues]; in xennet_xdp_xmit()
721 unsigned int num_queues = dev->real_num_tx_queues; in xennet_start_xmit() local
726 if (num_queues < 1) in xennet_start_xmit()
870 unsigned int num_queues = np->queues ? dev->real_num_tx_queues : 0; in xennet_close() local
[all …]
/linux/net/core/
H A Dieee8021q_helpers.c94 int ieee8021q_tt_to_tc(enum ieee8021q_traffic_type tt, unsigned int num_queues) in ieee8021q_tt_to_tc() argument
102 switch (num_queues) { in ieee8021q_tt_to_tc()
152 pr_err("Invalid number of queues %d\n", num_queues); in ieee8021q_tt_to_tc()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-debugfs.c125 int i, j, num_queues, buf_cnt; in dpaa2_dbg_bp_show() local
133 num_queues = dpaa2_eth_queue_count(priv); in dpaa2_dbg_bp_show()
134 for (i = 0; i < num_queues; i++) { in dpaa2_dbg_bp_show()
153 for (j = 0; j < num_queues; j++) { in dpaa2_dbg_bp_show()
/linux/include/net/
H A Dieee8021q.h41 int ieee8021q_tt_to_tc(enum ieee8021q_traffic_type tt, unsigned int num_queues);
51 unsigned int num_queues) in ieee8021q_tt_to_tc() argument
/linux/drivers/scsi/
H A Dvirtio_scsi.c83 u32 num_queues; member
209 num_vqs = vscsi->num_queues; in virtscsi_poll_requests()
848 num_req_vqs = vscsi->num_queues; in virtscsi_init()
912 u32 num_queues; in virtscsi_probe() local
921 num_queues = virtscsi_config_get(vdev, num_queues) ? : 1; in virtscsi_probe()
922 num_queues = min_t(unsigned int, nr_cpu_ids, num_queues); in virtscsi_probe()
927 struct_size(vscsi, req_vqs, num_queues)); in virtscsi_probe()
936 vscsi->num_queues = num_queues; in virtscsi_probe()
959 shost->nr_hw_queues = num_queues; in virtscsi_probe()
/linux/drivers/soc/ti/
H A Dknav_qmss_acc.c33 for (queue = 0; queue < range->num_queues; queue++) { in __knav_acc_notify()
150 queue >= range_base + range->num_queues) { in knav_acc_int_handler()
154 range_base + range->num_queues); in knav_acc_int_handler()
313 queue_mask = BIT(range->num_queues) - 1; in knav_acc_setup_cmd()
379 for (queue = 0; queue < range->num_queues; queue++) { in knav_acc_init_range()
439 channels = range->num_queues; in knav_acc_free_range()
523 channels = range->num_queues; in knav_init_acc_range()
533 if (range->num_queues > 32) { in knav_init_acc_range()
H A Dknav_qmss_queue.c209 kdev->base_id + kdev->num_queues > id) { in knav_queue_find_by_id()
474 kdev->base_id + kdev->num_queues - 1); in knav_queue_debug_show()
1229 range->num_queues = temp[1]; in knav_setup_queue_range()
1263 range->num_irqs = min(range->num_irqs, range->num_queues); in knav_setup_queue_range()
1283 end = min(qmgr->start_queue + qmgr->num_queues, in knav_setup_queue_range()
1284 range->queue_base + range->num_queues); in knav_setup_queue_range()
1297 range->queue_base + range->num_queues - 1, in knav_setup_queue_range()
1302 kdev->num_queues_in_use += range->num_queues; in knav_setup_queue_range()
1421 qmgr->num_queues = temp[1]; in knav_queue_init_qmgrs()
1429 qmgr->start_queue, qmgr->num_queues); in knav_queue_init_qmgrs()
[all …]
H A Dknav_qmss.h140 unsigned num_queues; member
297 unsigned num_queues; member
332 unsigned num_queues; member
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede.h184 #define QEDE_MAX_RSS_CNT(edev) ((edev)->dev_info.num_queues)
185 #define QEDE_MAX_TSS_CNT(edev) ((edev)->dev_info.num_queues)
198 u16 num_queues; member
201 #define QEDE_QUEUE_CNT(edev) ((edev)->num_queues)
202 #define QEDE_RSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_tx)
204 #define QEDE_TSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_rx)
605 #define for_each_queue(i) for (i = 0; i < edev->num_queues; i++)
/linux/drivers/gpu/drm/nouveau/include/nvfw/
H A Dsec2.h21 u8 num_queues; member
42 u8 num_queues; member
/linux/drivers/net/ethernet/cavium/liquidio/
H A Dcn23xx_vf_device.c50 static int cn23xx_vf_reset_io_queues(struct octeon_device *oct, u32 num_queues) in cn23xx_vf_reset_io_queues() argument
57 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
67 for (q_no = 0; q_no < num_queues; q_no++) { in cn23xx_vf_reset_io_queues()
359 u32 num_queues = oct->num_iqs; in cn23xx_disable_vf_io_queues() local
364 if (num_queues < oct->num_oqs) in cn23xx_disable_vf_io_queues()
365 num_queues = oct->num_oqs; in cn23xx_disable_vf_io_queues()
367 cn23xx_vf_reset_io_queues(oct, num_queues); in cn23xx_disable_vf_io_queues()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_pm4_headers.h89 uint32_t num_queues:10; member
142 uint32_t num_queues:10; member
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_ethtool.c303 ch->max_combined = adapter->num_queues; in tsnep_ethtool_get_channels()
304 ch->combined_count = adapter->num_queues; in tsnep_ethtool_get_channels()
333 for (i = 0; i < adapter->num_queues; i++) { in tsnep_get_queue_with_tx()
350 for (i = 0; i < adapter->num_queues; i++) { in tsnep_get_queue_with_rx()
390 for (i = 0; i < adapter->num_queues; i++) { in tsnep_ethtool_set_coalesce()

12345