Lines Matching refs:ns
299 struct net_device_stats *ns = &p->netstats; in t1_get_stats() local
306 ns->tx_packets = pstats->TxUnicastFramesOK + in t1_get_stats()
309 ns->rx_packets = pstats->RxUnicastFramesOK + in t1_get_stats()
312 ns->tx_bytes = pstats->TxOctetsOK; in t1_get_stats()
313 ns->rx_bytes = pstats->RxOctetsOK; in t1_get_stats()
315 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors + in t1_get_stats()
317 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors + in t1_get_stats()
322 ns->multicast = pstats->RxMulticastFramesOK; in t1_get_stats()
323 ns->collisions = pstats->TxTotalCollisions; in t1_get_stats()
326 ns->rx_length_errors = pstats->RxFrameTooLongErrors + in t1_get_stats()
328 ns->rx_over_errors = 0; in t1_get_stats()
329 ns->rx_crc_errors = pstats->RxFCSErrors; in t1_get_stats()
330 ns->rx_frame_errors = pstats->RxAlignErrors; in t1_get_stats()
331 ns->rx_fifo_errors = 0; in t1_get_stats()
332 ns->rx_missed_errors = 0; in t1_get_stats()
335 ns->tx_aborted_errors = pstats->TxFramesAbortedDueToXSCollisions; in t1_get_stats()
336 ns->tx_carrier_errors = 0; in t1_get_stats()
337 ns->tx_fifo_errors = pstats->TxUnderrun; in t1_get_stats()
338 ns->tx_heartbeat_errors = 0; in t1_get_stats()
339 ns->tx_window_errors = pstats->TxLateCollisions; in t1_get_stats()
340 return ns; in t1_get_stats()