Lines Matching refs:hwstat
2737 struct gem_stats *hwstat = &bp->hw_stats.gem;
2745 nstat->rx_errors = (hwstat->rx_frame_check_sequence_errors +
2746 hwstat->rx_alignment_errors +
2747 hwstat->rx_resource_errors +
2748 hwstat->rx_overruns +
2749 hwstat->rx_oversize_frames +
2750 hwstat->rx_jabbers +
2751 hwstat->rx_undersized_frames +
2752 hwstat->rx_length_field_frame_errors);
2753 nstat->tx_errors = (hwstat->tx_late_collisions +
2754 hwstat->tx_excessive_collisions +
2755 hwstat->tx_underrun +
2756 hwstat->tx_carrier_sense_errors);
2757 nstat->multicast = hwstat->rx_multicast_frames;
2758 nstat->collisions = (hwstat->tx_single_collision_frames +
2759 hwstat->tx_multiple_collision_frames +
2760 hwstat->tx_excessive_collisions);
2761 nstat->rx_length_errors = (hwstat->rx_oversize_frames +
2762 hwstat->rx_jabbers +
2763 hwstat->rx_undersized_frames +
2764 hwstat->rx_length_field_frame_errors);
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;
2828 struct macb_stats *hwstat = &bp->hw_stats.macb;
2837 nstat->rx_errors = (hwstat->rx_fcs_errors +
2838 hwstat->rx_align_errors +
2839 hwstat->rx_resource_errors +
2840 hwstat->rx_overruns +
2841 hwstat->rx_oversize_pkts +
2842 hwstat->rx_jabbers +
2843 hwstat->rx_undersize_pkts +
2844 hwstat->rx_length_mismatch);
2845 nstat->tx_errors = (hwstat->tx_late_cols +
2846 hwstat->tx_excessive_cols +
2847 hwstat->tx_underruns +
2848 hwstat->tx_carrier_errors +
2849 hwstat->sqe_test_errors);
2850 nstat->collisions = (hwstat->tx_single_cols +
2851 hwstat->tx_multiple_cols +
2852 hwstat->tx_excessive_cols);
2853 nstat->rx_length_errors = (hwstat->rx_oversize_pkts +
2854 hwstat->rx_jabbers +
2855 hwstat->rx_undersize_pkts +
2856 hwstat->rx_length_mismatch);
2857 nstat->rx_over_errors = hwstat->rx_resource_errors +
2858 hwstat->rx_overruns;
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;