Lines Matching refs:nstats

2249 	struct net_device_stats *nstats, *stats0, *stats1;  in ravb_get_stats()  local
2252 nstats = &ndev->stats; in ravb_get_stats()
2262 nstats->tx_dropped += ravb_read(ndev, TROCR); in ravb_get_stats()
2267 nstats->collisions += ravb_read(ndev, CXR41); in ravb_get_stats()
2269 nstats->tx_carrier_errors += ravb_read(ndev, CXR42); in ravb_get_stats()
2273 nstats->rx_packets = stats0->rx_packets; in ravb_get_stats()
2274 nstats->tx_packets = stats0->tx_packets; in ravb_get_stats()
2275 nstats->rx_bytes = stats0->rx_bytes; in ravb_get_stats()
2276 nstats->tx_bytes = stats0->tx_bytes; in ravb_get_stats()
2277 nstats->multicast = stats0->multicast; in ravb_get_stats()
2278 nstats->rx_errors = stats0->rx_errors; in ravb_get_stats()
2279 nstats->rx_crc_errors = stats0->rx_crc_errors; in ravb_get_stats()
2280 nstats->rx_frame_errors = stats0->rx_frame_errors; in ravb_get_stats()
2281 nstats->rx_length_errors = stats0->rx_length_errors; in ravb_get_stats()
2282 nstats->rx_missed_errors = stats0->rx_missed_errors; in ravb_get_stats()
2283 nstats->rx_over_errors = stats0->rx_over_errors; in ravb_get_stats()
2287 nstats->rx_packets += stats1->rx_packets; in ravb_get_stats()
2288 nstats->tx_packets += stats1->tx_packets; in ravb_get_stats()
2289 nstats->rx_bytes += stats1->rx_bytes; in ravb_get_stats()
2290 nstats->tx_bytes += stats1->tx_bytes; in ravb_get_stats()
2291 nstats->multicast += stats1->multicast; in ravb_get_stats()
2292 nstats->rx_errors += stats1->rx_errors; in ravb_get_stats()
2293 nstats->rx_crc_errors += stats1->rx_crc_errors; in ravb_get_stats()
2294 nstats->rx_frame_errors += stats1->rx_frame_errors; in ravb_get_stats()
2295 nstats->rx_length_errors += stats1->rx_length_errors; in ravb_get_stats()
2296 nstats->rx_missed_errors += stats1->rx_missed_errors; in ravb_get_stats()
2297 nstats->rx_over_errors += stats1->rx_over_errors; in ravb_get_stats()
2302 return nstats; in ravb_get_stats()