Lines Matching refs:hwstat

3073 	struct gem_stats *hwstat = &bp->hw_stats.gem;
3081 nstat->rx_errors = (hwstat->rx_frame_check_sequence_errors +
3082 hwstat->rx_alignment_errors +
3083 hwstat->rx_resource_errors +
3084 hwstat->rx_overruns +
3085 hwstat->rx_oversize_frames +
3086 hwstat->rx_jabbers +
3087 hwstat->rx_undersized_frames +
3088 hwstat->rx_length_field_frame_errors);
3089 nstat->tx_errors = (hwstat->tx_late_collisions +
3090 hwstat->tx_excessive_collisions +
3091 hwstat->tx_underrun +
3092 hwstat->tx_carrier_sense_errors);
3093 nstat->multicast = hwstat->rx_multicast_frames;
3094 nstat->collisions = (hwstat->tx_single_collision_frames +
3095 hwstat->tx_multiple_collision_frames +
3096 hwstat->tx_excessive_collisions);
3097 nstat->rx_length_errors = (hwstat->rx_oversize_frames +
3098 hwstat->rx_jabbers +
3099 hwstat->rx_undersized_frames +
3100 hwstat->rx_length_field_frame_errors);
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;
3164 struct macb_stats *hwstat = &bp->hw_stats.macb;
3173 nstat->rx_errors = (hwstat->rx_fcs_errors +
3174 hwstat->rx_align_errors +
3175 hwstat->rx_resource_errors +
3176 hwstat->rx_overruns +
3177 hwstat->rx_oversize_pkts +
3178 hwstat->rx_jabbers +
3179 hwstat->rx_undersize_pkts +
3180 hwstat->rx_length_mismatch);
3181 nstat->tx_errors = (hwstat->tx_late_cols +
3182 hwstat->tx_excessive_cols +
3183 hwstat->tx_underruns +
3184 hwstat->tx_carrier_errors +
3185 hwstat->sqe_test_errors);
3186 nstat->collisions = (hwstat->tx_single_cols +
3187 hwstat->tx_multiple_cols +
3188 hwstat->tx_excessive_cols);
3189 nstat->rx_length_errors = (hwstat->rx_oversize_pkts +
3190 hwstat->rx_jabbers +
3191 hwstat->rx_undersize_pkts +
3192 hwstat->rx_length_mismatch);
3193 nstat->rx_over_errors = hwstat->rx_resource_errors +
3194 hwstat->rx_overruns;
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;