Searched refs:temp_ring (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/net/igbvf/ |
D | ethtool.c | 274 struct igbvf_ring *temp_ring; in igbvf_set_ringparam() local 304 temp_ring = vmalloc(sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 305 if (!temp_ring) { in igbvf_set_ringparam() 318 memcpy(temp_ring, adapter->tx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 320 temp_ring->count = new_tx_count; in igbvf_set_ringparam() 321 err = igbvf_setup_tx_resources(adapter, temp_ring); in igbvf_set_ringparam() 327 memcpy(adapter->tx_ring, temp_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 331 memcpy(temp_ring, adapter->rx_ring, sizeof(struct igbvf_ring)); in igbvf_set_ringparam() 333 temp_ring->count = new_rx_count; in igbvf_set_ringparam() 334 err = igbvf_setup_rx_resources(adapter, temp_ring); in igbvf_set_ringparam() [all …]
|
/linux-2.6.39/drivers/net/igb/ |
D | igb_ethtool.c | 778 struct igb_ring *temp_ring; in igb_set_ringparam() local 813 temp_ring = vmalloc(adapter->num_tx_queues * sizeof(struct igb_ring)); in igb_set_ringparam() 815 temp_ring = vmalloc(adapter->num_rx_queues * sizeof(struct igb_ring)); in igb_set_ringparam() 817 if (!temp_ring) { in igb_set_ringparam() 831 memcpy(&temp_ring[i], adapter->tx_ring[i], in igb_set_ringparam() 834 temp_ring[i].count = new_tx_count; in igb_set_ringparam() 835 err = igb_setup_tx_resources(&temp_ring[i]); in igb_set_ringparam() 839 igb_free_tx_resources(&temp_ring[i]); in igb_set_ringparam() 848 memcpy(adapter->tx_ring[i], &temp_ring[i], in igb_set_ringparam() 857 memcpy(&temp_ring[i], adapter->rx_ring[i], in igb_set_ringparam() [all …]
|