Lines Matching refs:pstats
296 const struct cmac_statistics *pstats;
299 pstats = p->mac->ops->statistics_update(p->mac,
302 ns->tx_packets = pstats->TxUnicastFramesOK +
303 pstats->TxMulticastFramesOK + pstats->TxBroadcastFramesOK;
305 ns->rx_packets = pstats->RxUnicastFramesOK +
306 pstats->RxMulticastFramesOK + pstats->RxBroadcastFramesOK;
308 ns->tx_bytes = pstats->TxOctetsOK;
309 ns->rx_bytes = pstats->RxOctetsOK;
311 ns->tx_errors = pstats->TxLateCollisions + pstats->TxLengthErrors +
312 pstats->TxUnderrun + pstats->TxFramesAbortedDueToXSCollisions;
313 ns->rx_errors = pstats->RxDataErrors + pstats->RxJabberErrors +
314 pstats->RxFCSErrors + pstats->RxAlignErrors +
315 pstats->RxSequenceErrors + pstats->RxFrameTooLongErrors +
316 pstats->RxSymbolErrors + pstats->RxRuntErrors;
318 ns->multicast = pstats->RxMulticastFramesOK;
319 ns->collisions = pstats->TxTotalCollisions;
322 ns->rx_length_errors = pstats->RxFrameTooLongErrors +
323 pstats->RxJabberErrors;
325 ns->rx_crc_errors = pstats->RxFCSErrors;
326 ns->rx_frame_errors = pstats->RxAlignErrors;
331 ns->tx_aborted_errors = pstats->TxFramesAbortedDueToXSCollisions;
333 ns->tx_fifo_errors = pstats->TxUnderrun;
335 ns->tx_window_errors = pstats->TxLateCollisions;