/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_ethtool.c | 41 unsigned int num_queues = apc->num_queues; in mana_get_sset_count() local 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; q++) { in mana_get_ethtool_stats() 155 for (q = 0; q < num_queues; q++) { in mana_get_ethtool_stats() 194 cmd->data = apc->num_queues; in mana_get_rxnfc() 248 if (indir[i] >= apc->num_queues) in mana_set_rxfh() 304 apc->num_queues = new_count; in mana_set_channels() [all …]
|
H A D | mana_bpf.c | 152 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()
|
/openbmc/linux/drivers/net/xen-netback/ |
H A D | interface.c | 187 num_queues = READ_ONCE(vif->num_queues); in xenvif_select_queue() 188 if (num_queues < 1) in xenvif_select_queue() 219 num_queues = READ_ONCE(vif->num_queues); in xenvif_start_xmit() 220 if (num_queues < 1) in xenvif_start_xmit() 228 index %= num_queues; in xenvif_start_xmit() 280 num_queues = READ_ONCE(vif->num_queues); in xenvif_get_stats() 304 unsigned int num_queues = vif->num_queues; in xenvif_up() local 320 unsigned int num_queues = vif->num_queues; in xenvif_down() local 432 num_queues = READ_ONCE(vif->num_queues); in xenvif_get_ethtool_stats() 802 unsigned int num_queues = vif->num_queues; in xenvif_disconnect_data() local [all …]
|
H A D | xenbus.c | 177 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() 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() 843 be->vif->num_queues = 0; in connect() 853 unsigned int num_queues = queue->vif->num_queues; in connect_data_rings() local [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_main.c | 40 cptvf->num_queues); in init_worker_threads() 65 cptvf->num_queues); in cleanup_worker_threads() 94 u32 num_queues) in alloc_pending_queues() argument 100 pqinfo->num_queues = num_queues; in alloc_pending_queues() 131 if (!num_queues) in init_pending_queues() 137 num_queues); in init_pending_queues() 151 cptvf->num_queues); in cleanup_pending_queues() 304 num_queues = min_t(u32, num_queues, max_dev_queues); in cptvf_sw_init() 305 cptvf->num_queues = num_queues; in cptvf_sw_init() 310 num_queues); in cptvf_sw_init() [all …]
|
H A D | otx_cptvf.h | 52 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
|
/openbmc/qemu/block/export/ |
H A D | vduse-blk.c | 32 uint16_t num_queues; member 219 for (uint16_t i = 0; i < vblk_exp->num_queues; i++) { in vduse_blk_stop_virtqueues() 231 for (uint16_t i = 0; i < vblk_exp->num_queues; i++) { in vduse_blk_start_virtqueues() 274 uint16_t num_queues = VDUSE_DEFAULT_NUM_QUEUE; in vduse_blk_exp_create() local 282 num_queues = vblk_opts->num_queues; in vduse_blk_exp_create() 283 if (num_queues == 0) { in vduse_blk_exp_create() 307 vblk_exp->num_queues = num_queues; in vduse_blk_exp_create() 319 config.num_queues = cpu_to_le16(num_queues); in vduse_blk_exp_create() 337 if (num_queues > 1) { in vduse_blk_exp_create() 345 features, num_queues, in vduse_blk_exp_create() [all …]
|
H A D | vhost-user-blk-server.c | 237 uint16_t num_queues) in vu_blk_initialize_config() argument 246 config->num_queues = cpu_to_le16(num_queues); in vu_blk_initialize_config() 324 uint16_t num_queues = VHOST_USER_BLK_NUM_QUEUES_DEFAULT; in vu_blk_exp_create() local 341 num_queues = vu_opts->num_queues; in vu_blk_exp_create() 343 if (num_queues == 0) { in vu_blk_exp_create() 353 logical_block_size, num_queues); in vu_blk_exp_create() 361 num_queues, &vu_blk_iface, errp)) { in vu_blk_exp_create()
|
/openbmc/qemu/hw/scsi/ |
H A D | virtio-scsi-dataplane.c | 89 for (i = 0; i < vs->conf.num_queues; i++) { in virtio_scsi_dataplane_stop_bh() 116 rc = k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, true); in virtio_scsi_dataplane_start() 142 for (i = 0; i < vs->conf.num_queues; i++) { in virtio_scsi_dataplane_start() 160 for (i = 0; i < vs->conf.num_queues; i++) { in virtio_scsi_dataplane_start() 180 k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, false); in virtio_scsi_dataplane_start() 221 for (i = 0; i < vs->conf.num_queues + 2; i++) { in virtio_scsi_dataplane_stop() 231 for (i = 0; i < vs->conf.num_queues + 2; i++) { in virtio_scsi_dataplane_stop() 236 k->set_guest_notifiers(qbus->parent, vs->conf.num_queues + 2, false); in virtio_scsi_dataplane_stop()
|
/openbmc/qemu/hw/block/ |
H A D | vhost-user-blk.c | 66 virtio_stw_p(vdev, &s->blkcfg.num_queues, s->num_queues); in vhost_user_blk_update_config() 264 if (s->num_queues > 1) { in vhost_user_blk_get_features() 327 s->dev.num_queues = s->num_queues; in vhost_user_blk_connect() 328 s->dev.nvqs = s->num_queues; in vhost_user_blk_connect() 444 if (s->num_queues == VHOST_USER_BLK_AUTO_NUM_QUEUES) { in vhost_user_blk_device_realize() 445 s->num_queues = 1; in vhost_user_blk_device_realize() 447 if (!s->num_queues || s->num_queues > VIRTIO_QUEUE_MAX) { in vhost_user_blk_device_realize() 470 s->virtqs = g_new(VirtQueue *, s->num_queues); in vhost_user_blk_device_realize() 471 for (i = 0; i < s->num_queues; i++) { in vhost_user_blk_device_realize() 505 for (i = 0; i < s->num_queues; i++) { in vhost_user_blk_device_realize() [all …]
|
H A D | virtio-blk.c | 1061 uint16_t num_queues = s->conf.num_queues; in virtio_blk_dma_restart_cb() local 1082 assert(idx < num_queues); in virtio_blk_dma_restart_cb() 1174 virtio_stw_p(vdev, &blkcfg.num_queues, s->conf.num_queues); in virtio_blk_update_config() 1260 if (s->conf.num_queues > 1) { in virtio_blk_get_features() 1311 if (s->conf.num_queues > 1) { in virtio_blk_save_device() 1423 uint16_t num_queues, Error **errp) in validate_iothread_vq_mapping_list() argument 1498 uint16_t num_queues, in apply_iothread_vq_mapping() argument 1641 unsigned nvqs = s->conf.num_queues; in virtio_blk_start_ioeventfd() 1758 unsigned nvqs = s->conf.num_queues; in virtio_blk_stop_ioeventfd() 1840 conf->num_queues = 1; in virtio_blk_device_realize() [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-pko.c | 71 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 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() 422 for (queue = 0; queue < num_queues; queue++) { in cvmx_pko_config_port() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | init.c | 106 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()
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_ethtool.c | 103 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_get_strings() 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() 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() 461 priv->tx_cfg.num_queues = new_tx; in gve_set_channels() 462 priv->rx_cfg.num_queues = new_rx; in gve_set_channels() 466 new_tx_cfg.num_queues = new_tx; in gve_set_channels() 467 new_rx_cfg.num_queues = new_rx; in gve_set_channels() [all …]
|
H A D | gve_main.c | 191 priv->rx_cfg.num_queues; in gve_alloc_stats_report() 739 priv->rx_cfg.num_queues); in gve_create_rings() 746 priv->rx_cfg.num_queues); in gve_create_rings() 1516 if (qid >= priv->rx_cfg.num_queues) { in gve_xsk_pool_enable() 1574 if (qid >= priv->rx_cfg.num_queues) in gve_xsk_pool_disable() 1661 if (priv->rx_cfg.num_queues != priv->tx_cfg.num_queues || in verify_xdp_configuration() 1664 priv->rx_cfg.num_queues, in verify_xdp_configuration() 1665 priv->tx_cfg.num_queues, in verify_xdp_configuration() 2087 priv->tx_cfg.num_queues); in gve_init_priv() 2089 priv->rx_cfg.num_queues); in gve_init_priv() [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | bus.c | 132 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() 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()
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 128 uint16_t num_queues; member 981 for (i = 0; i < dev->num_queues; i++) { in vduse_dev_start_dataplane() 991 for (i = 0; i < dev->num_queues; i++) { in vduse_dev_stop_dataplane() 1123 for (i = 0; i < dev->num_queues; i++) { in vduse_set_reconnect_log_file() 1142 for (i = 0; i < num_queues; i++) { in vduse_dev_init_vqs() 1185 ret = vduse_dev_init_vqs(dev, num_queues); in vduse_dev_init() 1193 dev->num_queues = num_queues; in vduse_dev_init() 1229 ret = vduse_dev_init_vqs(dev, num_queues); in vduse_dev_create_by_fd() 1236 dev->num_queues = num_queues; in vduse_dev_create_by_fd() 1322 dev_config->vq_num = num_queues; in vduse_dev_create() [all …]
|
H A D | libvduse.h | 199 VduseDev *vduse_dev_create_by_fd(int fd, uint16_t num_queues, 213 VduseDev *vduse_dev_create_by_name(const char *name, uint16_t num_queues, 234 uint16_t num_queues, uint32_t config_size,
|
/openbmc/linux/drivers/net/wireless/silabs/wfx/ |
H A D | queue.c | 230 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()
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-blk-pci.c | 58 if (dev->vdev.num_queues == VHOST_USER_BLK_AUTO_NUM_QUEUES) { in vhost_user_blk_pci_realize() 59 dev->vdev.num_queues = virtio_pci_optimal_num_queues(0); in vhost_user_blk_pci_realize() 63 vpci_dev->nvectors = dev->vdev.num_queues + 1; in vhost_user_blk_pci_realize()
|
H A D | vhost-user-scsi-pci.c | 59 if (conf->num_queues == VIRTIO_SCSI_AUTO_NUM_QUEUES) { in vhost_user_scsi_pci_realize() 60 conf->num_queues = in vhost_user_scsi_pci_realize() 65 vpci_dev->nvectors = conf->num_queues + VIRTIO_SCSI_VQ_NUM_FIXED + 1; in vhost_user_scsi_pci_realize()
|
H A D | vhost-scsi-pci.c | 53 if (conf->num_queues == VIRTIO_SCSI_AUTO_NUM_QUEUES) { in vhost_scsi_pci_realize() 54 conf->num_queues = in vhost_scsi_pci_realize() 59 vpci_dev->nvectors = conf->num_queues + VIRTIO_SCSI_VQ_NUM_FIXED + 1; in vhost_scsi_pci_realize()
|
H A D | virtio-blk-pci.c | 56 if (conf->num_queues == VIRTIO_BLK_AUTO_NUM_QUEUES) { in virtio_blk_pci_realize() 57 conf->num_queues = virtio_pci_optimal_num_queues(0); in virtio_blk_pci_realize() 61 vpci_dev->nvectors = conf->num_queues + 1; in virtio_blk_pci_realize()
|
H A D | virtio-scsi-pci.c | 54 if (conf->num_queues == VIRTIO_SCSI_AUTO_NUM_QUEUES) { in virtio_scsi_pci_realize() 55 conf->num_queues = in virtio_scsi_pci_realize() 60 vpci_dev->nvectors = conf->num_queues + VIRTIO_SCSI_VQ_NUM_FIXED + 1; in virtio_scsi_pci_realize()
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | virtio_scsi_fuzz.c | 33 int num_queues; member 53 vs->num_queues = qvirtio_config_readl(dev, 0); in qvirtio_scsi_init() 55 for (i = 0; i < vs->num_queues + 2; i++) { in qvirtio_scsi_init() 98 vqa.queue = vqa.queue % queues->num_queues; in virtio_scsi_fuzz()
|