Lines Matching refs:nstat
3074 struct net_device_stats *nstat = &bp->dev->stats;
3077 return nstat;
3081 nstat->rx_errors = (hwstat->rx_frame_check_sequence_errors +
3089 nstat->tx_errors = (hwstat->tx_late_collisions +
3093 nstat->multicast = hwstat->rx_multicast_frames;
3094 nstat->collisions = (hwstat->tx_single_collision_frames +
3097 nstat->rx_length_errors = (hwstat->rx_oversize_frames +
3101 nstat->rx_over_errors = hwstat->rx_resource_errors;
3102 nstat->rx_crc_errors = hwstat->rx_frame_check_sequence_errors;
3103 nstat->rx_frame_errors = hwstat->rx_alignment_errors;
3104 nstat->rx_fifo_errors = hwstat->rx_overruns;
3105 nstat->tx_aborted_errors = hwstat->tx_excessive_collisions;
3106 nstat->tx_carrier_errors = hwstat->tx_carrier_sense_errors;
3107 nstat->tx_fifo_errors = hwstat->tx_underrun;
3109 return nstat;
3163 struct net_device_stats *nstat = &bp->dev->stats;
3173 nstat->rx_errors = (hwstat->rx_fcs_errors +
3181 nstat->tx_errors = (hwstat->tx_late_cols +
3186 nstat->collisions = (hwstat->tx_single_cols +
3189 nstat->rx_length_errors = (hwstat->rx_oversize_pkts +
3193 nstat->rx_over_errors = hwstat->rx_resource_errors +
3195 nstat->rx_crc_errors = hwstat->rx_fcs_errors;
3196 nstat->rx_frame_errors = hwstat->rx_align_errors;
3197 nstat->rx_fifo_errors = hwstat->rx_overruns;
3199 nstat->tx_aborted_errors = hwstat->tx_excessive_cols;
3200 nstat->tx_carrier_errors = hwstat->tx_carrier_errors;
3201 nstat->tx_fifo_errors = hwstat->tx_underruns;
3204 return nstat;