Searched refs:temp_ring (Results 1 - 9 of 9) sorted by relevance

/linux-master/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c21 struct wx_ring *temp_ring; local
47 temp_ring = kvmalloc_array(i, sizeof(struct wx_ring), GFP_KERNEL);
48 if (!temp_ring)
53 wx_set_ring(wx, new_tx_count, new_rx_count, temp_ring);
54 kvfree(temp_ring);
/linux-master/drivers/net/ethernet/wangxun/ngbe/
H A Dngbe_ethtool.c54 struct wx_ring *temp_ring; local
80 temp_ring = kvmalloc_array(i, sizeof(struct wx_ring), GFP_KERNEL);
81 if (!temp_ring)
86 wx_set_ring(wx, new_tx_count, new_rx_count, temp_ring);
87 kvfree(temp_ring);
/linux-master/drivers/net/ethernet/intel/igbvf/
H A Dethtool.c198 struct igbvf_ring *temp_ring; local
228 temp_ring = vmalloc(sizeof(struct igbvf_ring));
229 if (!temp_ring) {
241 memcpy(temp_ring, adapter->tx_ring, sizeof(struct igbvf_ring));
243 temp_ring->count = new_tx_count;
244 err = igbvf_setup_tx_resources(adapter, temp_ring);
250 memcpy(adapter->tx_ring, temp_ring, sizeof(struct igbvf_ring));
254 memcpy(temp_ring, adapter->rx_ring, sizeof(struct igbvf_ring));
256 temp_ring->count = new_rx_count;
257 err = igbvf_setup_rx_resources(adapter, temp_ring);
[all...]
/linux-master/drivers/net/ethernet/wangxun/libwx/
H A Dwx_lib.h34 u32 new_rx_count, struct wx_ring *temp_ring);
H A Dwx_lib.c2703 u32 new_rx_count, struct wx_ring *temp_ring)
2714 memcpy(&temp_ring[i], wx->tx_ring[i],
2717 temp_ring[i].count = new_tx_count;
2718 err = wx_setup_tx_resources(&temp_ring[i]);
2723 wx_free_tx_resources(&temp_ring[i]);
2732 memcpy(wx->tx_ring[i], &temp_ring[i],
2742 memcpy(&temp_ring[i], wx->rx_ring[i],
2745 temp_ring[i].count = new_rx_count;
2746 err = wx_setup_rx_resources(&temp_ring[i]);
2751 wx_free_rx_resources(&temp_ring[
2702 wx_set_ring(struct wx *wx, u32 new_tx_count, u32 new_rx_count, struct wx_ring *temp_ring) argument
[all...]
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_ethtool.c527 struct fm10k_ring *temp_ring; local
563 temp_ring = vmalloc(array_size(i, sizeof(struct fm10k_ring)));
565 if (!temp_ring) {
579 memcpy(&temp_ring[i], interface->tx_ring[i],
582 temp_ring[i].count = new_tx_count;
583 err = fm10k_setup_tx_resources(&temp_ring[i]);
587 fm10k_free_tx_resources(&temp_ring[i]);
596 memcpy(interface->tx_ring[i], &temp_ring[i],
606 memcpy(&temp_ring[i], interface->rx_ring[i],
609 temp_ring[
[all...]
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c592 struct igc_ring *temp_ring; local
627 temp_ring = vmalloc(array_size(sizeof(struct igc_ring),
630 temp_ring = vmalloc(array_size(sizeof(struct igc_ring),
633 if (!temp_ring) {
646 memcpy(&temp_ring[i], adapter->tx_ring[i],
649 temp_ring[i].count = new_tx_count;
650 err = igc_setup_tx_resources(&temp_ring[i]);
654 igc_free_tx_resources(&temp_ring[i]);
663 memcpy(adapter->tx_ring[i], &temp_ring[i],
672 memcpy(&temp_ring[
[all...]
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c1179 struct ixgbe_ring *temp_ring; local
1219 temp_ring = vmalloc(array_size(i, sizeof(struct ixgbe_ring)));
1221 if (!temp_ring) {
1236 memcpy(&temp_ring[i], adapter->tx_ring[i],
1239 temp_ring[i].count = new_tx_count;
1240 err = ixgbe_setup_tx_resources(&temp_ring[i]);
1244 ixgbe_free_tx_resources(&temp_ring[i]);
1251 memcpy(&temp_ring[i], adapter->xdp_ring[j],
1254 temp_ring[i].count = new_tx_count;
1255 err = ixgbe_setup_tx_resources(&temp_ring[
[all...]
/linux-master/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c888 struct igb_ring *temp_ring; local
923 temp_ring = vmalloc(array_size(sizeof(struct igb_ring),
926 temp_ring = vmalloc(array_size(sizeof(struct igb_ring),
929 if (!temp_ring) {
942 memcpy(&temp_ring[i], adapter->tx_ring[i],
945 temp_ring[i].count = new_tx_count;
946 err = igb_setup_tx_resources(&temp_ring[i]);
950 igb_free_tx_resources(&temp_ring[i]);
959 memcpy(adapter->tx_ring[i], &temp_ring[i],
968 memcpy(&temp_ring[
[all...]

Completed in 299 milliseconds