Lines Matching refs:hwstat
991 struct macb_stats *hwstat = &bp->hw_stats;
997 nstat->rx_errors = (hwstat->rx_fcs_errors +
998 hwstat->rx_align_errors +
999 hwstat->rx_resource_errors +
1000 hwstat->rx_overruns +
1001 hwstat->rx_oversize_pkts +
1002 hwstat->rx_jabbers +
1003 hwstat->rx_undersize_pkts +
1004 hwstat->sqe_test_errors +
1005 hwstat->rx_length_mismatch);
1006 nstat->tx_errors = (hwstat->tx_late_cols +
1007 hwstat->tx_excessive_cols +
1008 hwstat->tx_underruns +
1009 hwstat->tx_carrier_errors);
1010 nstat->collisions = (hwstat->tx_single_cols +
1011 hwstat->tx_multiple_cols +
1012 hwstat->tx_excessive_cols);
1013 nstat->rx_length_errors = (hwstat->rx_oversize_pkts +
1014 hwstat->rx_jabbers +
1015 hwstat->rx_undersize_pkts +
1016 hwstat->rx_length_mismatch);
1017 nstat->rx_over_errors = hwstat->rx_resource_errors;
1018 nstat->rx_crc_errors = hwstat->rx_fcs_errors;
1019 nstat->rx_frame_errors = hwstat->rx_align_errors;
1020 nstat->rx_fifo_errors = hwstat->rx_overruns;
1021 nstat->tx_aborted_errors = hwstat->tx_excessive_cols;
1022 nstat->tx_carrier_errors = hwstat->tx_carrier_errors;
1023 nstat->tx_fifo_errors = hwstat->tx_underruns;