Home
last modified time | relevance | path

Searched refs:rmon_stats (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_ethtool.c169 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument
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()
188 rmon_stats->hist_tx[3] = emac_get_stat_by_name(emac, "tx_bucket4_frames"); in emac_get_rmon_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_stats.c567 struct ethtool_rmon_stats *rmon_stats = priv; in ocelot_port_rmon_stats_cb() local
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()
582 rmon_stats->hist_tx[0] = s[OCELOT_STAT_TX_64]; in ocelot_port_rmon_stats_cb()
595 struct ethtool_rmon_stats *rmon_stats = priv; in ocelot_port_pmac_rmon_stats_cb() local
620 struct ethtool_rmon_stats *rmon_stats, in ocelot_port_get_rmon_stats() argument
627 switch (rmon_stats->src) { in ocelot_port_get_rmon_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_ethtool.c445 struct ethtool_rmon_stats *rmon_stats, in bcmasp_get_rmon_stats() argument
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()
462 rmon_stats->hist[5] = umac_rl(intf, UMC_GR1518); in bcmasp_get_rmon_stats()
463 rmon_stats->hist[6] = umac_rl(intf, UMC_GRMGV); in bcmasp_get_rmon_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ethtool.c461 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()
482 rmon_stats->hist[5] = in lan966x_get_eth_rmon_stats()
485 rmon_stats->hist[6] = in lan966x_get_eth_rmon_stats()
489 rmon_stats->hist_tx[0] = in lan966x_get_eth_rmon_stats()
[all …]
/openbmc/linux/net/ethtool/
H A Dstats.c22 struct ethtool_rmon_stats rmon_stats;
146 data->rmon_stats.src = src; 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
564 ethtool_aggregate_stats(rmon_stats, &emac, &pmac, in ethtool_aggregate_rmon_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_ethtool.c936 struct ethtool_rmon_stats *rmon_stats, in sparx5_get_eth_rmon_stats() argument
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()
976 rmon_stats->hist[6] = portstats[spx5_stats_rx_size1519tomax_cnt] + in sparx5_get_eth_rmon_stats()
[all …]
/openbmc/linux/include/linux/
H A Dethtool_netlink.h41 struct ethtool_rmon_stats *rmon_stats);
112 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument
H A Dethtool.h903 struct ethtool_rmon_stats *rmon_stats,
/openbmc/linux/drivers/net/dsa/
H A Drzn1_a5psw.c859 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/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c4063 rmon_stats->jabbers = 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()
4078 rmon_stats->hist[6] = in bnxt_get_rmon_stats()
4080 rmon_stats->hist[7] = in bnxt_get_rmon_stats()
4082 rmon_stats->hist[8] = in bnxt_get_rmon_stats()
4084 rmon_stats->hist[9] = in bnxt_get_rmon_stats()
4087 rmon_stats->hist_tx[0] = in bnxt_get_rmon_stats()
4089 rmon_stats->hist_tx[1] = in bnxt_get_rmon_stats()
4091 rmon_stats->hist_tx[2] = in bnxt_get_rmon_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c457 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 Dfelix.c1168 struct ethtool_rmon_stats *rmon_stats, in felix_get_rmon_stats() argument
1173 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 Den_ethtool.c2392 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument
2397 mlx5e_stats_rmon_get(priv, rmon_stats, ranges); in mlx5e_get_rmon_stats()
/openbmc/linux/include/net/
H A Ddsa.h913 struct ethtool_rmon_stats *rmon_stats,
/openbmc/linux/include/soc/mscc/
H A Docelot.h1010 struct ethtool_rmon_stats *rmon_stats,
/openbmc/linux/net/dsa/
H A Dslave.c1158 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()