Lines Matching defs:nvecs
1602 int nvecs, i;
1605 nvecs = max(wx->num_rx_queues, wx->num_tx_queues);
1606 nvecs = min_t(int, nvecs, num_online_cpus());
1607 nvecs = min_t(int, nvecs, wx->mac.max_msix_vectors);
1609 wx->msix_q_entries = kcalloc(nvecs, sizeof(struct msix_entry),
1615 nvecs += 1;
1625 nvecs = pci_alloc_irq_vectors_affinity(wx->pdev, nvecs,
1626 nvecs,
1629 if (nvecs < 0) {
1630 wx_err(wx, "Failed to allocate MSI-X interrupts. Err: %d\n", nvecs);
1635 return nvecs;
1640 nvecs -= 1;
1641 for (i = 0; i < nvecs; i++) {
1646 wx->num_q_vectors = nvecs;
1661 int nvecs, ret;
1675 nvecs = 1;
1676 nvecs = pci_alloc_irq_vectors(pdev, nvecs,
1677 nvecs, PCI_IRQ_MSI | PCI_IRQ_LEGACY);
1678 if (nvecs == 1) {
1684 wx_err(wx, "Failed to allocate MSI/LEGACY interrupts. Error: %d\n", nvecs);
1685 return nvecs;