/openbmc/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 …]
|
/openbmc/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_ethtool.c | 169 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument 176 rmon_stats->undersize_pkts = emac_get_stat_by_name(emac, "rx_bucket1_frames") - in emac_get_rmon_stats() 179 rmon_stats->hist[0] = emac_get_stat_by_name(emac, "rx_bucket1_frames"); in emac_get_rmon_stats() 180 rmon_stats->hist[1] = emac_get_stat_by_name(emac, "rx_bucket2_frames"); in emac_get_rmon_stats() 181 rmon_stats->hist[2] = emac_get_stat_by_name(emac, "rx_bucket3_frames"); in emac_get_rmon_stats() 182 rmon_stats->hist[3] = emac_get_stat_by_name(emac, "rx_bucket4_frames"); in emac_get_rmon_stats() 183 rmon_stats->hist[4] = emac_get_stat_by_name(emac, "rx_bucket5_frames"); in emac_get_rmon_stats() 185 rmon_stats->hist_tx[0] = emac_get_stat_by_name(emac, "tx_bucket1_frames"); in emac_get_rmon_stats() 186 rmon_stats->hist_tx[1] = emac_get_stat_by_name(emac, "tx_bucket2_frames"); in emac_get_rmon_stats() 187 rmon_stats->hist_tx[2] = emac_get_stat_by_name(emac, "tx_bucket3_frames"); in emac_get_rmon_stats() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_ethtool.c | 445 struct ethtool_rmon_stats *rmon_stats, in bcmasp_get_rmon_stats() argument 452 rmon_stats->undersize_pkts = umac_rl(intf, UMC_RRUND); in bcmasp_get_rmon_stats() 453 rmon_stats->oversize_pkts = umac_rl(intf, UMC_GROVR); in bcmasp_get_rmon_stats() 454 rmon_stats->fragments = umac_rl(intf, UMC_RRFRG); in bcmasp_get_rmon_stats() 455 rmon_stats->jabbers = umac_rl(intf, UMC_GRJBR); in bcmasp_get_rmon_stats() 457 rmon_stats->hist[0] = umac_rl(intf, UMC_GR64); in bcmasp_get_rmon_stats() 458 rmon_stats->hist[1] = umac_rl(intf, UMC_GR127); in bcmasp_get_rmon_stats() 459 rmon_stats->hist[2] = umac_rl(intf, UMC_GR255); in bcmasp_get_rmon_stats() 460 rmon_stats->hist[3] = umac_rl(intf, UMC_GR511); in bcmasp_get_rmon_stats() 461 rmon_stats->hist[4] = umac_rl(intf, UMC_GR1023); in bcmasp_get_rmon_stats() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_ethtool.c | 442 struct ethtool_rmon_stats *rmon_stats, in lan966x_get_eth_rmon_stats() argument 455 rmon_stats->undersize_pkts = in lan966x_get_eth_rmon_stats() 458 rmon_stats->oversize_pkts = in lan966x_get_eth_rmon_stats() 461 rmon_stats->fragments = in lan966x_get_eth_rmon_stats() 464 rmon_stats->jabbers = in lan966x_get_eth_rmon_stats() 467 rmon_stats->hist[0] = in lan966x_get_eth_rmon_stats() 470 rmon_stats->hist[1] = in lan966x_get_eth_rmon_stats() 473 rmon_stats->hist[2] = in lan966x_get_eth_rmon_stats() 476 rmon_stats->hist[3] = in lan966x_get_eth_rmon_stats() 479 rmon_stats->hist[4] = in lan966x_get_eth_rmon_stats() [all …]
|
/openbmc/linux/net/ethtool/ |
H A D | stats.c | 22 struct ethtool_rmon_stats rmon_stats; 146 data->rmon_stats.src = src; in stats_prepare_data() 159 dev->ethtool_ops->get_rmon_stats(dev, &data->rmon_stats, in stats_prepare_data() 355 data->rmon_stats.hist, data->rmon_ranges) || in stats_put_rmon_stats() 357 data->rmon_stats.hist_tx, data->rmon_ranges)) in stats_put_rmon_stats() 361 data->rmon_stats.undersize_pkts) || in stats_put_rmon_stats() 363 data->rmon_stats.oversize_pkts) || in stats_put_rmon_stats() 365 data->rmon_stats.fragments) || in stats_put_rmon_stats() 367 data->rmon_stats.jabbers)) in stats_put_rmon_stats() 550 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_ethtool.c | 936 struct ethtool_rmon_stats *rmon_stats, in sparx5_get_eth_rmon_stats() argument 956 rmon_stats->undersize_pkts = portstats[spx5_stats_rx_undersize_cnt] + in sparx5_get_eth_rmon_stats() 958 rmon_stats->oversize_pkts = portstats[spx5_stats_rx_oversize_cnt] + in sparx5_get_eth_rmon_stats() 960 rmon_stats->fragments = portstats[spx5_stats_rx_fragments_cnt] + in sparx5_get_eth_rmon_stats() 962 rmon_stats->jabbers = portstats[spx5_stats_rx_jabbers_cnt] + in sparx5_get_eth_rmon_stats() 964 rmon_stats->hist[0] = portstats[spx5_stats_rx_size64_cnt] + in sparx5_get_eth_rmon_stats() 966 rmon_stats->hist[1] = portstats[spx5_stats_rx_size65to127_cnt] + in sparx5_get_eth_rmon_stats() 968 rmon_stats->hist[2] = portstats[spx5_stats_rx_size128to255_cnt] + in sparx5_get_eth_rmon_stats() 970 rmon_stats->hist[3] = portstats[spx5_stats_rx_size256to511_cnt] + in sparx5_get_eth_rmon_stats() 972 rmon_stats->hist[4] = portstats[spx5_stats_rx_size512to1023_cnt] + in sparx5_get_eth_rmon_stats() [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | rzn1_a5psw.c | 859 struct ethtool_rmon_stats *rmon_stats, in a5psw_get_rmon_stats() argument 865 rmon_stats->undersize_pkts = RD(etherStatsUndersizePkts); in a5psw_get_rmon_stats() 866 rmon_stats->oversize_pkts = RD(etherStatsOversizePkts); in a5psw_get_rmon_stats() 867 rmon_stats->fragments = RD(etherStatsFragments); in a5psw_get_rmon_stats() 868 rmon_stats->jabbers = RD(etherStatsJabbers); in a5psw_get_rmon_stats() 869 rmon_stats->hist[0] = RD(etherStatsPkts64Octets); in a5psw_get_rmon_stats() 870 rmon_stats->hist[1] = RD(etherStatsPkts65to127Octets); in a5psw_get_rmon_stats() 871 rmon_stats->hist[2] = RD(etherStatsPkts128to255Octets); in a5psw_get_rmon_stats() 872 rmon_stats->hist[3] = RD(etherStatsPkts256to511Octets); in a5psw_get_rmon_stats() 873 rmon_stats->hist[4] = RD(etherStatsPkts512to1023Octets); in a5psw_get_rmon_stats() [all …]
|
/openbmc/linux/include/linux/ |
H A D | ethtool_netlink.h | 41 struct ethtool_rmon_stats *rmon_stats); 112 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument
|
H A D | ethtool.h | 903 struct ethtool_rmon_stats *rmon_stats,
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 4051 struct ethtool_rmon_stats *rmon_stats, in bnxt_get_rmon_stats() argument 4063 rmon_stats->jabbers = in bnxt_get_rmon_stats() 4065 rmon_stats->oversize_pkts = in bnxt_get_rmon_stats() 4067 rmon_stats->undersize_pkts = in bnxt_get_rmon_stats() 4070 rmon_stats->hist[0] = BNXT_GET_RX_PORT_STATS64(rx, rx_64b_frames); in bnxt_get_rmon_stats() 4071 rmon_stats->hist[1] = BNXT_GET_RX_PORT_STATS64(rx, rx_65b_127b_frames); in bnxt_get_rmon_stats() 4072 rmon_stats->hist[2] = BNXT_GET_RX_PORT_STATS64(rx, rx_128b_255b_frames); in bnxt_get_rmon_stats() 4073 rmon_stats->hist[3] = BNXT_GET_RX_PORT_STATS64(rx, rx_256b_511b_frames); in bnxt_get_rmon_stats() 4074 rmon_stats->hist[4] = in bnxt_get_rmon_stats() 4076 rmon_stats->hist[5] = in bnxt_get_rmon_stats() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 457 struct ethtool_rmon_stats *rmon_stats, in enetc_get_rmon_stats() argument 466 switch (rmon_stats->src) { in enetc_get_rmon_stats() 468 enetc_rmon_stats(hw, 0, rmon_stats); in enetc_get_rmon_stats() 472 enetc_rmon_stats(hw, 1, rmon_stats); in enetc_get_rmon_stats() 475 ethtool_aggregate_rmon_stats(ndev, rmon_stats); in enetc_get_rmon_stats()
|
/openbmc/linux/drivers/net/dsa/ocelot/ |
H A D | felix.c | 1170 struct ethtool_rmon_stats *rmon_stats, in felix_get_rmon_stats() argument 1175 ocelot_port_get_rmon_stats(ocelot, port, rmon_stats, ranges); in felix_get_rmon_stats()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_ethtool.c | 2407 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument 2412 mlx5e_stats_rmon_get(priv, rmon_stats, ranges); in mlx5e_get_rmon_stats()
|
/openbmc/linux/include/net/ |
H A D | dsa.h | 913 struct ethtool_rmon_stats *rmon_stats,
|
/openbmc/linux/include/soc/mscc/ |
H A D | ocelot.h | 1018 struct ethtool_rmon_stats *rmon_stats,
|
/openbmc/linux/net/dsa/ |
H A D | slave.c | 1158 struct ethtool_rmon_stats *rmon_stats, in dsa_slave_get_rmon_stats() argument 1165 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_slave_get_rmon_stats()
|