Home
last modified time | relevance | path

Searched refs:num_queues (Results 1 - 25 of 222) sorted by relevance

123456789

/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c87 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_get_strings()
95 for (i = 0; i < priv->tx_cfg.num_queues; i++) { in gve_get_strings()
126 (priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS) + in gve_get_sset_count()
127 (priv->tx_cfg.num_queues * NUM_GVE_TX_CNTS); in gve_get_sset_count()
157 rx_qid_to_stats_idx = kmalloc_array(priv->rx_cfg.num_queues, in gve_get_ethtool_stats()
161 tx_qid_to_stats_idx = kmalloc_array(priv->tx_cfg.num_queues, in gve_get_ethtool_stats()
169 ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
192 ring < priv->tx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
230 base_stats_idx = GVE_TX_STATS_REPORT_NUM * priv->tx_cfg.num_queues + in gve_get_ethtool_stats()
231 GVE_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues; in gve_get_ethtool_stats()
[all...]
H A Dgve_main.c40 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats()
53 for (ring = 0; ring < priv->tx_cfg.num_queues; ring++) { in gve_get_stats()
127 priv->tx_cfg.num_queues; in gve_alloc_stats_report()
129 priv->rx_cfg.num_queues; in gve_alloc_stats_report()
246 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
247 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks()
248 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks()
249 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks()
470 err = gve_adminq_create_tx_queues(priv, priv->tx_cfg.num_queues); in gve_create_rings()
473 priv->tx_cfg.num_queues); in gve_create_rings()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/microsoft/mana/
H A Dmana_ethtool.c41 unsigned int num_queues = apc->num_queues; in mana_get_sset_count() local
46 return ARRAY_SIZE(mana_eth_stats) + num_queues * in mana_get_sset_count()
53 unsigned int num_queues = apc->num_queues; in mana_get_strings() local
65 for (i = 0; i < num_queues; i++) { in mana_get_strings()
78 for (i = 0; i < num_queues; i++) { in mana_get_strings()
108 unsigned int num_queues = apc->num_queues; in mana_get_ethtool_stats() local
136 for (q = 0; q < num_queues; in mana_get_ethtool_stats()
[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()
/kernel/linux/linux-5.10/drivers/net/xen-netback/
H A Dinterface.c185 unsigned int num_queues; in xenvif_select_queue() local
189 num_queues = READ_ONCE(vif->num_queues); in xenvif_select_queue()
190 if (num_queues < 1) in xenvif_select_queue()
211 unsigned int num_queues; in xenvif_start_xmit() local
221 num_queues = READ_ONCE(vif->num_queues); in xenvif_start_xmit()
222 if (num_queues < 1) in xenvif_start_xmit()
227 if (index >= num_queues) { in xenvif_start_xmit()
230 index %= num_queues; in xenvif_start_xmit()
274 unsigned int num_queues; xenvif_get_stats() local
306 unsigned int num_queues = vif->num_queues; xenvif_up() local
322 unsigned int num_queues = vif->num_queues; xenvif_down() local
429 unsigned int num_queues; xenvif_get_ethtool_stats() local
804 unsigned int num_queues = vif->num_queues; xenvif_disconnect_data() local
845 unsigned int num_queues = vif->num_queues; xenvif_free() local
[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()
786 * initialised queues. Set num_queues to i so that in connect()
790 be->vif->num_queues = queue_index; in connect()
806 be->vif->num_queues in connect()
853 unsigned int num_queues = queue->vif->num_queues; connect_data_rings() local
[all...]
/kernel/linux/linux-6.6/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()
272 unsigned int num_queues; xenvif_get_stats() local
304 unsigned int num_queues = vif->num_queues; xenvif_up() local
320 unsigned int num_queues = vif->num_queues; xenvif_down() local
427 unsigned int num_queues; xenvif_get_ethtool_stats() local
803 unsigned int num_queues = vif->num_queues; xenvif_disconnect_data() local
844 unsigned int num_queues = vif->num_queues; xenvif_free() local
[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()
786 * initialised queues. Set num_queues to i so that in connect()
790 be->vif->num_queues = queue_index; in connect()
806 be->vif->num_queues in connect()
853 unsigned int num_queues = queue->vif->num_queues; connect_data_rings() local
[all...]
/kernel/linux/linux-5.10/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()
101 pqinfo->num_queues = num_queues; in alloc_pending_queues()
93 alloc_pending_queues(struct otx_cpt_pending_qinfo *pqinfo, u32 qlen, u32 num_queues) alloc_pending_queues() argument
127 init_pending_queues(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) init_pending_queues() argument
299 cptvf_sw_init(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) cptvf_sw_init() 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
/kernel/linux/linux-6.6/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()
100 pqinfo->num_queues = num_queues; in alloc_pending_queues()
93 alloc_pending_queues(struct otx_cpt_pending_qinfo *pqinfo, u32 qlen, u32 num_queues) alloc_pending_queues() argument
125 init_pending_queues(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) init_pending_queues() argument
296 cptvf_sw_init(struct otx_cptvf *cptvf, u32 qlen, u32 num_queues) cptvf_sw_init() 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
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/
H A Dgve_ethtool.c103 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_get_strings()
144 (priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS) + in gve_get_sset_count()
178 rx_qid_to_stats_idx = kmalloc_array(priv->rx_cfg.num_queues, in gve_get_ethtool_stats()
190 ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
251 GVE_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues; in gve_get_ethtool_stats()
252 max_stats_idx = NIC_RX_STATS_REPORT_NUM * priv->rx_cfg.num_queues + in gve_get_ethtool_stats()
270 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_ethtool_stats()
323 i += priv->rx_cfg.num_queues * NUM_GVE_RX_CNTS; in gve_get_ethtool_stats()
429 cmd->rx_count = priv->rx_cfg.num_queues; in gve_get_channels()
430 cmd->tx_count = priv->tx_cfg.num_queues; in gve_get_channels()
[all...]
H A Dgve_main.c102 for (ring = 0; ring < priv->rx_cfg.num_queues; ring++) { in gve_get_stats()
191 priv->rx_cfg.num_queues; in gve_alloc_stats_report()
255 if (block->tx->q_num < priv->tx_cfg.num_queues) in gve_napi_poll()
368 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
369 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks()
370 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks()
371 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks()
736 err = gve_adminq_create_rx_queues(priv, priv->rx_cfg.num_queues); in gve_create_rings()
739 priv->rx_cfg.num_queues); in gve_create_rings()
746 priv->rx_cfg.num_queues); in gve_create_rings()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/
H A Dinit.c106 int i, num_queues, size, ret; in iwl_configure_rxq() local
124 num_queues = fwrt->trans->num_rx_queues - 1; in iwl_configure_rxq()
126 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
132 cmd->num_queues = num_queues; in iwl_configure_rxq()
134 for (i = 0; i < num_queues; i++) { in iwl_configure_rxq()
/kernel/linux/linux-5.10/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()
99 "%s: cmd_res=%d pko_port=%d base_queue=%d num_queues=%d queue=%d\n", in __cvmx_pko_iport_config()
101 num_queues, queue); in __cvmx_pko_iport_config()
328 * @num_queues: Number of queues to associate with this port
338 * There must be num_queues elements in the array.
341 uint64_t num_queues, in cvmx_pko_config_port()
361 if (base_queue + num_queues > CVMX_PKO_MAX_OUTPUT_QUEUES) { in cvmx_pko_config_port()
364 (unsigned long long)(base_queue + num_queues)); in cvmx_pko_config_port()
340 cvmx_pko_config_port(uint64_t port, uint64_t base_queue, uint64_t num_queues, const uint64_t priority[]) cvmx_pko_config_port() argument
[all...]
/kernel/linux/linux-6.6/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()
99 "%s: cmd_res=%d pko_port=%d base_queue=%d num_queues=%d queue=%d\n", in __cvmx_pko_iport_config()
101 num_queues, queue); in __cvmx_pko_iport_config()
314 * @num_queues: Number of queues to associate with this port
324 * There must be num_queues elements in the array.
327 uint64_t num_queues, in cvmx_pko_config_port()
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()
326 cvmx_pko_config_port(uint64_t port, uint64_t base_queue, uint64_t num_queues, const uint64_t priority[]) cvmx_pko_config_port() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dbus.c132 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues);
137 unsigned int id, port_count, num_queues; in new_device_store() local
141 err = sscanf(buf, "%u %u %u", &id, &port_count, &num_queues); in new_device_store()
147 num_queues = 1; in new_device_store()
156 pr_err("Format for adding new device is \"id port_count num_queues\" (uint uint unit).\n"); in new_device_store()
167 nsim_bus_dev = nsim_bus_dev_new(id, port_count, num_queues); in new_device_store()
268 nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queues) in nsim_bus_dev_new() argument
284 nsim_bus_dev->num_queues = num_queues; in nsim_bus_dev_new()
/kernel/linux/linux-5.10/drivers/staging/wfx/
H A Dqueue.c235 int i, j, num_queues = 0; in wfx_tx_queues_get_skb() local
244 WARN_ON(num_queues >= ARRAY_SIZE(queues)); in wfx_tx_queues_get_skb()
245 queues[num_queues] = &wvif->tx_queue[i]; in wfx_tx_queues_get_skb()
246 for (j = num_queues; j > 0; j--) in wfx_tx_queues_get_skb()
250 num_queues++; in wfx_tx_queues_get_skb()
258 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
278 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
/kernel/linux/linux-6.6/drivers/net/wireless/silabs/wfx/
H A Dqueue.c230 int i, j, num_queues = 0; in wfx_tx_queues_get_skb() local
239 WARN_ON(num_queues >= ARRAY_SIZE(queues)); in wfx_tx_queues_get_skb()
240 queues[num_queues] = &wvif->tx_queue[i]; in wfx_tx_queues_get_skb()
241 for (j = num_queues; j > 0; j--) in wfx_tx_queues_get_skb()
245 num_queues++; in wfx_tx_queues_get_skb()
253 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
272 for (i = 0; i < num_queues; i++) { in wfx_tx_queues_get_skb()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dvirtio_scsi.c77 u32 num_queues; member
206 num_vqs = vscsi->num_queues; in virtscsi_poll_requests()
798 num_vqs = vscsi->num_queues + VIRTIO_SCSI_VQ_BASE; in virtscsi_init()
850 u32 num_queues; in virtscsi_probe() local
859 num_queues = virtscsi_config_get(vdev, num_queues) ? : 1; in virtscsi_probe()
860 num_queues = min_t(unsigned int, nr_cpu_ids, num_queues); in virtscsi_probe()
865 struct_size(vscsi, req_vqs, num_queues)); in virtscsi_probe()
873 vscsi->num_queues in virtscsi_probe()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dvirtio_scsi.c78 u32 num_queues; member
205 num_vqs = vscsi->num_queues; in virtscsi_poll_requests()
804 num_vqs = vscsi->num_queues + VIRTIO_SCSI_VQ_BASE; in virtscsi_init()
856 u32 num_queues; in virtscsi_probe() local
865 num_queues = virtscsi_config_get(vdev, num_queues) ? : 1; in virtscsi_probe()
866 num_queues = min_t(unsigned int, nr_cpu_ids, num_queues); in virtscsi_probe()
871 struct_size(vscsi, req_vqs, num_queues)); in virtscsi_probe()
879 vscsi->num_queues in virtscsi_probe()
[all...]
/kernel/linux/linux-5.10/drivers/net/
H A Dxen-netfront.c364 unsigned int num_queues = dev->real_num_tx_queues; in xennet_open() local
371 for (i = 0; i < num_queues; ++i) { in xennet_open()
589 unsigned int num_queues = dev->real_num_tx_queues; in xennet_select_queue() local
594 if (num_queues == 1) { in xennet_select_queue()
598 queue_idx = hash % num_queues; in xennet_select_queue()
649 unsigned int num_queues = dev->real_num_tx_queues; in xennet_xdp_xmit() local
661 queue = &np->queues[smp_processor_id() % num_queues]; in xennet_xdp_xmit()
724 unsigned int num_queues = dev->real_num_tx_queues; in xennet_start_xmit() local
729 if (num_queues < 1) in xennet_start_xmit()
873 unsigned int num_queues in xennet_close() local
1594 unsigned int num_queues = dev->real_num_tx_queues; xennet_poll_controller() local
1815 unsigned int num_queues = info->netdev->real_num_tx_queues; xennet_disconnect_backend() local
2235 xennet_create_queues(struct netfront_info *info, unsigned int *num_queues) xennet_create_queues() argument
2294 unsigned int num_queues = 1; talk_to_netback() local
2452 unsigned int num_queues = 0; xennet_connect() local
[all...]
/kernel/linux/linux-6.6/drivers/net/
H A Dxen-netfront.c362 unsigned int num_queues = dev->real_num_tx_queues; in xennet_open() local
369 for (i = 0; i < num_queues; ++i) { in xennet_open()
587 unsigned int num_queues = dev->real_num_tx_queues; in xennet_select_queue() local
592 if (num_queues == 1) { in xennet_select_queue()
596 queue_idx = hash % num_queues; in xennet_select_queue()
647 unsigned int num_queues = dev->real_num_tx_queues; in xennet_xdp_xmit() local
659 queue = &np->queues[smp_processor_id() % num_queues]; in xennet_xdp_xmit()
720 unsigned int num_queues = dev->real_num_tx_queues; in xennet_start_xmit() local
725 if (num_queues < 1) in xennet_start_xmit()
869 unsigned int num_queues in xennet_close() local
1588 unsigned int num_queues = dev->real_num_tx_queues; xennet_poll_controller() local
1811 unsigned int num_queues = info->netdev->real_num_tx_queues; xennet_disconnect_backend() local
2202 xennet_create_queues(struct netfront_info *info, unsigned int *num_queues) xennet_create_queues() argument
2260 unsigned int num_queues = 1; talk_to_netback() local
2420 unsigned int num_queues = 0; xennet_connect() local
[all...]

Completed in 22 milliseconds

123456789