Lines Matching refs:mac_stats
688 struct ethtool_eth_mac_stats *mac_stats = priv; in ocelot_port_mac_stats_cb() local
690 mac_stats->OctetsTransmittedOK = s[OCELOT_STAT_TX_OCTETS]; in ocelot_port_mac_stats_cb()
691 mac_stats->FramesTransmittedOK = s[OCELOT_STAT_TX_64] + in ocelot_port_mac_stats_cb()
698 mac_stats->OctetsReceivedOK = s[OCELOT_STAT_RX_OCTETS]; in ocelot_port_mac_stats_cb()
699 mac_stats->FramesReceivedOK = s[OCELOT_STAT_RX_GREEN_PRIO_0] + in ocelot_port_mac_stats_cb()
715 mac_stats->MulticastFramesXmittedOK = s[OCELOT_STAT_TX_MULTICAST]; in ocelot_port_mac_stats_cb()
716 mac_stats->BroadcastFramesXmittedOK = s[OCELOT_STAT_TX_BROADCAST]; in ocelot_port_mac_stats_cb()
717 mac_stats->MulticastFramesReceivedOK = s[OCELOT_STAT_RX_MULTICAST]; in ocelot_port_mac_stats_cb()
718 mac_stats->BroadcastFramesReceivedOK = s[OCELOT_STAT_RX_BROADCAST]; in ocelot_port_mac_stats_cb()
719 mac_stats->FrameTooLongErrors = s[OCELOT_STAT_RX_LONGS]; in ocelot_port_mac_stats_cb()
723 mac_stats->FrameCheckSequenceErrors = s[OCELOT_STAT_RX_CRC_ALIGN_ERRS]; in ocelot_port_mac_stats_cb()
724 mac_stats->AlignmentErrors = s[OCELOT_STAT_RX_CRC_ALIGN_ERRS]; in ocelot_port_mac_stats_cb()
731 struct ethtool_eth_mac_stats *mac_stats = priv; in ocelot_port_pmac_mac_stats_cb() local
733 mac_stats->OctetsTransmittedOK = s[OCELOT_STAT_TX_PMAC_OCTETS]; in ocelot_port_pmac_mac_stats_cb()
734 mac_stats->FramesTransmittedOK = s[OCELOT_STAT_TX_PMAC_64] + in ocelot_port_pmac_mac_stats_cb()
741 mac_stats->OctetsReceivedOK = s[OCELOT_STAT_RX_PMAC_OCTETS]; in ocelot_port_pmac_mac_stats_cb()
742 mac_stats->FramesReceivedOK = s[OCELOT_STAT_RX_PMAC_64] + in ocelot_port_pmac_mac_stats_cb()
749 mac_stats->MulticastFramesXmittedOK = s[OCELOT_STAT_TX_PMAC_MULTICAST]; in ocelot_port_pmac_mac_stats_cb()
750 mac_stats->BroadcastFramesXmittedOK = s[OCELOT_STAT_TX_PMAC_BROADCAST]; in ocelot_port_pmac_mac_stats_cb()
751 mac_stats->MulticastFramesReceivedOK = s[OCELOT_STAT_RX_PMAC_MULTICAST]; in ocelot_port_pmac_mac_stats_cb()
752 mac_stats->BroadcastFramesReceivedOK = s[OCELOT_STAT_RX_PMAC_BROADCAST]; in ocelot_port_pmac_mac_stats_cb()
753 mac_stats->FrameTooLongErrors = s[OCELOT_STAT_RX_PMAC_LONGS]; in ocelot_port_pmac_mac_stats_cb()
757 mac_stats->FrameCheckSequenceErrors = s[OCELOT_STAT_RX_PMAC_CRC_ALIGN_ERRS]; in ocelot_port_pmac_mac_stats_cb()
758 mac_stats->AlignmentErrors = s[OCELOT_STAT_RX_PMAC_CRC_ALIGN_ERRS]; in ocelot_port_pmac_mac_stats_cb()
762 struct ethtool_eth_mac_stats *mac_stats) in ocelot_port_get_eth_mac_stats() argument
766 switch (mac_stats->src) { in ocelot_port_get_eth_mac_stats()
768 ocelot_port_stats_run(ocelot, port, mac_stats, in ocelot_port_get_eth_mac_stats()
773 ocelot_port_stats_run(ocelot, port, mac_stats, in ocelot_port_get_eth_mac_stats()
778 ethtool_aggregate_mac_stats(dev, mac_stats); in ocelot_port_get_eth_mac_stats()