Searched refs:v_budget (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 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() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 2630 int vector, v_budget; in ixgbevf_set_interrupt_capability() local 2638 v_budget = max(adapter->num_rx_queues, adapter->num_tx_queues); in ixgbevf_set_interrupt_capability() 2639 v_budget = min_t(int, v_budget, num_online_cpus()); in ixgbevf_set_interrupt_capability() 2640 v_budget += NON_Q_VECTORS; in ixgbevf_set_interrupt_capability() 2642 adapter->msix_entries = kcalloc(v_budget, in ixgbevf_set_interrupt_capability() 2647 for (vector = 0; vector < v_budget; vector++) in ixgbevf_set_interrupt_capability() 2654 return ixgbevf_acquire_msix_vectors(adapter, v_budget); in ixgbevf_set_interrupt_capability()
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 3145 int v_left, v_actual, v_budget = 0; in ice_ena_msix_range() local 3152 v_budget += needed; in ice_ena_msix_range() 3157 v_budget += pf->num_lan_msix; in ice_ena_msix_range() 3159 pf->msix_entries = devm_kcalloc(&pf->pdev->dev, v_budget, in ice_ena_msix_range() 3167 for (i = 0; i < v_budget; i++) in ice_ena_msix_range() 3172 ICE_MIN_MSIX, v_budget); in ice_ena_msix_range() 3180 if (v_actual < v_budget) { in ice_ena_msix_range() 3183 v_budget, v_actual); in ice_ena_msix_range()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_main.c | 1188 int vector, v_budget; in i40evf_set_interrupt_capability() local 1203 v_budget = min_t(int, pairs + NONQ_VECS, in i40evf_set_interrupt_capability() 1206 adapter->msix_entries = kcalloc(v_budget, in i40evf_set_interrupt_capability() 1213 for (vector = 0; vector < v_budget; vector++) in i40evf_set_interrupt_capability() 1216 err = i40evf_acquire_msix_vectors(adapter, v_budget); in i40evf_set_interrupt_capability()
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 10266 int v_budget, i; in i40e_init_msix() local 10289 v_budget = 0; in i40e_init_msix() 10293 v_budget++; in i40e_init_msix() 10312 v_budget++; in i40e_init_msix() 10327 v_budget += pf->num_iwarp_msix; in i40e_init_msix() 10357 v_budget += vmdq_vecs; in i40e_init_msix() 10378 v_budget += pf->num_lan_msix; in i40e_init_msix() 10379 pf->msix_entries = kcalloc(v_budget, sizeof(struct msix_entry), in i40e_init_msix() 10384 for (i = 0; i < v_budget; i++) in i40e_init_msix() 10386 v_actual = i40e_reserve_msix_vectors(pf, v_budget); in i40e_init_msix() [all …]
|