Lines Matching refs:nvectors
102 static int vp_request_msix_vectors(struct virtio_device *vdev, int nvectors, in vp_request_msix_vectors() argument
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()
286 int i, err, nvectors, allocated_vectors, queue_idx = 0; in vp_find_vqs_msix() local
294 nvectors = 1; in vp_find_vqs_msix()
297 ++nvectors; in vp_find_vqs_msix()
300 nvectors = 2; in vp_find_vqs_msix()
303 err = vp_request_msix_vectors(vdev, nvectors, per_vq_vectors, in vp_find_vqs_msix()