Home
last modified time | relevance | path

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

12

/linux-6.1.9/net/ethtool/
Dstats.c19 struct ethtool_eth_mac_stats mac_stats;
129 dev->ethtool_ops->get_eth_mac_stats(dev, &data->mac_stats); in stats_prepare_data()
228 data->mac_stats.FramesTransmittedOK) || in stats_put_mac_stats()
230 data->mac_stats.SingleCollisionFrames) || in stats_put_mac_stats()
232 data->mac_stats.MultipleCollisionFrames) || in stats_put_mac_stats()
234 data->mac_stats.FramesReceivedOK) || in stats_put_mac_stats()
236 data->mac_stats.FrameCheckSequenceErrors) || in stats_put_mac_stats()
238 data->mac_stats.AlignmentErrors) || in stats_put_mac_stats()
240 data->mac_stats.OctetsTransmittedOK) || in stats_put_mac_stats()
242 data->mac_stats.FramesWithDeferredXmissions) || in stats_put_mac_stats()
[all …]
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/mscc/
Docelot_stats.c255 struct ethtool_eth_mac_stats *mac_stats = priv; in ocelot_port_mac_stats_cb() local
257 mac_stats->OctetsTransmittedOK = s[OCELOT_STAT_TX_OCTETS]; in ocelot_port_mac_stats_cb()
258 mac_stats->FramesTransmittedOK = s[OCELOT_STAT_TX_64] + in ocelot_port_mac_stats_cb()
265 mac_stats->OctetsReceivedOK = s[OCELOT_STAT_RX_OCTETS]; in ocelot_port_mac_stats_cb()
266 mac_stats->FramesReceivedOK = s[OCELOT_STAT_RX_GREEN_PRIO_0] + in ocelot_port_mac_stats_cb()
282 mac_stats->MulticastFramesXmittedOK = s[OCELOT_STAT_TX_MULTICAST]; in ocelot_port_mac_stats_cb()
283 mac_stats->BroadcastFramesXmittedOK = s[OCELOT_STAT_TX_BROADCAST]; in ocelot_port_mac_stats_cb()
284 mac_stats->MulticastFramesReceivedOK = s[OCELOT_STAT_RX_MULTICAST]; in ocelot_port_mac_stats_cb()
285 mac_stats->BroadcastFramesReceivedOK = s[OCELOT_STAT_RX_BROADCAST]; in ocelot_port_mac_stats_cb()
286 mac_stats->FrameTooLongErrors = s[OCELOT_STAT_RX_LONGS]; in ocelot_port_mac_stats_cb()
[all …]
/linux-6.1.9/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.c1124 struct qlcnic_mac_statistics *mac_stats) in qlcnic_get_mac_stats() argument
1133 if (mac_stats == NULL) in qlcnic_get_mac_stats()
1151 mac_stats->mac_tx_frames = le64_to_cpu(stats->mac_tx_frames); in qlcnic_get_mac_stats()
1152 mac_stats->mac_tx_bytes = le64_to_cpu(stats->mac_tx_bytes); in qlcnic_get_mac_stats()
1153 mac_stats->mac_tx_mcast_pkts = in qlcnic_get_mac_stats()
1155 mac_stats->mac_tx_bcast_pkts = in qlcnic_get_mac_stats()
1157 mac_stats->mac_rx_frames = le64_to_cpu(stats->mac_rx_frames); in qlcnic_get_mac_stats()
1158 mac_stats->mac_rx_bytes = le64_to_cpu(stats->mac_rx_bytes); in qlcnic_get_mac_stats()
1159 mac_stats->mac_rx_mcast_pkts = in qlcnic_get_mac_stats()
1161 mac_stats->mac_rx_length_error = in qlcnic_get_mac_stats()
[all …]
/linux-6.1.9/drivers/net/dsa/
Drzn1_a5psw.c587 struct ethtool_eth_mac_stats *mac_stats) in a5psw_get_eth_mac_stats() argument
592 mac_stats->FramesTransmittedOK = RD(aFramesTransmittedOK); in a5psw_get_eth_mac_stats()
593 mac_stats->SingleCollisionFrames = RD(aSingleCollisions); in a5psw_get_eth_mac_stats()
594 mac_stats->MultipleCollisionFrames = RD(aMultipleCollisions); in a5psw_get_eth_mac_stats()
595 mac_stats->FramesReceivedOK = RD(aFramesReceivedOK); in a5psw_get_eth_mac_stats()
596 mac_stats->FrameCheckSequenceErrors = RD(aFrameCheckSequenceErrors); in a5psw_get_eth_mac_stats()
597 mac_stats->AlignmentErrors = RD(aAlignmentErrors); in a5psw_get_eth_mac_stats()
598 mac_stats->OctetsTransmittedOK = RD(aOctetsTransmittedOK); in a5psw_get_eth_mac_stats()
599 mac_stats->FramesWithDeferredXmissions = RD(aDeferred); in a5psw_get_eth_mac_stats()
600 mac_stats->LateCollisions = RD(aLateCollisions); in a5psw_get_eth_mac_stats()
[all …]
/linux-6.1.9/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-6.1.9/drivers/net/dsa/realtek/
Drtl8365mb.c1305 struct ethtool_eth_mac_stats *mac_stats) in rtl8365mb_get_mac_stats() argument
1355 mac_stats->FramesTransmittedOK = cnt[RTL8365MB_MIB_ifOutUcastPkts] + in rtl8365mb_get_mac_stats()
1360 mac_stats->SingleCollisionFrames = in rtl8365mb_get_mac_stats()
1362 mac_stats->MultipleCollisionFrames = in rtl8365mb_get_mac_stats()
1364 mac_stats->FramesReceivedOK = cnt[RTL8365MB_MIB_ifInUcastPkts] + in rtl8365mb_get_mac_stats()
1368 mac_stats->FrameCheckSequenceErrors = in rtl8365mb_get_mac_stats()
1370 mac_stats->OctetsTransmittedOK = cnt[RTL8365MB_MIB_ifOutOctets] - in rtl8365mb_get_mac_stats()
1371 18 * mac_stats->FramesTransmittedOK; in rtl8365mb_get_mac_stats()
1372 mac_stats->FramesWithDeferredXmissions = in rtl8365mb_get_mac_stats()
1374 mac_stats->LateCollisions = cnt[RTL8365MB_MIB_dot3StatsLateCollisions]; in rtl8365mb_get_mac_stats()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad.c2427 struct bfi_enet_stats_mac *mac_stats; in bnad_netdev_hwstats_fill() local
2431 mac_stats = &bnad->stats.bna_stats->hw_stats.mac_stats; in bnad_netdev_hwstats_fill()
2433 mac_stats->rx_fcs_error + mac_stats->rx_alignment_error + in bnad_netdev_hwstats_fill()
2434 mac_stats->rx_frame_length_error + mac_stats->rx_code_error + in bnad_netdev_hwstats_fill()
2435 mac_stats->rx_undersize; in bnad_netdev_hwstats_fill()
2436 stats->tx_errors = mac_stats->tx_fcs_error + in bnad_netdev_hwstats_fill()
2437 mac_stats->tx_undersize; in bnad_netdev_hwstats_fill()
2438 stats->rx_dropped = mac_stats->rx_drop; in bnad_netdev_hwstats_fill()
2439 stats->tx_dropped = mac_stats->tx_drop; in bnad_netdev_hwstats_fill()
2440 stats->multicast = mac_stats->rx_multicast; in bnad_netdev_hwstats_fill()
[all …]
Dbfi_enet.h837 struct bfi_enet_stats_mac mac_stats; member
/linux-6.1.9/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h58 struct mac_stats { struct
244 struct mac_stats stats;
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c658 struct iwl_statistics_ntfy_per_mac *mac_stats; in iwl_mvm_stat_iterator_all_macs() local
669 mac_stats = &data->per_mac_stats[vif_id]; in iwl_mvm_stat_iterator_all_macs()
672 le32_to_cpu(mac_stats->beacon_counter); in iwl_mvm_stat_iterator_all_macs()
674 -le32_to_cpu(mac_stats->beacon_average_energy); in iwl_mvm_stat_iterator_all_macs()
683 sig = -le32_to_cpu(mac_stats->beacon_filter_average_energy); in iwl_mvm_stat_iterator_all_macs()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.c922 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_stats_eth_mac_get() argument
935 mac_stats->FramesTransmittedOK = RD(a_frames_transmitted_ok); in mlx5e_stats_eth_mac_get()
936 mac_stats->FramesReceivedOK = RD(a_frames_received_ok); in mlx5e_stats_eth_mac_get()
937 mac_stats->FrameCheckSequenceErrors = RD(a_frame_check_sequence_errors); in mlx5e_stats_eth_mac_get()
938 mac_stats->OctetsTransmittedOK = RD(a_octets_transmitted_ok); in mlx5e_stats_eth_mac_get()
939 mac_stats->OctetsReceivedOK = RD(a_octets_received_ok); in mlx5e_stats_eth_mac_get()
940 mac_stats->MulticastFramesXmittedOK = RD(a_multicast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
941 mac_stats->BroadcastFramesXmittedOK = RD(a_broadcast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
942 mac_stats->MulticastFramesReceivedOK = RD(a_multicast_frames_received_ok); in mlx5e_stats_eth_mac_get()
943 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-6.1.9/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-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c251 int qstats_count, mac_stats = 0; in otx2_get_sset_count() local
259 mac_stats = CGX_RX_STATS_COUNT + CGX_TX_STATS_COUNT; in otx2_get_sset_count()
263 mac_stats + OTX2_FEC_STATS_CNT + 1; in otx2_get_sset_count()
/linux-6.1.9/drivers/net/wireless/microchip/wilc1000/
Dnetdev.c628 static struct net_device_stats *mac_stats(struct net_device *dev) in mac_stats() function
874 .ndo_get_stats = mac_stats,
/linux-6.1.9/include/linux/
Dethtool.h751 struct ethtool_eth_mac_stats *mac_stats);
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c384 struct ethtool_eth_mac_stats *mac_stats) in enetc_get_eth_mac_stats() argument
389 enetc_mac_stats(hw, 0, mac_stats); in enetc_get_eth_mac_stats()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c3904 struct ethtool_eth_mac_stats *mac_stats) in bnxt_get_eth_mac_stats() argument
3915 mac_stats->FramesReceivedOK = in bnxt_get_eth_mac_stats()
3917 mac_stats->FramesTransmittedOK = in bnxt_get_eth_mac_stats()
3919 mac_stats->FrameCheckSequenceErrors = in bnxt_get_eth_mac_stats()
3921 mac_stats->AlignmentErrors = in bnxt_get_eth_mac_stats()
3923 mac_stats->OutOfRangeLengthField = in bnxt_get_eth_mac_stats()
/linux-6.1.9/drivers/net/ethernet/alteon/
Dacenic.c2792 struct ace_mac_stats __iomem *mac_stats = in ace_get_stats() local
2795 dev->stats.rx_missed_errors = readl(&mac_stats->drop_space); in ace_get_stats()
2796 dev->stats.multicast = readl(&mac_stats->kept_mc); in ace_get_stats()
2797 dev->stats.collisions = readl(&mac_stats->coll); in ace_get_stats()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h645 struct hns3_mac_stats *mac_stats);

12