/linux/net/ethtool/ |
A D | stats.c | 18 struct ethtool_eth_mac_stats mac_stats; member 121 memset(&data->mac_stats, 0xff, sizeof(data->mac_stats)); in stats_prepare_data() 229 data->mac_stats.FramesTransmittedOK) || in stats_put_mac_stats() 235 data->mac_stats.FramesReceivedOK) || in stats_put_mac_stats() 239 data->mac_stats.AlignmentErrors) || in stats_put_mac_stats() 241 data->mac_stats.OctetsTransmittedOK) || in stats_put_mac_stats() 245 data->mac_stats.LateCollisions) || in stats_put_mac_stats() 251 data->mac_stats.CarrierSenseErrors) || in stats_put_mac_stats() 253 data->mac_stats.OctetsReceivedOK) || in stats_put_mac_stats() 267 data->mac_stats.InRangeLengthErrors) || in stats_put_mac_stats() [all …]
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_ethtool.c | 1255 struct qlcnic_mac_statistics *mac_stats = in qlcnic_fill_stats() local 1257 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_frames); in qlcnic_fill_stats() 1258 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_bytes); in qlcnic_fill_stats() 1262 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_ctrl_pkt); in qlcnic_fill_stats() 1270 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_rx_frames); in qlcnic_fill_stats() 1271 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_rx_bytes); in qlcnic_fill_stats() 1275 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_rx_ctrl_pkt); in qlcnic_fill_stats() 1286 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_rx_jabber); in qlcnic_fill_stats() 1287 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_rx_dropped); in qlcnic_fill_stats() 1348 struct qlcnic_mac_statistics mac_stats; in qlcnic_get_ethtool_stats() local [all …]
|
A D | qlcnic_ctx.c | 1124 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() 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() 1163 mac_stats->mac_rx_length_small = in qlcnic_get_mac_stats() [all …]
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_ethtool.c | 837 struct ethtool_eth_mac_stats *mac_stats) in sparx5_get_eth_mac_stats() argument 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() 875 mac_stats->FramesWithDeferredXmissions = in sparx5_get_eth_mac_stats() 877 mac_stats->LateCollisions = in sparx5_get_eth_mac_stats() 879 mac_stats->FramesAbortedDueToXSColls = in sparx5_get_eth_mac_stats() 888 mac_stats->FramesWithExcessiveDeferral = in sparx5_get_eth_mac_stats() 894 mac_stats->InRangeLengthErrors = in sparx5_get_eth_mac_stats() [all …]
|
/linux/drivers/net/dsa/ |
A D | rtl8365mb.c | 1264 mac_stats->SingleCollisionFrames = in rtl8365mb_get_mac_stats() 1266 mac_stats->MultipleCollisionFrames = in rtl8365mb_get_mac_stats() 1272 mac_stats->FrameCheckSequenceErrors = in rtl8365mb_get_mac_stats() 1275 18 * mac_stats->FramesTransmittedOK; in rtl8365mb_get_mac_stats() 1276 mac_stats->FramesWithDeferredXmissions = in rtl8365mb_get_mac_stats() 1279 mac_stats->FramesAbortedDueToXSColls = in rtl8365mb_get_mac_stats() 1282 18 * mac_stats->FramesReceivedOK; in rtl8365mb_get_mac_stats() 1283 mac_stats->MulticastFramesXmittedOK = in rtl8365mb_get_mac_stats() 1285 mac_stats->BroadcastFramesXmittedOK = in rtl8365mb_get_mac_stats() 1287 mac_stats->MulticastFramesReceivedOK = in rtl8365mb_get_mac_stats() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_ethtool.c | 1106 mac_stats->FramesTransmittedOK = in mlxsw_sp_get_eth_mac_stats() 1108 mac_stats->FramesReceivedOK = in mlxsw_sp_get_eth_mac_stats() 1110 mac_stats->FrameCheckSequenceErrors = in mlxsw_sp_get_eth_mac_stats() 1112 mac_stats->AlignmentErrors = in mlxsw_sp_get_eth_mac_stats() 1114 mac_stats->OctetsTransmittedOK = in mlxsw_sp_get_eth_mac_stats() 1116 mac_stats->OctetsReceivedOK = in mlxsw_sp_get_eth_mac_stats() 1118 mac_stats->MulticastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats() 1120 mac_stats->BroadcastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats() 1126 mac_stats->InRangeLengthErrors = in mlxsw_sp_get_eth_mac_stats() 1128 mac_stats->OutOfRangeLengthField = in mlxsw_sp_get_eth_mac_stats() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_stats.c | 330 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() 432 U64_LO(bnx2x_sp_mapping(bp, mac_stats) + (tx_len << 2)); in bnx2x_port_stats_init() [all …]
|
A D | bnx2x.h | 1169 union mac_stats mac_stats; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_stats.c | 839 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_stats_eth_mac_get() argument 852 mac_stats->FramesTransmittedOK = RD(a_frames_transmitted_ok); in mlx5e_stats_eth_mac_get() 853 mac_stats->FramesReceivedOK = RD(a_frames_received_ok); in mlx5e_stats_eth_mac_get() 854 mac_stats->FrameCheckSequenceErrors = RD(a_frame_check_sequence_errors); in mlx5e_stats_eth_mac_get() 855 mac_stats->OctetsTransmittedOK = RD(a_octets_transmitted_ok); in mlx5e_stats_eth_mac_get() 856 mac_stats->OctetsReceivedOK = RD(a_octets_received_ok); in mlx5e_stats_eth_mac_get() 857 mac_stats->MulticastFramesXmittedOK = RD(a_multicast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get() 858 mac_stats->BroadcastFramesXmittedOK = RD(a_broadcast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get() 861 mac_stats->InRangeLengthErrors = RD(a_in_range_length_errors); in mlx5e_stats_eth_mac_get() 862 mac_stats->OutOfRangeLengthField = RD(a_out_of_range_length_field); in mlx5e_stats_eth_mac_get() [all …]
|
A D | en_stats.h | 123 struct ethtool_eth_mac_stats *mac_stats);
|
A D | en_ethtool.c | 2334 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_get_eth_mac_stats() argument 2338 mlx5e_stats_eth_mac_get(priv, mac_stats); in mlx5e_get_eth_mac_stats()
|
/linux/drivers/net/ethernet/brocade/bna/ |
A D | bnad.c | 2428 struct bfi_enet_stats_mac *mac_stats; in bnad_netdev_hwstats_fill() local 2432 mac_stats = &bnad->stats.bna_stats->hw_stats.mac_stats; in bnad_netdev_hwstats_fill() 2434 mac_stats->rx_fcs_error + mac_stats->rx_alignment_error + in bnad_netdev_hwstats_fill() 2435 mac_stats->rx_frame_length_error + mac_stats->rx_code_error + in bnad_netdev_hwstats_fill() 2436 mac_stats->rx_undersize; in bnad_netdev_hwstats_fill() 2437 stats->tx_errors = mac_stats->tx_fcs_error + in bnad_netdev_hwstats_fill() 2438 mac_stats->tx_undersize; in bnad_netdev_hwstats_fill() 2439 stats->rx_dropped = mac_stats->rx_drop; in bnad_netdev_hwstats_fill() 2440 stats->tx_dropped = mac_stats->tx_drop; in bnad_netdev_hwstats_fill() 2441 stats->multicast = mac_stats->rx_multicast; in bnad_netdev_hwstats_fill() [all …]
|
A D | bfi_enet.h | 837 struct bfi_enet_stats_mac mac_stats; member
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A D | mt7601u.h | 58 struct mac_stats { struct 244 struct mac_stats stats;
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | common.h | 192 struct mac_stats { struct 483 struct mac_stats stats; 713 const struct mac_stats *t3_mac_update_stats(struct cmac *mac);
|
A D | xgmac.c | 472 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/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 251 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/drivers/net/wireless/microchip/wilc1000/ |
A D | netdev.c | 627 static struct net_device_stats *mac_stats(struct net_device *dev) in mac_stats() function 863 .ndo_get_stats = mac_stats,
|
/linux/include/linux/ |
A D | ethtool.h | 719 struct ethtool_eth_mac_stats *mac_stats);
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ethtool.c | 3796 struct ethtool_eth_mac_stats *mac_stats) in bnxt_get_eth_mac_stats() argument 3807 mac_stats->FramesReceivedOK = in bnxt_get_eth_mac_stats() 3809 mac_stats->FramesTransmittedOK = in bnxt_get_eth_mac_stats() 3811 mac_stats->FrameCheckSequenceErrors = in bnxt_get_eth_mac_stats() 3813 mac_stats->AlignmentErrors = in bnxt_get_eth_mac_stats() 3815 mac_stats->OutOfRangeLengthField = in bnxt_get_eth_mac_stats()
|
/linux/drivers/net/ethernet/alteon/ |
A D | acenic.c | 2797 struct ace_mac_stats __iomem *mac_stats = in ace_get_stats() local 2800 dev->stats.rx_missed_errors = readl(&mac_stats->drop_space); in ace_get_stats() 2801 dev->stats.multicast = readl(&mac_stats->kept_mc); in ace_get_stats() 2802 dev->stats.collisions = readl(&mac_stats->coll); in ace_get_stats()
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hnae3.h | 618 struct hns3_mac_stats *mac_stats);
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.h | 865 struct hclge_mac_stats mac_stats; member
|
A D | hclge_main.c | 485 u64 *data = (u64 *)(&hdev->mac_stats); in hclge_mac_update_stats_defective() 522 u64 *data = (u64 *)(&hdev->mac_stats); in hclge_mac_update_stats_complete() 547 data_size = min_t(u32, sizeof(hdev->mac_stats) / sizeof(u64), reg_num); in hclge_mac_update_stats_complete() 737 *buf = HCLGE_STATS_READ(&hdev->mac_stats, strs[i].offset); in hclge_comm_get_stats() 907 struct hns3_mac_stats *mac_stats) in hclge_get_mac_stat() argument 914 mac_stats->tx_pause_cnt = hdev->mac_stats.mac_tx_mac_pause_num; in hclge_get_mac_stat() 915 mac_stats->rx_pause_cnt = hdev->mac_stats.mac_rx_mac_pause_num; in hclge_get_mac_stat() 11879 memset(&hdev->mac_stats, 0, sizeof(hdev->mac_stats)); in hclge_stats_clear()
|
/linux/include/net/ |
A D | dsa.h | 683 struct ethtool_eth_mac_stats *mac_stats);
|