Lines Matching refs:nvecs
957 int nvecs, i; in wx_acquire_msix_vectors() local
959 nvecs = min_t(int, num_online_cpus(), wx->mac.max_msix_vectors); in wx_acquire_msix_vectors()
961 wx->msix_entries = kcalloc(nvecs, in wx_acquire_msix_vectors()
967 nvecs = pci_alloc_irq_vectors_affinity(wx->pdev, nvecs, in wx_acquire_msix_vectors()
968 nvecs, in wx_acquire_msix_vectors()
971 if (nvecs < 0) { in wx_acquire_msix_vectors()
972 wx_err(wx, "Failed to allocate MSI-X interrupts. Err: %d\n", nvecs); in wx_acquire_msix_vectors()
975 return nvecs; in wx_acquire_msix_vectors()
978 for (i = 0; i < nvecs; i++) { in wx_acquire_msix_vectors()
984 nvecs -= 1; in wx_acquire_msix_vectors()
985 wx->num_q_vectors = nvecs; in wx_acquire_msix_vectors()
986 wx->num_rx_queues = nvecs; in wx_acquire_msix_vectors()
987 wx->num_tx_queues = nvecs; in wx_acquire_msix_vectors()
1002 int nvecs, ret; in wx_set_interrupt_capability() local
1014 nvecs = 1; in wx_set_interrupt_capability()
1015 nvecs = pci_alloc_irq_vectors(pdev, nvecs, in wx_set_interrupt_capability()
1016 nvecs, PCI_IRQ_MSI | PCI_IRQ_LEGACY); in wx_set_interrupt_capability()
1017 if (nvecs == 1) { in wx_set_interrupt_capability()
1023 wx_err(wx, "Failed to allocate MSI/LEGACY interrupts. Error: %d\n", nvecs); in wx_set_interrupt_capability()
1024 return nvecs; in wx_set_interrupt_capability()