Home
last modified time | relevance | path

Searched refs:temp_ring (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/intel/igbvf/
Dethtool.c198 struct igbvf_ring *temp_ring; in igbvf_set_ringparam() local
228 temp_ring = vmalloc(sizeof(struct igbvf_ring)); in igbvf_set_ringparam()
229 if (!temp_ring) { in igbvf_set_ringparam()
241 memcpy(temp_ring, adapter->tx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam()
243 temp_ring->count = new_tx_count; in igbvf_set_ringparam()
244 err = igbvf_setup_tx_resources(adapter, temp_ring); in igbvf_set_ringparam()
250 memcpy(adapter->tx_ring, temp_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam()
254 memcpy(temp_ring, adapter->rx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam()
256 temp_ring->count = new_rx_count; in igbvf_set_ringparam()
257 err = igbvf_setup_rx_resources(adapter, temp_ring); in igbvf_set_ringparam()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c527 struct fm10k_ring *temp_ring; in fm10k_set_ringparam() local
563 temp_ring = vmalloc(array_size(i, sizeof(struct fm10k_ring))); in fm10k_set_ringparam()
565 if (!temp_ring) { in fm10k_set_ringparam()
579 memcpy(&temp_ring[i], interface->tx_ring[i], in fm10k_set_ringparam()
582 temp_ring[i].count = new_tx_count; in fm10k_set_ringparam()
583 err = fm10k_setup_tx_resources(&temp_ring[i]); in fm10k_set_ringparam()
587 fm10k_free_tx_resources(&temp_ring[i]); in fm10k_set_ringparam()
596 memcpy(interface->tx_ring[i], &temp_ring[i], in fm10k_set_ringparam()
606 memcpy(&temp_ring[i], interface->rx_ring[i], in fm10k_set_ringparam()
609 temp_ring[i].count = new_rx_count; in fm10k_set_ringparam()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/igc/
Digc_ethtool.c592 struct igc_ring *temp_ring; in igc_ethtool_set_ringparam() local
627 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam()
630 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam()
633 if (!temp_ring) { in igc_ethtool_set_ringparam()
646 memcpy(&temp_ring[i], adapter->tx_ring[i], in igc_ethtool_set_ringparam()
649 temp_ring[i].count = new_tx_count; in igc_ethtool_set_ringparam()
650 err = igc_setup_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam()
654 igc_free_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam()
663 memcpy(adapter->tx_ring[i], &temp_ring[i], in igc_ethtool_set_ringparam()
672 memcpy(&temp_ring[i], adapter->rx_ring[i], in igc_ethtool_set_ringparam()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c1177 struct ixgbe_ring *temp_ring; in ixgbe_set_ringparam() local
1217 temp_ring = vmalloc(array_size(i, sizeof(struct ixgbe_ring))); in ixgbe_set_ringparam()
1219 if (!temp_ring) { in ixgbe_set_ringparam()
1234 memcpy(&temp_ring[i], adapter->tx_ring[i], in ixgbe_set_ringparam()
1237 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam()
1238 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1242 ixgbe_free_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
1249 memcpy(&temp_ring[i], adapter->xdp_ring[j], in ixgbe_set_ringparam()
1252 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam()
1253 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam()
[all …]
/Linux-v6.6/drivers/net/ethernet/intel/igb/
Digb_ethtool.c888 struct igb_ring *temp_ring; in igb_set_ringparam() local
923 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam()
926 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam()
929 if (!temp_ring) { in igb_set_ringparam()
942 memcpy(&temp_ring[i], adapter->tx_ring[i], in igb_set_ringparam()
945 temp_ring[i].count = new_tx_count; in igb_set_ringparam()
946 err = igb_setup_tx_resources(&temp_ring[i]); in igb_set_ringparam()
950 igb_free_tx_resources(&temp_ring[i]); in igb_set_ringparam()
959 memcpy(adapter->tx_ring[i], &temp_ring[i], in igb_set_ringparam()
968 memcpy(&temp_ring[i], adapter->rx_ring[i], in igb_set_ringparam()
[all …]