Home
last modified time | relevance | path

Searched refs:mac_stats (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.6/net/ethtool/
Dstats.c20 struct ethtool_eth_mac_stats mac_stats;
144 data->mac_stats.src = src; in stats_prepare_data()
153 dev->ethtool_ops->get_eth_mac_stats(dev, &data->mac_stats); in stats_prepare_data()
254 data->mac_stats.FramesTransmittedOK) || in stats_put_mac_stats()
256 data->mac_stats.SingleCollisionFrames) || in stats_put_mac_stats()
258 data->mac_stats.MultipleCollisionFrames) || in stats_put_mac_stats()
260 data->mac_stats.FramesReceivedOK) || in stats_put_mac_stats()
262 data->mac_stats.FrameCheckSequenceErrors) || in stats_put_mac_stats()
264 data->mac_stats.AlignmentErrors) || in stats_put_mac_stats()
266 data->mac_stats.OctetsTransmittedOK) || in stats_put_mac_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/asp2/
Dbcmasp_ethtool.c411 struct ethtool_eth_mac_stats *mac_stats) in bcmasp_get_eth_mac_stats() argument
415 mac_stats->FramesTransmittedOK = umac_rl(intf, UMC_GTPOK); in bcmasp_get_eth_mac_stats()
416 mac_stats->SingleCollisionFrames = umac_rl(intf, UMC_GTSCL); in bcmasp_get_eth_mac_stats()
417 mac_stats->MultipleCollisionFrames = umac_rl(intf, UMC_GTMCL); in bcmasp_get_eth_mac_stats()
418 mac_stats->FramesReceivedOK = umac_rl(intf, UMC_GRPOK); in bcmasp_get_eth_mac_stats()
419 mac_stats->FrameCheckSequenceErrors = umac_rl(intf, UMC_GRFCS); in bcmasp_get_eth_mac_stats()
420 mac_stats->AlignmentErrors = umac_rl(intf, UMC_GRALN); in bcmasp_get_eth_mac_stats()
421 mac_stats->OctetsTransmittedOK = umac_rl(intf, UMC_GTBYT); in bcmasp_get_eth_mac_stats()
422 mac_stats->FramesWithDeferredXmissions = umac_rl(intf, UMC_GTDRF); in bcmasp_get_eth_mac_stats()
423 mac_stats->LateCollisions = umac_rl(intf, UMC_GTLCL); in bcmasp_get_eth_mac_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/mscc/
Docelot_stats.c688 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()
[all …]
/Linux-v6.6/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ethtool.c358 struct ethtool_eth_mac_stats *mac_stats) in lan966x_get_eth_mac_stats() argument
370 mac_stats->FramesTransmittedOK = in lan966x_get_eth_mac_stats()
377 mac_stats->SingleCollisionFrames = in lan966x_get_eth_mac_stats()
379 mac_stats->MultipleCollisionFrames = 0; in lan966x_get_eth_mac_stats()
380 mac_stats->FramesReceivedOK = in lan966x_get_eth_mac_stats()
384 mac_stats->FrameCheckSequenceErrors = in lan966x_get_eth_mac_stats()
387 mac_stats->AlignmentErrors = 0; in lan966x_get_eth_mac_stats()
388 mac_stats->OctetsTransmittedOK = in lan966x_get_eth_mac_stats()
391 mac_stats->FramesWithDeferredXmissions = in lan966x_get_eth_mac_stats()
393 mac_stats->LateCollisions = 0; in lan966x_get_eth_mac_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c1259 struct qlcnic_mac_statistics *mac_stats = in qlcnic_fill_stats() local
1261 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_frames); in qlcnic_fill_stats()
1262 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_bytes); in qlcnic_fill_stats()
1263 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_mcast_pkts); in qlcnic_fill_stats()
1264 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_bcast_pkts); in qlcnic_fill_stats()
1265 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_pause_cnt); in qlcnic_fill_stats()
1266 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_ctrl_pkt); in qlcnic_fill_stats()
1267 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_lt_64b_pkts); in qlcnic_fill_stats()
1268 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_lt_127b_pkts); in qlcnic_fill_stats()
1269 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_lt_255b_pkts); in qlcnic_fill_stats()
[all …]
Dqlcnic_ctx.c1130 struct qlcnic_mac_statistics *mac_stats) in qlcnic_get_mac_stats() argument
1139 if (mac_stats == NULL) in qlcnic_get_mac_stats()
1157 mac_stats->mac_tx_frames = le64_to_cpu(stats->mac_tx_frames); in qlcnic_get_mac_stats()
1158 mac_stats->mac_tx_bytes = le64_to_cpu(stats->mac_tx_bytes); in qlcnic_get_mac_stats()
1159 mac_stats->mac_tx_mcast_pkts = in qlcnic_get_mac_stats()
1161 mac_stats->mac_tx_bcast_pkts = in qlcnic_get_mac_stats()
1163 mac_stats->mac_rx_frames = le64_to_cpu(stats->mac_rx_frames); in qlcnic_get_mac_stats()
1164 mac_stats->mac_rx_bytes = le64_to_cpu(stats->mac_rx_bytes); in qlcnic_get_mac_stats()
1165 mac_stats->mac_rx_mcast_pkts = in qlcnic_get_mac_stats()
1167 mac_stats->mac_rx_length_error = in qlcnic_get_mac_stats()
[all …]
/Linux-v6.6/drivers/net/dsa/
Drzn1_a5psw.c820 struct ethtool_eth_mac_stats *mac_stats) in a5psw_get_eth_mac_stats() argument
825 mac_stats->FramesTransmittedOK = RD(aFramesTransmittedOK); in a5psw_get_eth_mac_stats()
826 mac_stats->SingleCollisionFrames = RD(aSingleCollisions); in a5psw_get_eth_mac_stats()
827 mac_stats->MultipleCollisionFrames = RD(aMultipleCollisions); in a5psw_get_eth_mac_stats()
828 mac_stats->FramesReceivedOK = RD(aFramesReceivedOK); in a5psw_get_eth_mac_stats()
829 mac_stats->FrameCheckSequenceErrors = RD(aFrameCheckSequenceErrors); in a5psw_get_eth_mac_stats()
830 mac_stats->AlignmentErrors = RD(aAlignmentErrors); in a5psw_get_eth_mac_stats()
831 mac_stats->OctetsTransmittedOK = RD(aOctetsTransmittedOK); in a5psw_get_eth_mac_stats()
832 mac_stats->FramesWithDeferredXmissions = RD(aDeferred); in a5psw_get_eth_mac_stats()
833 mac_stats->LateCollisions = RD(aLateCollisions); in a5psw_get_eth_mac_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ethtool.c837 struct ethtool_eth_mac_stats *mac_stats) in sparx5_get_eth_mac_stats() argument
856 mac_stats->FramesTransmittedOK = portstats[spx5_stats_tx_uc_cnt] + in sparx5_get_eth_mac_stats()
860 mac_stats->SingleCollisionFrames = in sparx5_get_eth_mac_stats()
862 mac_stats->MultipleCollisionFrames = in sparx5_get_eth_mac_stats()
864 mac_stats->FramesReceivedOK = portstats[spx5_stats_rx_uc_cnt] + in sparx5_get_eth_mac_stats()
868 mac_stats->FrameCheckSequenceErrors = in sparx5_get_eth_mac_stats()
871 mac_stats->AlignmentErrors = portstats[spx5_stats_rx_alignment_lost_cnt] in sparx5_get_eth_mac_stats()
873 mac_stats->OctetsTransmittedOK = portstats[spx5_stats_tx_ok_bytes_cnt] + in sparx5_get_eth_mac_stats()
875 mac_stats->FramesWithDeferredXmissions = in sparx5_get_eth_mac_stats()
877 mac_stats->LateCollisions = in sparx5_get_eth_mac_stats()
[all …]
/Linux-v6.6/drivers/net/dsa/realtek/
Drtl8365mb.c1336 struct ethtool_eth_mac_stats *mac_stats) in rtl8365mb_get_mac_stats() argument
1386 mac_stats->FramesTransmittedOK = cnt[RTL8365MB_MIB_ifOutUcastPkts] + in rtl8365mb_get_mac_stats()
1391 mac_stats->SingleCollisionFrames = in rtl8365mb_get_mac_stats()
1393 mac_stats->MultipleCollisionFrames = in rtl8365mb_get_mac_stats()
1395 mac_stats->FramesReceivedOK = cnt[RTL8365MB_MIB_ifInUcastPkts] + in rtl8365mb_get_mac_stats()
1399 mac_stats->FrameCheckSequenceErrors = in rtl8365mb_get_mac_stats()
1401 mac_stats->OctetsTransmittedOK = cnt[RTL8365MB_MIB_ifOutOctets] - in rtl8365mb_get_mac_stats()
1402 18 * mac_stats->FramesTransmittedOK; in rtl8365mb_get_mac_stats()
1403 mac_stats->FramesWithDeferredXmissions = in rtl8365mb_get_mac_stats()
1405 mac_stats->LateCollisions = cnt[RTL8365MB_MIB_dot3StatsLateCollisions]; in rtl8365mb_get_mac_stats()
[all …]
/Linux-v6.6/include/linux/
Dethtool_netlink.h33 struct ethtool_eth_mac_stats *mac_stats);
88 struct ethtool_eth_mac_stats *mac_stats) in ethtool_aggregate_mac_stats() argument
Dethtool.h899 struct ethtool_eth_mac_stats *mac_stats);
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c1095 struct ethtool_eth_mac_stats *mac_stats) in mlxsw_sp_get_eth_mac_stats() argument
1103 mac_stats->FramesTransmittedOK = in mlxsw_sp_get_eth_mac_stats()
1105 mac_stats->FramesReceivedOK = in mlxsw_sp_get_eth_mac_stats()
1107 mac_stats->FrameCheckSequenceErrors = in mlxsw_sp_get_eth_mac_stats()
1109 mac_stats->AlignmentErrors = in mlxsw_sp_get_eth_mac_stats()
1111 mac_stats->OctetsTransmittedOK = in mlxsw_sp_get_eth_mac_stats()
1113 mac_stats->OctetsReceivedOK = in mlxsw_sp_get_eth_mac_stats()
1115 mac_stats->MulticastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats()
1117 mac_stats->BroadcastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats()
1119 mac_stats->MulticastFramesReceivedOK = in mlxsw_sp_get_eth_mac_stats()
[all …]
/Linux-v6.6/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c330 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats)); in bnx2x_port_stats_init()
331 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats)); in bnx2x_port_stats_init()
343 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats) + in bnx2x_port_stats_init()
345 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats) + in bnx2x_port_stats_init()
358 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats) + in bnx2x_port_stats_init()
360 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats) + in bnx2x_port_stats_init()
408 mac_stats.mstat_stats.stats_tx) >> 2; in bnx2x_port_stats_init()
410 mac_stats.mstat_stats.stats_rx) >> 2; in bnx2x_port_stats_init()
420 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, mac_stats)); in bnx2x_port_stats_init()
421 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, mac_stats)); in bnx2x_port_stats_init()
[all …]
/Linux-v6.6/drivers/net/ethernet/brocade/bna/
Dbnad.c2426 struct bfi_enet_stats_mac *mac_stats; in bnad_netdev_hwstats_fill() local
2430 mac_stats = &bnad->stats.bna_stats->hw_stats.mac_stats; in bnad_netdev_hwstats_fill()
2432 mac_stats->rx_fcs_error + mac_stats->rx_alignment_error + in bnad_netdev_hwstats_fill()
2433 mac_stats->rx_frame_length_error + mac_stats->rx_code_error + in bnad_netdev_hwstats_fill()
2434 mac_stats->rx_undersize; in bnad_netdev_hwstats_fill()
2435 stats->tx_errors = mac_stats->tx_fcs_error + in bnad_netdev_hwstats_fill()
2436 mac_stats->tx_undersize; in bnad_netdev_hwstats_fill()
2437 stats->rx_dropped = mac_stats->rx_drop; in bnad_netdev_hwstats_fill()
2438 stats->tx_dropped = mac_stats->tx_drop; in bnad_netdev_hwstats_fill()
2439 stats->multicast = mac_stats->rx_multicast; in bnad_netdev_hwstats_fill()
[all …]
Dbfi_enet.h837 struct bfi_enet_stats_mac mac_stats; member
/Linux-v6.6/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h58 struct mac_stats { struct
244 struct mac_stats stats;
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c661 struct iwl_statistics_ntfy_per_mac *mac_stats; in iwl_mvm_stat_iterator_all_macs() local
672 mac_stats = &data->per_mac_stats[vif_id]; in iwl_mvm_stat_iterator_all_macs()
675 le32_to_cpu(mac_stats->beacon_counter); in iwl_mvm_stat_iterator_all_macs()
677 -le32_to_cpu(mac_stats->beacon_average_energy); in iwl_mvm_stat_iterator_all_macs()
686 sig = -le32_to_cpu(mac_stats->beacon_filter_average_energy); in iwl_mvm_stat_iterator_all_macs()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.c943 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_stats_eth_mac_get() argument
956 mac_stats->FramesTransmittedOK = RD(a_frames_transmitted_ok); in mlx5e_stats_eth_mac_get()
957 mac_stats->FramesReceivedOK = RD(a_frames_received_ok); in mlx5e_stats_eth_mac_get()
958 mac_stats->FrameCheckSequenceErrors = RD(a_frame_check_sequence_errors); in mlx5e_stats_eth_mac_get()
959 mac_stats->OctetsTransmittedOK = RD(a_octets_transmitted_ok); in mlx5e_stats_eth_mac_get()
960 mac_stats->OctetsReceivedOK = RD(a_octets_received_ok); in mlx5e_stats_eth_mac_get()
961 mac_stats->MulticastFramesXmittedOK = RD(a_multicast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
962 mac_stats->BroadcastFramesXmittedOK = RD(a_broadcast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
963 mac_stats->MulticastFramesReceivedOK = RD(a_multicast_frames_received_ok); in mlx5e_stats_eth_mac_get()
964 mac_stats->BroadcastFramesReceivedOK = RD(a_broadcast_frames_received_ok); in mlx5e_stats_eth_mac_get()
[all …]
Den_stats.h123 struct ethtool_eth_mac_stats *mac_stats);
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb3/
Dcommon.h192 struct mac_stats { struct
483 struct mac_stats stats;
713 const struct mac_stats *t3_mac_update_stats(struct cmac *mac);
Dxgmac.c472 struct mac_stats *s = &mac->stats; in t3_mac_enable()
535 struct mac_stats *s = &mac->stats; in t3b2_mac_watchdog_task()
598 const struct mac_stats *t3_mac_update_stats(struct cmac *mac) in t3_mac_update_stats()
/Linux-v6.6/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c415 struct ethtool_eth_mac_stats *mac_stats) in enetc_get_eth_mac_stats() argument
421 switch (mac_stats->src) { in enetc_get_eth_mac_stats()
423 enetc_mac_stats(hw, 0, mac_stats); in enetc_get_eth_mac_stats()
427 enetc_mac_stats(hw, 1, mac_stats); in enetc_get_eth_mac_stats()
430 ethtool_aggregate_mac_stats(ndev, mac_stats); in enetc_get_eth_mac_stats()
/Linux-v6.6/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c257 int qstats_count, mac_stats = 0; in otx2_get_sset_count() local
265 mac_stats = CGX_RX_STATS_COUNT + CGX_TX_STATS_COUNT; in otx2_get_sset_count()
269 mac_stats + OTX2_FEC_STATS_CNT + 1; in otx2_get_sset_count()
/Linux-v6.6/drivers/net/wireless/microchip/wilc1000/
Dnetdev.c628 static struct net_device_stats *mac_stats(struct net_device *dev) in mac_stats() function
875 .ndo_get_stats = mac_stats,
/Linux-v6.6/drivers/net/ethernet/alteon/
Dacenic.c2791 struct ace_mac_stats __iomem *mac_stats = in ace_get_stats() local
2794 dev->stats.rx_missed_errors = readl(&mac_stats->drop_space); in ace_get_stats()
2795 dev->stats.multicast = readl(&mac_stats->kept_mc); in ace_get_stats()
2796 dev->stats.collisions = readl(&mac_stats->coll); in ace_get_stats()

12