Lines Matching refs:pstats
297 const struct cmac_statistics *pstats; in t1_get_stats() local
300 pstats = p->mac->ops->statistics_update(p->mac, in t1_get_stats()
303 ns->tx_packets = pstats->TxUnicastFramesOK + in t1_get_stats()
304 pstats->TxMulticastFramesOK + pstats->TxBroadcastFramesOK; in t1_get_stats()
306 ns->rx_packets = pstats->RxUnicastFramesOK + in t1_get_stats()
307 pstats->RxMulticastFramesOK + pstats->RxBroadcastFramesOK; in t1_get_stats()
309 ns->tx_bytes = pstats->TxOctetsOK; in t1_get_stats()
310 ns->rx_bytes = pstats->RxOctetsOK; in t1_get_stats()
312 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors + in t1_get_stats()
313 pstats->TxUnderrun + pstats->TxFramesAbortedDueToXSCollisions; in t1_get_stats()
314 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors + in t1_get_stats()
315 pstats->RxFCSErrors + pstats->RxAlignErrors + in t1_get_stats()
316 pstats->RxSequenceErrors + pstats->RxFrameTooLongErrors + in t1_get_stats()
317 pstats->RxSymbolErrors + pstats->RxRuntErrors; in t1_get_stats()
319 ns->multicast = pstats->RxMulticastFramesOK; in t1_get_stats()
320 ns->collisions = pstats->TxTotalCollisions; in t1_get_stats()
323 ns->rx_length_errors = pstats->RxFrameTooLongErrors + in t1_get_stats()
324 pstats->RxJabberErrors; in t1_get_stats()
326 ns->rx_crc_errors = pstats->RxFCSErrors; in t1_get_stats()
327 ns->rx_frame_errors = pstats->RxAlignErrors; in t1_get_stats()
332 ns->tx_aborted_errors = pstats->TxFramesAbortedDueToXSCollisions; in t1_get_stats()
334 ns->tx_fifo_errors = pstats->TxUnderrun; in t1_get_stats()
336 ns->tx_window_errors = pstats->TxLateCollisions; in t1_get_stats()