/linux-6.6.21/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-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 593 u16 new_rx_count, new_tx_count; in igc_ethtool_set_ringparam() local 599 new_rx_count = min_t(u32, ring->rx_pending, IGC_MAX_RXD); in igc_ethtool_set_ringparam() 600 new_rx_count = max_t(u16, new_rx_count, IGC_MIN_RXD); in igc_ethtool_set_ringparam() 601 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igc_ethtool_set_ringparam() 608 new_rx_count == adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 620 adapter->rx_ring[i]->count = new_rx_count; in igc_ethtool_set_ringparam() 622 adapter->rx_ring_count = new_rx_count; in igc_ethtool_set_ringparam() 670 if (new_rx_count != adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 675 temp_ring[i].count = new_rx_count; in igc_ethtool_set_ringparam() 693 adapter->rx_ring_count = new_rx_count; in igc_ethtool_set_ringparam()
|
/linux-6.6.21/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 687 u16 new_rx_count, new_tx_count; in e1000_set_ringparam() local 692 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam() 694 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 701 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam() 711 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam() 713 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam() 718 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam() 753 temp_rx->count = new_rx_count; in e1000_set_ringparam() 768 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam()
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 632 u32 new_rx_count, new_tx_count; in iavf_set_ringparam() local 653 new_rx_count = ALIGN(ring->rx_pending, IAVF_REQ_DESCRIPTOR_MULTIPLE); in iavf_set_ringparam() 654 if (new_rx_count != ring->rx_pending) in iavf_set_ringparam() 656 new_rx_count); in iavf_set_ringparam() 660 (new_rx_count == adapter->rx_desc_count)) { in iavf_set_ringparam() 671 if (new_rx_count != adapter->rx_desc_count) { in iavf_set_ringparam() 673 adapter->rx_desc_count, new_rx_count); in iavf_set_ringparam() 674 adapter->rx_desc_count = new_rx_count; in iavf_set_ringparam()
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 890 u16 new_rx_count, new_tx_count; in igb_set_ringparam() local 895 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam() 896 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam() 897 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam() 904 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam() 916 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam() 918 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam() 966 if (new_rx_count != adapter->rx_ring_count) { in igb_set_ringparam() 971 temp_ring[i].count = new_rx_count; in igb_set_ringparam() 990 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam()
|
/linux-6.6.21/drivers/net/ |
D | veth.c | 1324 unsigned int old_rx_count, new_rx_count; in veth_set_channels() local 1343 new_rx_count = ch->rx_count; in veth_set_channels() 1351 err = veth_enable_range_safe(dev, old_rx_count, new_rx_count); in veth_set_channels() 1371 new_rx_count, old_rx_count, err2); in veth_set_channels() 1381 veth_disable_range_safe(dev, new_rx_count, old_rx_count); in veth_set_channels() 1395 new_rx_count = old_rx_count; in veth_set_channels()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1179 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local 1188 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam() 1190 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam() 1193 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam() 1207 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam() 1210 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam() 1280 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam() 1289 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam() 1308 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2056 u32 new_rx_count, new_tx_count; in i40e_set_ringparam() local 2076 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam() 2080 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam() 2101 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam() 2106 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam() 2157 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam() 2160 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam() 2173 rx_rings[i].count = new_rx_count; in i40e_set_ringparam() 2244 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam()
|