Lines Matching refs:nstat
2738 struct net_device_stats *nstat = &bp->dev->stats;
2741 return nstat;
2745 nstat->rx_errors = (hwstat->rx_frame_check_sequence_errors +
2753 nstat->tx_errors = (hwstat->tx_late_collisions +
2757 nstat->multicast = hwstat->rx_multicast_frames;
2758 nstat->collisions = (hwstat->tx_single_collision_frames +
2761 nstat->rx_length_errors = (hwstat->rx_oversize_frames +
2765 nstat->rx_over_errors = hwstat->rx_resource_errors;
2766 nstat->rx_crc_errors = hwstat->rx_frame_check_sequence_errors;
2767 nstat->rx_frame_errors = hwstat->rx_alignment_errors;
2768 nstat->rx_fifo_errors = hwstat->rx_overruns;
2769 nstat->tx_aborted_errors = hwstat->tx_excessive_collisions;
2770 nstat->tx_carrier_errors = hwstat->tx_carrier_sense_errors;
2771 nstat->tx_fifo_errors = hwstat->tx_underrun;
2773 return nstat;
2827 struct net_device_stats *nstat = &bp->dev->stats;
2837 nstat->rx_errors = (hwstat->rx_fcs_errors +
2845 nstat->tx_errors = (hwstat->tx_late_cols +
2850 nstat->collisions = (hwstat->tx_single_cols +
2853 nstat->rx_length_errors = (hwstat->rx_oversize_pkts +
2857 nstat->rx_over_errors = hwstat->rx_resource_errors +
2859 nstat->rx_crc_errors = hwstat->rx_fcs_errors;
2860 nstat->rx_frame_errors = hwstat->rx_align_errors;
2861 nstat->rx_fifo_errors = hwstat->rx_overruns;
2863 nstat->tx_aborted_errors = hwstat->tx_excessive_cols;
2864 nstat->tx_carrier_errors = hwstat->tx_carrier_errors;
2865 nstat->tx_fifo_errors = hwstat->tx_underruns;
2868 return nstat;