/Linux-v5.10/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 196 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local 205 new_tx_count = max_t(u32, ring->tx_pending, IGBVF_MIN_TXD); in igbvf_set_ringparam() 206 new_tx_count = min_t(u32, new_tx_count, IGBVF_MAX_TXD); in igbvf_set_ringparam() 207 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam() 209 if ((new_tx_count == adapter->tx_ring->count) && in igbvf_set_ringparam() 219 adapter->tx_ring->count = new_tx_count; in igbvf_set_ringparam() 236 if (new_tx_count != adapter->tx_ring->count) { in igbvf_set_ringparam() 239 temp_ring->count = new_tx_count; in igbvf_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 243 u32 new_rx_count, new_tx_count; in ixgbevf_set_ringparam() local 249 new_tx_count = max_t(u32, ring->tx_pending, IXGBEVF_MIN_TXD); in ixgbevf_set_ringparam() 250 new_tx_count = min_t(u32, new_tx_count, IXGBEVF_MAX_TXD); in ixgbevf_set_ringparam() 251 new_tx_count = ALIGN(new_tx_count, IXGBE_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgbevf_set_ringparam() 258 if ((new_tx_count == adapter->tx_ring_count) && in ixgbevf_set_ringparam() 267 adapter->tx_ring[i]->count = new_tx_count; in ixgbevf_set_ringparam() 269 adapter->xdp_ring[i]->count = new_tx_count; in ixgbevf_set_ringparam() 272 adapter->tx_ring_count = new_tx_count; in ixgbevf_set_ringparam() 273 adapter->xdp_ring_count = new_tx_count; in ixgbevf_set_ringparam() 278 if (new_tx_count != adapter->tx_ring_count) { in ixgbevf_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 610 u32 new_rx_count, new_tx_count; in iavf_set_ringparam() local 615 new_tx_count = clamp_t(u32, ring->tx_pending, in iavf_set_ringparam() 618 new_tx_count = ALIGN(new_tx_count, IAVF_REQ_DESCRIPTOR_MULTIPLE); in iavf_set_ringparam() 626 if ((new_tx_count == adapter->tx_desc_count) && in iavf_set_ringparam() 630 adapter->tx_desc_count = new_tx_count; in iavf_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 524 u32 new_rx_count, new_tx_count; in fm10k_set_ringparam() local 529 new_tx_count = clamp_t(u32, ring->tx_pending, in fm10k_set_ringparam() 531 new_tx_count = ALIGN(new_tx_count, FM10K_REQ_TX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam() 537 if ((new_tx_count == interface->tx_ring_count) && in fm10k_set_ringparam() 548 interface->tx_ring[i]->count = new_tx_count; in fm10k_set_ringparam() 551 interface->tx_ring_count = new_tx_count; in fm10k_set_ringparam() 572 if (new_tx_count != interface->tx_ring_count) { in fm10k_set_ringparam() 577 temp_ring[i].count = new_tx_count; in fm10k_set_ringparam() 595 interface->tx_ring_count = new_tx_count; in fm10k_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 568 u16 new_rx_count, new_tx_count; in igc_ethtool_set_ringparam() local 578 new_tx_count = min_t(u32, ring->tx_pending, IGC_MAX_TXD); in igc_ethtool_set_ringparam() 579 new_tx_count = max_t(u16, new_tx_count, IGC_MIN_TXD); in igc_ethtool_set_ringparam() 580 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); in igc_ethtool_set_ringparam() 582 if (new_tx_count == adapter->tx_ring_count && in igc_ethtool_set_ringparam() 593 adapter->tx_ring[i]->count = new_tx_count; in igc_ethtool_set_ringparam() 596 adapter->tx_ring_count = new_tx_count; in igc_ethtool_set_ringparam() 619 if (new_tx_count != adapter->tx_ring_count) { in igc_ethtool_set_ringparam() 624 temp_ring[i].count = new_tx_count; in igc_ethtool_set_ringparam() 642 adapter->tx_ring_count = new_tx_count; in igc_ethtool_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 668 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local 677 new_tx_count = clamp_t(u32, ring->tx_pending, E1000_MIN_TXD, in e1000_set_ringparam() 679 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 681 if ((new_tx_count == adapter->tx_ring_count) && in e1000_set_ringparam() 691 adapter->tx_ring->count = new_tx_count; in e1000_set_ringparam() 693 adapter->tx_ring_count = new_tx_count; in e1000_set_ringparam() 698 set_tx = (new_tx_count != adapter->tx_ring_count); in e1000_set_ringparam() 727 temp_tx->count = new_tx_count; in e1000_set_ringparam() 744 adapter->tx_ring_count = new_tx_count; in e1000_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 883 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local 892 new_tx_count = min_t(u32, ring->tx_pending, IGB_MAX_TXD); in igb_set_ringparam() 893 new_tx_count = max_t(u16, new_tx_count, IGB_MIN_TXD); in igb_set_ringparam() 894 new_tx_count = ALIGN(new_tx_count, REQ_TX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam() 896 if ((new_tx_count == adapter->tx_ring_count) && in igb_set_ringparam() 907 adapter->tx_ring[i]->count = new_tx_count; in igb_set_ringparam() 910 adapter->tx_ring_count = new_tx_count; in igb_set_ringparam() 933 if (new_tx_count != adapter->tx_ring_count) { in igb_set_ringparam() 938 temp_ring[i].count = new_tx_count; in igb_set_ringparam() 956 adapter->tx_ring_count = new_tx_count; in igb_set_ringparam()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1140 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local 1145 new_tx_count = clamp_t(u32, ring->tx_pending, in ixgbe_set_ringparam() 1147 new_tx_count = ALIGN(new_tx_count, IXGBE_REQ_TX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam() 1153 if ((new_tx_count == adapter->tx_ring_count) && in ixgbe_set_ringparam() 1164 adapter->tx_ring[i]->count = new_tx_count; in ixgbe_set_ringparam() 1166 adapter->xdp_ring[i]->count = new_tx_count; in ixgbe_set_ringparam() 1169 adapter->tx_ring_count = new_tx_count; in ixgbe_set_ringparam() 1170 adapter->xdp_ring_count = new_tx_count; in ixgbe_set_ringparam() 1193 if (new_tx_count != adapter->tx_ring_count) { in ixgbe_set_ringparam() 1198 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam() [all …]
|
/Linux-v5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 1944 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local 1963 new_tx_count = ALIGN(ring->tx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam() 1967 if ((new_tx_count == vsi->tx_rings[0]->count) && in i40e_set_ringparam() 1988 vsi->tx_rings[i]->count = new_tx_count; in i40e_set_ringparam() 1991 vsi->xdp_rings[i]->count = new_tx_count; in i40e_set_ringparam() 1993 vsi->num_tx_desc = new_tx_count; in i40e_set_ringparam() 2006 if (new_tx_count != vsi->tx_rings[0]->count) { in i40e_set_ringparam() 2009 vsi->tx_rings[0]->count, new_tx_count); in i40e_set_ringparam() 2022 tx_rings[i].count = new_tx_count; in i40e_set_ringparam() 2134 vsi->num_tx_desc = new_tx_count; in i40e_set_ringparam()
|