| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_stats.c | 567 struct ethtool_rmon_stats *rmon_stats = priv; in ocelot_port_rmon_stats_cb() local 569 rmon_stats->undersize_pkts = s[OCELOT_STAT_RX_SHORTS]; in ocelot_port_rmon_stats_cb() 570 rmon_stats->oversize_pkts = s[OCELOT_STAT_RX_LONGS]; in ocelot_port_rmon_stats_cb() 571 rmon_stats->fragments = s[OCELOT_STAT_RX_FRAGMENTS]; in ocelot_port_rmon_stats_cb() 572 rmon_stats->jabbers = s[OCELOT_STAT_RX_JABBERS]; in ocelot_port_rmon_stats_cb() 574 rmon_stats->hist[0] = s[OCELOT_STAT_RX_64]; in ocelot_port_rmon_stats_cb() 575 rmon_stats->hist[1] = s[OCELOT_STAT_RX_65_127]; in ocelot_port_rmon_stats_cb() 576 rmon_stats->hist[2] = s[OCELOT_STAT_RX_128_255]; in ocelot_port_rmon_stats_cb() 577 rmon_stats->hist[3] = s[OCELOT_STAT_RX_256_511]; in ocelot_port_rmon_stats_cb() 578 rmon_stats->hist[4] = s[OCELOT_STAT_RX_512_1023]; in ocelot_port_rmon_stats_cb() [all …]
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_ethtool.c | 187 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument 194 rmon_stats->undersize_pkts = emac_get_stat_by_name(emac, "rx_bucket1_frames") - in emac_get_rmon_stats() 197 rmon_stats->hist[0] = emac_get_stat_by_name(emac, "rx_bucket1_frames"); in emac_get_rmon_stats() 198 rmon_stats->hist[1] = emac_get_stat_by_name(emac, "rx_bucket2_frames"); in emac_get_rmon_stats() 199 rmon_stats->hist[2] = emac_get_stat_by_name(emac, "rx_bucket3_frames"); in emac_get_rmon_stats() 200 rmon_stats->hist[3] = emac_get_stat_by_name(emac, "rx_bucket4_frames"); in emac_get_rmon_stats() 201 rmon_stats->hist[4] = emac_get_stat_by_name(emac, "rx_bucket5_frames"); in emac_get_rmon_stats() 203 rmon_stats->hist_tx[0] = emac_get_stat_by_name(emac, "tx_bucket1_frames"); in emac_get_rmon_stats() 204 rmon_stats->hist_tx[1] = emac_get_stat_by_name(emac, "tx_bucket2_frames"); in emac_get_rmon_stats() 205 rmon_stats->hist_tx[2] = emac_get_stat_by_name(emac, "tx_bucket3_frames"); in emac_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_ethtool.c | 446 struct ethtool_rmon_stats *rmon_stats, in hbg_ethtool_get_rmon_stats() argument 453 rmon_stats->undersize_pkts = stats->rx_frame_short_err_cnt + in hbg_ethtool_get_rmon_stats() 456 rmon_stats->oversize_pkts = stats->rx_frame_long_err_cnt + in hbg_ethtool_get_rmon_stats() 458 rmon_stats->fragments = stats->rx_desc_frag_cnt; in hbg_ethtool_get_rmon_stats() 459 rmon_stats->hist[0] = stats->rx_framesize_64; in hbg_ethtool_get_rmon_stats() 460 rmon_stats->hist[1] = stats->rx_framesize_65_127; in hbg_ethtool_get_rmon_stats() 461 rmon_stats->hist[2] = stats->rx_framesize_128_255; in hbg_ethtool_get_rmon_stats() 462 rmon_stats->hist[3] = stats->rx_framesize_256_511; in hbg_ethtool_get_rmon_stats() 463 rmon_stats->hist[4] = stats->rx_framesize_512_1023; in hbg_ethtool_get_rmon_stats() 464 rmon_stats->hist[5] = stats->rx_framesize_1024_1518; in hbg_ethtool_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_ethtool.c | 434 struct ethtool_rmon_stats *rmon_stats, in lan966x_get_eth_rmon_stats() argument 447 rmon_stats->undersize_pkts = in lan966x_get_eth_rmon_stats() 450 rmon_stats->oversize_pkts = in lan966x_get_eth_rmon_stats() 453 rmon_stats->fragments = in lan966x_get_eth_rmon_stats() 456 rmon_stats->jabbers = in lan966x_get_eth_rmon_stats() 459 rmon_stats->hist[0] = in lan966x_get_eth_rmon_stats() 462 rmon_stats->hist[1] = in lan966x_get_eth_rmon_stats() 465 rmon_stats->hist[2] = in lan966x_get_eth_rmon_stats() 468 rmon_stats->hist[3] = in lan966x_get_eth_rmon_stats() 471 rmon_stats->hist[4] = in lan966x_get_eth_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | xilinx_axienet_main.c | 2461 struct ethtool_rmon_stats *rmon_stats, in axienet_ethtool_get_rmon_stats() argument 2472 rmon_stats->undersize_pkts = in axienet_ethtool_get_rmon_stats() 2474 rmon_stats->oversize_pkts = in axienet_ethtool_get_rmon_stats() 2476 rmon_stats->fragments = in axienet_ethtool_get_rmon_stats() 2479 rmon_stats->hist[0] = in axienet_ethtool_get_rmon_stats() 2481 rmon_stats->hist[1] = in axienet_ethtool_get_rmon_stats() 2483 rmon_stats->hist[2] = in axienet_ethtool_get_rmon_stats() 2485 rmon_stats->hist[3] = in axienet_ethtool_get_rmon_stats() 2487 rmon_stats->hist[4] = in axienet_ethtool_get_rmon_stats() 2489 rmon_stats->hist[5] = in axienet_ethtool_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/spacemit/ |
| H A D | k1_emac.c | 1227 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument 1241 rmon_stats->undersize_pkts = rx_stats->stats.rx_len_undersize_pkts; in emac_get_rmon_stats() 1242 rmon_stats->oversize_pkts = rx_stats->stats.rx_len_oversize_pkts; in emac_get_rmon_stats() 1243 rmon_stats->fragments = rx_stats->stats.rx_len_fragment_pkts; in emac_get_rmon_stats() 1244 rmon_stats->jabbers = rx_stats->stats.rx_len_jabber_pkts; in emac_get_rmon_stats() 1248 rmon_stats->hist[0] = rx_stats->stats.rx_64_pkts; in emac_get_rmon_stats() 1249 rmon_stats->hist[1] = rx_stats->stats.rx_65_127_pkts; in emac_get_rmon_stats() 1250 rmon_stats->hist[2] = rx_stats->stats.rx_128_255_pkts; in emac_get_rmon_stats() 1251 rmon_stats->hist[3] = rx_stats->stats.rx_256_511_pkts; in emac_get_rmon_stats() 1252 rmon_stats->hist[4] = rx_stats->stats.rx_512_1023_pkts; in emac_get_rmon_stats() [all …]
|
| /linux/drivers/net/dsa/ |
| H A D | mt7530.c | 877 struct ethtool_rmon_stats *rmon_stats, in mt7530_get_rmon_stats() argument 883 &rmon_stats->undersize_pkts); in mt7530_get_rmon_stats() 885 &rmon_stats->oversize_pkts); in mt7530_get_rmon_stats() 887 &rmon_stats->fragments); in mt7530_get_rmon_stats() 889 &rmon_stats->jabbers); in mt7530_get_rmon_stats() 892 &rmon_stats->hist[0]); in mt7530_get_rmon_stats() 894 &rmon_stats->hist[1]); in mt7530_get_rmon_stats() 896 &rmon_stats->hist[2]); in mt7530_get_rmon_stats() 898 &rmon_stats->hist[3]); in mt7530_get_rmon_stats() 900 &rmon_stats->hist[4]); in mt7530_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 5634 struct ethtool_rmon_stats *rmon_stats, in bnxt_get_rmon_stats() argument 5646 rmon_stats->jabbers = in bnxt_get_rmon_stats() 5648 rmon_stats->oversize_pkts = in bnxt_get_rmon_stats() 5650 rmon_stats->undersize_pkts = in bnxt_get_rmon_stats() 5653 rmon_stats->hist[0] = BNXT_GET_RX_PORT_STATS64(rx, rx_64b_frames); in bnxt_get_rmon_stats() 5654 rmon_stats->hist[1] = BNXT_GET_RX_PORT_STATS64(rx, rx_65b_127b_frames); in bnxt_get_rmon_stats() 5655 rmon_stats->hist[2] = BNXT_GET_RX_PORT_STATS64(rx, rx_128b_255b_frames); in bnxt_get_rmon_stats() 5656 rmon_stats->hist[3] = BNXT_GET_RX_PORT_STATS64(rx, rx_256b_511b_frames); in bnxt_get_rmon_stats() 5657 rmon_stats->hist[4] = in bnxt_get_rmon_stats() 5659 rmon_stats->hist[5] = in bnxt_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_ethtool.c | 699 struct ethtool_rmon_stats *rmon_stats) in enetc_get_mac_rmon_stats() argument 705 enetc_rmon_stats(hw, mac, rmon_stats); in enetc_get_mac_rmon_stats() 708 enetc4_rmon_stats(hw, mac, rmon_stats); in enetc_get_mac_rmon_stats() 716 struct ethtool_rmon_stats *rmon_stats, in enetc_get_rmon_stats() argument 724 switch (rmon_stats->src) { in enetc_get_rmon_stats() 726 enetc_get_mac_rmon_stats(si, 0, rmon_stats); in enetc_get_rmon_stats() 730 enetc_get_mac_rmon_stats(si, 1, rmon_stats); in enetc_get_rmon_stats() 733 ethtool_aggregate_rmon_stats(ndev, rmon_stats); in enetc_get_rmon_stats()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_ethtool.c | 1979 struct ethtool_rmon_stats *rmon_stats, in fbnic_get_rmon_stats() argument 1991 rmon_stats->undersize_pkts = in fbnic_get_rmon_stats() 1993 rmon_stats->oversize_pkts = in fbnic_get_rmon_stats() 1995 rmon_stats->fragments = in fbnic_get_rmon_stats() 1997 rmon_stats->jabbers = in fbnic_get_rmon_stats() 2001 rmon_stats->hist[i] = mac_stats->rmon.hist[i].value; in fbnic_get_rmon_stats() 2002 rmon_stats->hist_tx[i] = mac_stats->rmon.hist_tx[i].value; in fbnic_get_rmon_stats()
|
| /linux/include/linux/ |
| H A D | ethtool.h | 1345 struct ethtool_rmon_stats *rmon_stats,
|
| /linux/include/net/ |
| H A D | dsa.h | 932 struct ethtool_rmon_stats *rmon_stats,
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_ethtool.c | 2701 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument 2706 mlx5e_stats_rmon_get(priv, rmon_stats, ranges); in mlx5e_get_rmon_stats()
|
| /linux/net/dsa/ |
| H A D | user.c | 1129 struct ethtool_rmon_stats *rmon_stats, in dsa_user_get_rmon_stats() argument 1136 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_user_get_rmon_stats()
|