Home
last modified time | relevance | path

Searched refs:nvectors (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/qemu/hw/virtio/
H A Dvhost-user-rng-pci.c27 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 Dvhost-user-fs-pci.c33 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 Dvirtio-rng-pci.c38 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 Dvhost-user-blk-pci.c48 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 Dvhost-user-scsi-pci.c48 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 Dvhost-scsi-pci.c42 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 Dvirtio-blk-pci.c45 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 Dvirtio-scsi-pci.c41 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 Dvirtio-net-pci.c44 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 Dvirtio-serial-pci.c55 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 Dvhost-user-gpio-pci.c31 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
H A Dvhost-user-i2c-pci.c31 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
H A Dvhost-user-scmi-pci.c30 vpci_dev->nvectors = 1; in DECLARE_INSTANCE_CHECKER()
H A Dvhost-user-snd-pci.c35 vpci_dev->nvectors = 1; in vhost_user_snd_pci_realize()
H A Dvhost-user-device-pci.c30 vpci_dev->nvectors = 1; in OBJECT_DECLARE_SIMPLE_TYPE()
H A Dvirtio-crypto-pci.c43 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
H A Dvhost-user-vsock-pci.c35 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3),
H A Dvirtio-9p-pci.c49 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
H A Dvhost-vsock-pci.c39 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3),
H A Dvdpa-dev-pci.c63 vpci_dev->nvectors = v->num_queues + 1; in vhost_vdpa_device_pci_post_init()
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_common.c111 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 Divshmem-test.c292 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 Dvirtio-gpu-pci.h37 DEFINE_PROP_UINT32("vectors", _state, nvectors, 3)
/openbmc/linux/drivers/vdpa/ifcvf/
H A Difcvf_main.c320 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 Dvirtio-snd-pci.c33 DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),

12