/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-rng-pci.c | 27 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 37 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in vhost_user_rng_pci_realize() 38 vpci_dev->nvectors = 1; in vhost_user_rng_pci_realize()
|
H A D | vhost-user-fs-pci.c | 33 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 43 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in vhost_user_fs_pci_realize() 45 vpci_dev->nvectors = dev->vdev.conf.num_request_queues + 2; in vhost_user_fs_pci_realize()
|
H A D | virtio-rng-pci.c | 38 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 48 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in virtio_rng_pci_realize() 49 vpci_dev->nvectors = 2; in virtio_rng_pci_realize()
|
H A D | vhost-user-blk-pci.c | 48 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 62 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { 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 | 48 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 64 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { 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 | 42 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 58 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { 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 | 45 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 60 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { 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 | 41 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 59 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in virtio_scsi_pci_realize() 60 vpci_dev->nvectors = conf->num_queues + VIRTIO_SCSI_VQ_NUM_FIXED + 1; in virtio_scsi_pci_realize()
|
H A D | virtio-net-pci.c | 44 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 56 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in virtio_net_pci_realize() 57 vpci_dev->nvectors = 2 * MAX(net->nic_conf.peers.queues, 1) in virtio_net_pci_realize()
|
H A D | virtio-serial-pci.c | 55 if (vpci_dev->nvectors == DEV_NVECTORS_UNSPECIFIED) { in virtio_serial_pci_realize() 56 vpci_dev->nvectors = dev->vdev.serial.max_virtserial_ports + 1; in virtio_serial_pci_realize() 75 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|
H A D | vhost-user-gpio-pci.c | 31 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
|
H A D | vhost-user-i2c-pci.c | 31 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
|
H A D | vhost-user-scmi-pci.c | 30 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
|
H A D | vhost-user-snd-pci.c | 35 vpci_dev->nvectors = 1; in vhost_user_snd_pci_realize()
|
H A D | vhost-user-device-pci.c | 30 vpci_dev->nvectors = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
|
H A D | virtio-crypto-pci.c | 43 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|
H A D | vhost-user-vsock-pci.c | 35 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3),
|
H A D | virtio-9p-pci.c | 49 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|
H A D | vhost-vsock-pci.c | 39 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3),
|
H A D | vdpa-dev-pci.c | 63 vpci_dev->nvectors = v->num_queues + 1; in vhost_vdpa_device_pci_post_init()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_pci_common.c | 111 vp_dev->msix_vectors = nvectors; in vp_request_msix_vectors() 113 vp_dev->msix_names = kmalloc_array(nvectors, in vp_request_msix_vectors() 119 = kcalloc(nvectors, sizeof(*vp_dev->msix_affinity_masks), in vp_request_msix_vectors() 123 for (i = 0; i < nvectors; ++i) in vp_request_msix_vectors() 133 err = pci_alloc_irq_vectors_affinity(vp_dev->pci_dev, nvectors, in vp_request_msix_vectors() 134 nvectors, flags, desc); in vp_request_msix_vectors() 292 int i, err, nvectors, allocated_vectors, queue_idx = 0; in vp_find_vqs_msix() local 300 nvectors = 1; in vp_find_vqs_msix() 303 ++nvectors; in vp_find_vqs_msix() 306 nvectors = 2; in vp_find_vqs_msix() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | ivshmem-test.c | 292 static void setup_vm_with_server(IVState *s, int nvectors) in setup_vm_with_server() argument 298 tmpserver, nvectors); in setup_vm_with_server() 312 int nvectors = 2; in test_ivshmem_server() local 316 TMPSHMSIZE, nvectors, in test_ivshmem_server() 329 setup_vm_with_server(&state1, nvectors); in test_ivshmem_server() 331 setup_vm_with_server(&state2, nvectors); in test_ivshmem_server() 343 g_assert_cmpuint(ret, ==, nvectors); in test_ivshmem_server()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-gpu-pci.h | 37 DEFINE_PROP_UINT32("vectors", _state, nvectors, 3)
|
/openbmc/linux/drivers/vdpa/ifcvf/ |
H A D | ifcvf_main.c | 320 int nvectors, ret, max_intr; in ifcvf_request_irq() local 322 nvectors = ifcvf_alloc_vectors(vf); in ifcvf_request_irq() 323 if (nvectors <= 0) in ifcvf_request_irq() 328 if (nvectors < max_intr) in ifcvf_request_irq() 331 if (nvectors == 1) { in ifcvf_request_irq() 347 vf->num_msix_vectors = nvectors; in ifcvf_request_irq()
|
/openbmc/qemu/hw/audio/ |
H A D | virtio-snd-pci.c | 33 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
|