Lines Matching refs:nstats
2090 struct net_device_stats *nstats, *stats0, *stats1;
2092 nstats = &ndev->stats;
2096 nstats->tx_dropped += ravb_read(ndev, TROCR);
2101 nstats->collisions += ravb_read(ndev, CXR41);
2103 nstats->tx_carrier_errors += ravb_read(ndev, CXR42);
2107 nstats->rx_packets = stats0->rx_packets;
2108 nstats->tx_packets = stats0->tx_packets;
2109 nstats->rx_bytes = stats0->rx_bytes;
2110 nstats->tx_bytes = stats0->tx_bytes;
2111 nstats->multicast = stats0->multicast;
2112 nstats->rx_errors = stats0->rx_errors;
2113 nstats->rx_crc_errors = stats0->rx_crc_errors;
2114 nstats->rx_frame_errors = stats0->rx_frame_errors;
2115 nstats->rx_length_errors = stats0->rx_length_errors;
2116 nstats->rx_missed_errors = stats0->rx_missed_errors;
2117 nstats->rx_over_errors = stats0->rx_over_errors;
2121 nstats->rx_packets += stats1->rx_packets;
2122 nstats->tx_packets += stats1->tx_packets;
2123 nstats->rx_bytes += stats1->rx_bytes;
2124 nstats->tx_bytes += stats1->tx_bytes;
2125 nstats->multicast += stats1->multicast;
2126 nstats->rx_errors += stats1->rx_errors;
2127 nstats->rx_crc_errors += stats1->rx_crc_errors;
2128 nstats->rx_frame_errors += stats1->rx_frame_errors;
2129 nstats->rx_length_errors += stats1->rx_length_errors;
2130 nstats->rx_missed_errors += stats1->rx_missed_errors;
2131 nstats->rx_over_errors += stats1->rx_over_errors;
2134 return nstats;