/Linux-v6.1/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 200 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local 205 new_rx_count = max_t(u32, ring->rx_pending, IGBVF_MIN_RXD); in igbvf_set_ringparam() 206 new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); in igbvf_set_ringparam() 207 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam() 214 (new_rx_count == adapter->rx_ring->count)) { in igbvf_set_ringparam() 224 adapter->rx_ring->count = new_rx_count; in igbvf_set_ringparam() 253 if (new_rx_count != adapter->rx_ring->count) { in igbvf_set_ringparam() 256 temp_ring->count = new_rx_count; in igbvf_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbevf/ |
D | ethtool.c | 243 u32 new_rx_count, new_tx_count; in ixgbevf_set_ringparam() local 253 new_rx_count = max_t(u32, ring->rx_pending, IXGBEVF_MIN_RXD); in ixgbevf_set_ringparam() 254 new_rx_count = min_t(u32, new_rx_count, IXGBEVF_MAX_RXD); in ixgbevf_set_ringparam() 255 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbevf_set_ringparam() 259 (new_rx_count == adapter->rx_ring_count)) in ixgbevf_set_ringparam() 271 adapter->rx_ring[i]->count = new_rx_count; in ixgbevf_set_ringparam() 274 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam() 324 if (new_rx_count != adapter->rx_ring_count) { in ixgbevf_set_ringparam() 340 rx_ring[i].count = new_rx_count; in ixgbevf_set_ringparam() 383 adapter->rx_ring_count = new_rx_count; in ixgbevf_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 529 u32 new_rx_count, new_tx_count; in fm10k_set_ringparam() local 538 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam() 540 new_rx_count = ALIGN(new_rx_count, FM10K_REQ_RX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam() 543 (new_rx_count == interface->rx_ring_count)) { in fm10k_set_ringparam() 555 interface->rx_ring[i]->count = new_rx_count; in fm10k_set_ringparam() 557 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam() 604 if (new_rx_count != interface->rx_ring_count) { in fm10k_set_ringparam() 609 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam() 627 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 592 u16 new_rx_count, new_tx_count; in igc_ethtool_set_ringparam() local 598 new_rx_count = min_t(u32, ring->rx_pending, IGC_MAX_RXD); in igc_ethtool_set_ringparam() 599 new_rx_count = max_t(u16, new_rx_count, IGC_MIN_RXD); in igc_ethtool_set_ringparam() 600 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igc_ethtool_set_ringparam() 607 new_rx_count == adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 619 adapter->rx_ring[i]->count = new_rx_count; in igc_ethtool_set_ringparam() 621 adapter->rx_ring_count = new_rx_count; in igc_ethtool_set_ringparam() 669 if (new_rx_count != adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 674 temp_ring[i].count = new_rx_count; in igc_ethtool_set_ringparam() 692 adapter->rx_ring_count = new_rx_count; in igc_ethtool_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 629 u32 new_rx_count, new_tx_count; in iavf_set_ringparam() local 649 new_rx_count = ALIGN(ring->rx_pending, IAVF_REQ_DESCRIPTOR_MULTIPLE); in iavf_set_ringparam() 650 if (new_rx_count != ring->rx_pending) in iavf_set_ringparam() 652 new_rx_count); in iavf_set_ringparam() 656 (new_rx_count == adapter->rx_desc_count)) { in iavf_set_ringparam() 667 if (new_rx_count != adapter->rx_desc_count) { in iavf_set_ringparam() 669 adapter->rx_desc_count, new_rx_count); in iavf_set_ringparam() 670 adapter->rx_desc_count = new_rx_count; in iavf_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 679 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local 684 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam() 686 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 693 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam() 703 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam() 705 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam() 710 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam() 745 temp_rx->count = new_rx_count; in e1000_set_ringparam() 760 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 887 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local 892 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam() 893 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam() 894 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam() 901 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam() 913 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam() 915 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam() 963 if (new_rx_count != adapter->rx_ring_count) { in igb_set_ringparam() 968 temp_ring[i].count = new_rx_count; in igb_set_ringparam() 987 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
|
/Linux-v6.1/drivers/net/ |
D | veth.c | 1254 unsigned int old_rx_count, new_rx_count; in veth_set_channels() local 1273 new_rx_count = ch->rx_count; in veth_set_channels() 1281 err = veth_enable_range_safe(dev, old_rx_count, new_rx_count); in veth_set_channels() 1301 new_rx_count, old_rx_count, err2); in veth_set_channels() 1311 veth_disable_range_safe(dev, new_rx_count, old_rx_count); in veth_set_channels() 1319 new_rx_count = old_rx_count; in veth_set_channels()
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1143 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local 1152 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam() 1154 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam() 1157 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam() 1171 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam() 1174 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam() 1244 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam() 1253 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam() 1272 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
|
/Linux-v6.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2054 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local 2074 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam() 2078 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam() 2099 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam() 2104 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam() 2155 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam() 2158 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam() 2171 rx_rings[i].count = new_rx_count; in i40e_set_ringparam() 2242 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam()
|