Lines Matching refs:v_budget
1819 int v_budget, vector; in fm10k_init_msix_capability() local
1827 v_budget = max(interface->num_rx_queues, interface->num_tx_queues); in fm10k_init_msix_capability()
1828 v_budget = min_t(u16, v_budget, num_online_cpus()); in fm10k_init_msix_capability()
1831 v_budget += NON_Q_VECTORS(hw); in fm10k_init_msix_capability()
1839 v_budget = min_t(int, v_budget, hw->mac.max_msix_vectors); in fm10k_init_msix_capability()
1842 interface->msix_entries = kcalloc(v_budget, sizeof(struct msix_entry), in fm10k_init_msix_capability()
1848 for (vector = 0; vector < v_budget; vector++) in fm10k_init_msix_capability()
1852 v_budget = pci_enable_msix_range(interface->pdev, in fm10k_init_msix_capability()
1855 v_budget); in fm10k_init_msix_capability()
1856 if (v_budget < 0) { in fm10k_init_msix_capability()
1859 return v_budget; in fm10k_init_msix_capability()
1863 interface->num_q_vectors = v_budget - NON_Q_VECTORS(hw); in fm10k_init_msix_capability()