/Linux-v5.10/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 196 u32 new_rx_count, new_tx_count; in igbvf_set_ringparam() local 201 new_rx_count = max_t(u32, ring->rx_pending, IGBVF_MIN_RXD); in igbvf_set_ringparam() 202 new_rx_count = min_t(u32, new_rx_count, IGBVF_MAX_RXD); in igbvf_set_ringparam() 203 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igbvf_set_ringparam() 210 (new_rx_count == adapter->rx_ring->count)) { in igbvf_set_ringparam() 220 adapter->rx_ring->count = new_rx_count; in igbvf_set_ringparam() 249 if (new_rx_count != adapter->rx_ring->count) { in igbvf_set_ringparam() 252 temp_ring->count = new_rx_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 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-v5.10/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 610 u32 new_rx_count, new_tx_count; in iavf_set_ringparam() local 620 new_rx_count = clamp_t(u32, ring->rx_pending, in iavf_set_ringparam() 623 new_rx_count = ALIGN(new_rx_count, IAVF_REQ_DESCRIPTOR_MULTIPLE); in iavf_set_ringparam() 627 (new_rx_count == adapter->rx_desc_count)) in iavf_set_ringparam() 631 adapter->rx_desc_count = new_rx_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 533 new_rx_count = clamp_t(u32, ring->rx_pending, in fm10k_set_ringparam() 535 new_rx_count = ALIGN(new_rx_count, FM10K_REQ_RX_DESCRIPTOR_MULTIPLE); in fm10k_set_ringparam() 538 (new_rx_count == interface->rx_ring_count)) { in fm10k_set_ringparam() 550 interface->rx_ring[i]->count = new_rx_count; in fm10k_set_ringparam() 552 interface->rx_ring_count = new_rx_count; in fm10k_set_ringparam() 599 if (new_rx_count != interface->rx_ring_count) { in fm10k_set_ringparam() 604 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam() 622 interface->rx_ring_count = new_rx_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 574 new_rx_count = min_t(u32, ring->rx_pending, IGC_MAX_RXD); in igc_ethtool_set_ringparam() 575 new_rx_count = max_t(u16, new_rx_count, IGC_MIN_RXD); in igc_ethtool_set_ringparam() 576 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igc_ethtool_set_ringparam() 583 new_rx_count == adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 595 adapter->rx_ring[i]->count = new_rx_count; in igc_ethtool_set_ringparam() 597 adapter->rx_ring_count = new_rx_count; in igc_ethtool_set_ringparam() 645 if (new_rx_count != adapter->rx_ring_count) { in igc_ethtool_set_ringparam() 650 temp_ring[i].count = new_rx_count; in igc_ethtool_set_ringparam() 668 adapter->rx_ring_count = new_rx_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 673 new_rx_count = clamp_t(u32, ring->rx_pending, E1000_MIN_RXD, in e1000_set_ringparam() 675 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in e1000_set_ringparam() 682 (new_rx_count == adapter->rx_ring_count)) in e1000_set_ringparam() 692 adapter->rx_ring->count = new_rx_count; in e1000_set_ringparam() 694 adapter->rx_ring_count = new_rx_count; in e1000_set_ringparam() 699 set_rx = (new_rx_count != adapter->rx_ring_count); in e1000_set_ringparam() 734 temp_rx->count = new_rx_count; in e1000_set_ringparam() 749 adapter->rx_ring_count = new_rx_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 888 new_rx_count = min_t(u32, ring->rx_pending, IGB_MAX_RXD); in igb_set_ringparam() 889 new_rx_count = max_t(u16, new_rx_count, IGB_MIN_RXD); in igb_set_ringparam() 890 new_rx_count = ALIGN(new_rx_count, REQ_RX_DESCRIPTOR_MULTIPLE); in igb_set_ringparam() 897 (new_rx_count == adapter->rx_ring_count)) { in igb_set_ringparam() 909 adapter->rx_ring[i]->count = new_rx_count; in igb_set_ringparam() 911 adapter->rx_ring_count = new_rx_count; in igb_set_ringparam() 959 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-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1140 u32 new_rx_count, new_tx_count; in ixgbe_set_ringparam() local 1149 new_rx_count = clamp_t(u32, ring->rx_pending, in ixgbe_set_ringparam() 1151 new_rx_count = ALIGN(new_rx_count, IXGBE_REQ_RX_DESCRIPTOR_MULTIPLE); in ixgbe_set_ringparam() 1154 (new_rx_count == adapter->rx_ring_count)) { in ixgbe_set_ringparam() 1168 adapter->rx_ring[i]->count = new_rx_count; in ixgbe_set_ringparam() 1171 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam() 1241 if (new_rx_count != adapter->rx_ring_count) { in ixgbe_set_ringparam() 1250 temp_ring[i].count = new_rx_count; in ixgbe_set_ringparam() 1269 adapter->rx_ring_count = new_rx_count; in ixgbe_set_ringparam()
|
/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 1964 new_rx_count = ALIGN(ring->rx_pending, I40E_REQ_DESCRIPTOR_MULTIPLE); in i40e_set_ringparam() 1968 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam() 1989 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam() 1994 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam() 2045 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam() 2048 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam() 2061 rx_rings[i].count = new_rx_count; in i40e_set_ringparam() 2135 vsi->num_rx_desc = new_rx_count; in i40e_set_ringparam()
|