Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c1255 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()
1259 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_mcast_pkts); in qlcnic_fill_stats()
1260 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_bcast_pkts); in qlcnic_fill_stats()
1261 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_pause_cnt); in qlcnic_fill_stats()
1262 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_ctrl_pkt); in qlcnic_fill_stats()
1263 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_lt_64b_pkts); in qlcnic_fill_stats()
1264 *data++ = QLCNIC_FILL_STATS(mac_stats->mac_tx_lt_127b_pkts); in qlcnic_fill_stats()
1265 *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 …]
/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 …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ethtool.c1091 struct ethtool_eth_mac_stats *mac_stats) in mlxsw_sp_get_eth_mac_stats() argument
1099 mac_stats->FramesTransmittedOK = in mlxsw_sp_get_eth_mac_stats()
1101 mac_stats->FramesReceivedOK = in mlxsw_sp_get_eth_mac_stats()
1103 mac_stats->FrameCheckSequenceErrors = in mlxsw_sp_get_eth_mac_stats()
1105 mac_stats->AlignmentErrors = in mlxsw_sp_get_eth_mac_stats()
1107 mac_stats->OctetsTransmittedOK = in mlxsw_sp_get_eth_mac_stats()
1109 mac_stats->OctetsReceivedOK = in mlxsw_sp_get_eth_mac_stats()
1111 mac_stats->MulticastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats()
1113 mac_stats->BroadcastFramesXmittedOK = in mlxsw_sp_get_eth_mac_stats()
1115 mac_stats->MulticastFramesReceivedOK = in mlxsw_sp_get_eth_mac_stats()
[all …]
/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 …]
Dbnx2x.h1169 union mac_stats mac_stats; member
/drivers/net/ethernet/mellanox/mlx5/core/
Den_stats.c829 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_stats_eth_mac_get() argument
842 mac_stats->FramesTransmittedOK = RD(a_frames_transmitted_ok); in mlx5e_stats_eth_mac_get()
843 mac_stats->FramesReceivedOK = RD(a_frames_received_ok); in mlx5e_stats_eth_mac_get()
844 mac_stats->FrameCheckSequenceErrors = RD(a_frame_check_sequence_errors); in mlx5e_stats_eth_mac_get()
845 mac_stats->OctetsTransmittedOK = RD(a_octets_transmitted_ok); in mlx5e_stats_eth_mac_get()
846 mac_stats->OctetsReceivedOK = RD(a_octets_received_ok); in mlx5e_stats_eth_mac_get()
847 mac_stats->MulticastFramesXmittedOK = RD(a_multicast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
848 mac_stats->BroadcastFramesXmittedOK = RD(a_broadcast_frames_xmitted_ok); in mlx5e_stats_eth_mac_get()
849 mac_stats->MulticastFramesReceivedOK = RD(a_multicast_frames_received_ok); in mlx5e_stats_eth_mac_get()
850 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);
Den_ethtool.c2329 struct ethtool_eth_mac_stats *mac_stats) in mlx5e_get_eth_mac_stats() argument
2333 mlx5e_stats_eth_mac_get(priv, mac_stats); in mlx5e_get_eth_mac_stats()
/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
/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h58 struct mac_stats { struct
244 struct mac_stats stats;
/drivers/net/ethernet/chelsio/cxgb3/
Dcommon.h192 struct mac_stats { struct
483 struct mac_stats stats;
715 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()
Dcxgb3_main.c1493 const struct mac_stats *pstats; in cxgb_get_stats()
1668 const struct mac_stats *s; in get_stats()
/drivers/net/wireless/microchip/wilc1000/
Dnetdev.c622 static struct net_device_stats *mac_stats(struct net_device *dev) in mac_stats() function
859 .ndo_get_stats = mac_stats,
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c3779 struct ethtool_eth_mac_stats *mac_stats) in bnxt_get_eth_mac_stats() argument
3790 mac_stats->FramesReceivedOK = in bnxt_get_eth_mac_stats()
3792 mac_stats->FramesTransmittedOK = in bnxt_get_eth_mac_stats()
3794 mac_stats->FrameCheckSequenceErrors = in bnxt_get_eth_mac_stats()
3796 mac_stats->AlignmentErrors = in bnxt_get_eth_mac_stats()
3798 mac_stats->OutOfRangeLengthField = in bnxt_get_eth_mac_stats()
/drivers/net/ethernet/alteon/
Dacenic.c2795 struct ace_mac_stats __iomem *mac_stats = in ace_get_stats() local
2798 dev->stats.rx_missed_errors = readl(&mac_stats->drop_space); in ace_get_stats()
2799 dev->stats.multicast = readl(&mac_stats->kept_mc); in ace_get_stats()
2800 dev->stats.collisions = readl(&mac_stats->coll); in ace_get_stats()
/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h611 struct hns3_mac_stats *mac_stats);
Dhns3_enet.c2691 struct hns3_mac_stats mac_stats; in hns3_get_tx_timeo_queue_info() local
2693 h->ae_algo->ops->get_mac_stats(h, &mac_stats); in hns3_get_tx_timeo_queue_info()
2695 mac_stats.tx_pause_cnt, mac_stats.rx_pause_cnt); in hns3_get_tx_timeo_queue_info()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h837 struct hclge_mac_stats mac_stats; member
Dhclge_main.c452 u64 *data = (u64 *)(&hdev->mac_stats); in hclge_mac_update_stats_defective()
489 u64 *data = (u64 *)(&hdev->mac_stats); in hclge_mac_update_stats_complete()
838 p = hclge_comm_get_stats(&hdev->mac_stats, g_mac_stats_string, in hclge_get_stats()
844 struct hns3_mac_stats *mac_stats) in hclge_get_mac_stat() argument
851 mac_stats->tx_pause_cnt = hdev->mac_stats.mac_tx_mac_pause_num; in hclge_get_mac_stat()
852 mac_stats->rx_pause_cnt = hdev->mac_stats.mac_rx_mac_pause_num; in hclge_get_mac_stat()
11862 memset(&hdev->mac_stats, 0, sizeof(hdev->mac_stats)); in hclge_stats_clear()
Dhclge_tm.c149 stats[i] = HCLGE_STATS_READ(&hdev->mac_stats, offset[i]); in hclge_pfc_stats_get()
/drivers/net/ethernet/sun/
Dniu.c3902 struct niu_xmac_stats *mp = &np->mac_stats.xmac; in niu_xmac_interrupt()
3972 struct niu_bmac_stats *mp = &np->mac_stats.bmac; in niu_bmac_interrupt()
6173 struct niu_xmac_stats *mp = &np->mac_stats.xmac; in niu_sync_xmac_stats()
6198 struct niu_bmac_stats *mp = &np->mac_stats.bmac; in niu_sync_bmac_stats()
7781 memcpy(data, &np->mac_stats.xmac, in niu_get_ethtool_stats()
7785 memcpy(data, &np->mac_stats.bmac, in niu_get_ethtool_stats()
Dniu.h3267 union niu_mac_stats mac_stats; member

12