Lines Matching refs:v_budget
1806 int v_budget, vector; in fm10k_init_msix_capability() local
1814 v_budget = max(interface->num_rx_queues, interface->num_tx_queues); in fm10k_init_msix_capability()
1815 v_budget = min_t(u16, v_budget, num_online_cpus()); in fm10k_init_msix_capability()
1818 v_budget += NON_Q_VECTORS; in fm10k_init_msix_capability()
1826 v_budget = min_t(int, v_budget, hw->mac.max_msix_vectors); in fm10k_init_msix_capability()
1829 interface->msix_entries = kcalloc(v_budget, sizeof(struct msix_entry), in fm10k_init_msix_capability()
1835 for (vector = 0; vector < v_budget; vector++) in fm10k_init_msix_capability()
1839 v_budget = pci_enable_msix_range(interface->pdev, in fm10k_init_msix_capability()
1842 v_budget); in fm10k_init_msix_capability()
1843 if (v_budget < 0) { in fm10k_init_msix_capability()
1846 return v_budget; in fm10k_init_msix_capability()
1850 interface->num_q_vectors = v_budget - NON_Q_VECTORS; in fm10k_init_msix_capability()