/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
H A D | ethtool.c | 220 u32 new_rx_count, new_tx_count; igbvf_set_ringparam() local 229 new_tx_count = max_t(u32, ring->tx_pending, IGBVF_MIN_TXD); igbvf_set_ringparam() 230 new_tx_count = min_t(u32, new_tx_count, IGBVF_MAX_TXD); igbvf_set_ringparam() 231 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); igbvf_set_ringparam() 233 if ((new_tx_count == adapter->tx_ring->count) && igbvf_set_ringparam() 243 adapter->tx_ring->count = new_tx_count; igbvf_set_ringparam() 260 if (new_tx_count != adapter->tx_ring->count) { igbvf_set_ringparam() 263 temp_ring->count = new_tx_count; igbvf_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ethtool.c | 269 u32 new_rx_count, new_tx_count; ixgbevf_set_ringparam() local 275 new_tx_count = max_t(u32, ring->tx_pending, IXGBEVF_MIN_TXD); ixgbevf_set_ringparam() 276 new_tx_count = min_t(u32, new_tx_count, IXGBEVF_MAX_TXD); ixgbevf_set_ringparam() 277 new_tx_count = ALIGN(new_tx_count, IXGBE_REQ_TX_DESCRIPTOR_MULTIPLE); ixgbevf_set_ringparam() 284 if ((new_tx_count == adapter->tx_ring_count) && ixgbevf_set_ringparam() 293 adapter->tx_ring[i]->count = new_tx_count; ixgbevf_set_ringparam() 296 adapter->tx_ring_count = new_tx_count; ixgbevf_set_ringparam() 301 if (new_tx_count != adapter->tx_ring_count) { ixgbevf_set_ringparam() 311 tx_ring[i].count = new_tx_count; ixgbevf_set_ringparam() 362 adapter->tx_ring_count = new_tx_count; ixgbevf_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_ethtool.c | 588 u32 new_rx_count, new_tx_count; fm10k_set_ringparam() local 593 new_tx_count = clamp_t(u32, ring->tx_pending, fm10k_set_ringparam() 595 new_tx_count = ALIGN(new_tx_count, FM10K_REQ_TX_DESCRIPTOR_MULTIPLE); fm10k_set_ringparam() 601 if ((new_tx_count == interface->tx_ring_count) && fm10k_set_ringparam() 612 interface->tx_ring[i]->count = new_tx_count; fm10k_set_ringparam() 615 interface->tx_ring_count = new_tx_count; fm10k_set_ringparam() 636 if (new_tx_count != interface->tx_ring_count) { fm10k_set_ringparam() 641 temp_ring[i].count = new_tx_count; fm10k_set_ringparam() 659 interface->tx_ring_count = new_tx_count; fm10k_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
H A D | i40evf_ethtool.c | 247 u32 new_rx_count, new_tx_count; i40evf_set_ringparam() local 252 new_tx_count = clamp_t(u32, ring->tx_pending, i40evf_set_ringparam() 255 new_tx_count = ALIGN(new_tx_count, I40EVF_REQ_DESCRIPTOR_MULTIPLE); i40evf_set_ringparam() 263 if ((new_tx_count == adapter->tx_desc_count) && i40evf_set_ringparam() 267 adapter->tx_desc_count = new_tx_count; i40evf_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
H A D | ethtool.c | 671 u16 new_rx_count, new_tx_count; e1000_set_ringparam() local 680 new_tx_count = clamp_t(u32, ring->tx_pending, E1000_MIN_TXD, e1000_set_ringparam() 682 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); e1000_set_ringparam() 684 if ((new_tx_count == adapter->tx_ring_count) && e1000_set_ringparam() 694 adapter->tx_ring->count = new_tx_count; e1000_set_ringparam() 696 adapter->tx_ring_count = new_tx_count; e1000_set_ringparam() 701 set_tx = (new_tx_count != adapter->tx_ring_count); e1000_set_ringparam() 730 temp_tx->count = new_tx_count; e1000_set_ringparam() 747 adapter->tx_ring_count = new_tx_count; e1000_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
H A D | igb_ethtool.c | 864 u16 new_rx_count, new_tx_count; igb_set_ringparam() local 873 new_tx_count = min_t(u32, ring->tx_pending, IGB_MAX_TXD); igb_set_ringparam() 874 new_tx_count = max_t(u16, new_tx_count, IGB_MIN_TXD); igb_set_ringparam() 875 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); igb_set_ringparam() 877 if ((new_tx_count == adapter->tx_ring_count) && igb_set_ringparam() 888 adapter->tx_ring[i]->count = new_tx_count; igb_set_ringparam() 891 adapter->tx_ring_count = new_tx_count; igb_set_ringparam() 914 if (new_tx_count != adapter->tx_ring_count) { igb_set_ringparam() 919 temp_ring[i].count = new_tx_count; igb_set_ringparam() 937 adapter->tx_ring_count = new_tx_count; igb_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 967 u32 new_rx_count, new_tx_count; ixgbe_set_ringparam() local 972 new_tx_count = clamp_t(u32, ring->tx_pending, ixgbe_set_ringparam() 974 new_tx_count = ALIGN(new_tx_count, IXGBE_REQ_TX_DESCRIPTOR_MULTIPLE); ixgbe_set_ringparam() 980 if ((new_tx_count == adapter->tx_ring_count) && ixgbe_set_ringparam() 991 adapter->tx_ring[i]->count = new_tx_count; ixgbe_set_ringparam() 994 adapter->tx_ring_count = new_tx_count; ixgbe_set_ringparam() 1016 if (new_tx_count != adapter->tx_ring_count) { ixgbe_set_ringparam() 1021 temp_ring[i].count = new_tx_count; ixgbe_set_ringparam() 1039 adapter->tx_ring_count = new_tx_count; ixgbe_set_ringparam()
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 1160 u32 new_rx_count, new_tx_count; i40e_set_ringparam() local 1177 new_tx_count = ALIGN(ring->tx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); i40e_set_ringparam() 1181 if ((new_tx_count == vsi->tx_rings[0]->count) && i40e_set_ringparam() 1191 vsi->tx_rings[i]->count = new_tx_count; i40e_set_ringparam() 1203 if (new_tx_count != vsi->tx_rings[0]->count) { i40e_set_ringparam() 1206 vsi->tx_rings[0]->count, new_tx_count); i40e_set_ringparam() 1217 tx_rings[i].count = new_tx_count; i40e_set_ringparam()
|