Searched refs:temp_ring (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/intel/igbvf/ |
D | ethtool.c | 198 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-6.1.9/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_ethtool.c | 527 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-6.1.9/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 591 struct igc_ring *temp_ring; in igc_ethtool_set_ringparam() local 626 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam() 629 temp_ring = vmalloc(array_size(sizeof(struct igc_ring), in igc_ethtool_set_ringparam() 632 if (!temp_ring) { in igc_ethtool_set_ringparam() 645 memcpy(&temp_ring[i], adapter->tx_ring[i], in igc_ethtool_set_ringparam() 648 temp_ring[i].count = new_tx_count; in igc_ethtool_set_ringparam() 649 err = igc_setup_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam() 653 igc_free_tx_resources(&temp_ring[i]); in igc_ethtool_set_ringparam() 662 memcpy(adapter->tx_ring[i], &temp_ring[i], in igc_ethtool_set_ringparam() 671 memcpy(&temp_ring[i], adapter->rx_ring[i], in igc_ethtool_set_ringparam() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 1141 struct ixgbe_ring *temp_ring; in ixgbe_set_ringparam() local 1181 temp_ring = vmalloc(array_size(i, sizeof(struct ixgbe_ring))); in ixgbe_set_ringparam() 1183 if (!temp_ring) { in ixgbe_set_ringparam() 1198 memcpy(&temp_ring[i], adapter->tx_ring[i], in ixgbe_set_ringparam() 1201 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam() 1202 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() 1206 ixgbe_free_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() 1213 memcpy(&temp_ring[i], adapter->xdp_ring[j], in ixgbe_set_ringparam() 1216 temp_ring[i].count = new_tx_count; in ixgbe_set_ringparam() 1217 err = ixgbe_setup_tx_resources(&temp_ring[i]); in ixgbe_set_ringparam() [all …]
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 885 struct igb_ring *temp_ring; in igb_set_ringparam() local 920 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam() 923 temp_ring = vmalloc(array_size(sizeof(struct igb_ring), in igb_set_ringparam() 926 if (!temp_ring) { in igb_set_ringparam() 939 memcpy(&temp_ring[i], adapter->tx_ring[i], in igb_set_ringparam() 942 temp_ring[i].count = new_tx_count; in igb_set_ringparam() 943 err = igb_setup_tx_resources(&temp_ring[i]); in igb_set_ringparam() 947 igb_free_tx_resources(&temp_ring[i]); in igb_set_ringparam() 956 memcpy(adapter->tx_ring[i], &temp_ring[i], in igb_set_ringparam() 965 memcpy(&temp_ring[i], adapter->rx_ring[i], in igb_set_ringparam() [all …]
|