Searched refs:v_budget (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 1804 int v_budget, vector; in fm10k_init_msix_capability() local 1812 v_budget = max(interface->num_rx_queues, interface->num_tx_queues); in fm10k_init_msix_capability() 1813 v_budget = min_t(u16, v_budget, num_online_cpus()); in fm10k_init_msix_capability() 1816 v_budget += NON_Q_VECTORS; in fm10k_init_msix_capability() 1824 v_budget = min_t(int, v_budget, hw->mac.max_msix_vectors); in fm10k_init_msix_capability() 1827 interface->msix_entries = kcalloc(v_budget, sizeof(struct msix_entry), in fm10k_init_msix_capability() 1833 for (vector = 0; vector < v_budget; vector++) in fm10k_init_msix_capability() 1837 v_budget = pci_enable_msix_range(interface->pdev, in fm10k_init_msix_capability() 1840 v_budget); in fm10k_init_msix_capability() 1841 if (v_budget < 0) { in fm10k_init_msix_capability() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 2657 int vector, v_budget; in ixgbevf_set_interrupt_capability() local 2665 v_budget = max(adapter->num_rx_queues, adapter->num_tx_queues); in ixgbevf_set_interrupt_capability() 2666 v_budget = min_t(int, v_budget, num_online_cpus()); in ixgbevf_set_interrupt_capability() 2667 v_budget += NON_Q_VECTORS; in ixgbevf_set_interrupt_capability() 2669 adapter->msix_entries = kcalloc(v_budget, in ixgbevf_set_interrupt_capability() 2674 for (vector = 0; vector < v_budget; vector++) in ixgbevf_set_interrupt_capability() 2681 return ixgbevf_acquire_msix_vectors(adapter, v_budget); in ixgbevf_set_interrupt_capability()
|
/Linux-v5.10/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 3383 int v_left, v_actual, v_budget = 0; in ice_ena_msix_range() local 3392 v_budget += needed; in ice_ena_msix_range() 3400 v_budget += needed; in ice_ena_msix_range() 3408 v_budget += needed; in ice_ena_msix_range() 3412 pf->msix_entries = devm_kcalloc(dev, v_budget, in ice_ena_msix_range() 3420 for (i = 0; i < v_budget; i++) in ice_ena_msix_range() 3425 ICE_MIN_MSIX, v_budget); in ice_ena_msix_range() 3433 if (v_actual < v_budget) { in ice_ena_msix_range() 3435 v_budget, v_actual); in ice_ena_msix_range()
|
/Linux-v5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 1153 int vector, v_budget; in iavf_set_interrupt_capability() local 1168 v_budget = min_t(int, pairs + NONQ_VECS, in iavf_set_interrupt_capability() 1171 adapter->msix_entries = kcalloc(v_budget, in iavf_set_interrupt_capability() 1178 for (vector = 0; vector < v_budget; vector++) in iavf_set_interrupt_capability() 1181 err = iavf_acquire_msix_vectors(adapter, v_budget); in iavf_set_interrupt_capability()
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 10892 int v_budget, i; in i40e_init_msix() local 10915 v_budget = 0; in i40e_init_msix() 10919 v_budget++; in i40e_init_msix() 10938 v_budget++; in i40e_init_msix() 10953 v_budget += pf->num_iwarp_msix; in i40e_init_msix() 10983 v_budget += vmdq_vecs; in i40e_init_msix() 11004 v_budget += pf->num_lan_msix; in i40e_init_msix() 11005 pf->msix_entries = kcalloc(v_budget, sizeof(struct msix_entry), in i40e_init_msix() 11010 for (i = 0; i < v_budget; i++) in i40e_init_msix() 11012 v_actual = i40e_reserve_msix_vectors(pf, v_budget); in i40e_init_msix() [all …]
|