Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_stats.c201 struct ethtool_rmon_stats *rmon_stats = priv; in ocelot_port_rmon_stats_cb() local
203 rmon_stats->undersize_pkts = s[OCELOT_STAT_RX_SHORTS]; in ocelot_port_rmon_stats_cb()
204 rmon_stats->oversize_pkts = s[OCELOT_STAT_RX_LONGS]; in ocelot_port_rmon_stats_cb()
205 rmon_stats->fragments = s[OCELOT_STAT_RX_FRAGMENTS]; in ocelot_port_rmon_stats_cb()
206 rmon_stats->jabbers = s[OCELOT_STAT_RX_JABBERS]; in ocelot_port_rmon_stats_cb()
208 rmon_stats->hist[0] = s[OCELOT_STAT_RX_64]; in ocelot_port_rmon_stats_cb()
209 rmon_stats->hist[1] = s[OCELOT_STAT_RX_65_127]; in ocelot_port_rmon_stats_cb()
210 rmon_stats->hist[2] = s[OCELOT_STAT_RX_128_255]; in ocelot_port_rmon_stats_cb()
211 rmon_stats->hist[3] = s[OCELOT_STAT_RX_256_511]; in ocelot_port_rmon_stats_cb()
212 rmon_stats->hist[4] = s[OCELOT_STAT_RX_512_1023]; in ocelot_port_rmon_stats_cb()
[all …]
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_ethtool.c442 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 …]
/linux-6.1.9/net/ethtool/
Dstats.c21 struct ethtool_rmon_stats rmon_stats;
135 dev->ethtool_ops->get_rmon_stats(dev, &data->rmon_stats, in stats_prepare_data()
329 data->rmon_stats.hist, data->rmon_ranges) || in stats_put_rmon_stats()
331 data->rmon_stats.hist_tx, data->rmon_ranges)) in stats_put_rmon_stats()
335 data->rmon_stats.undersize_pkts) || in stats_put_rmon_stats()
337 data->rmon_stats.oversize_pkts) || in stats_put_rmon_stats()
339 data->rmon_stats.fragments) || in stats_put_rmon_stats()
341 data->rmon_stats.jabbers)) in stats_put_rmon_stats()
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ethtool.c936 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 …]
/linux-6.1.9/drivers/net/dsa/
Drzn1_a5psw.c626 struct ethtool_rmon_stats *rmon_stats, in a5psw_get_rmon_stats() argument
632 rmon_stats->undersize_pkts = RD(etherStatsUndersizePkts); in a5psw_get_rmon_stats()
633 rmon_stats->oversize_pkts = RD(etherStatsOversizePkts); in a5psw_get_rmon_stats()
634 rmon_stats->fragments = RD(etherStatsFragments); in a5psw_get_rmon_stats()
635 rmon_stats->jabbers = RD(etherStatsJabbers); in a5psw_get_rmon_stats()
636 rmon_stats->hist[0] = RD(etherStatsPkts64Octets); in a5psw_get_rmon_stats()
637 rmon_stats->hist[1] = RD(etherStatsPkts65to127Octets); in a5psw_get_rmon_stats()
638 rmon_stats->hist[2] = RD(etherStatsPkts128to255Octets); in a5psw_get_rmon_stats()
639 rmon_stats->hist[3] = RD(etherStatsPkts256to511Octets); in a5psw_get_rmon_stats()
640 rmon_stats->hist[4] = RD(etherStatsPkts512to1023Octets); in a5psw_get_rmon_stats()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c3956 struct ethtool_rmon_stats *rmon_stats, in bnxt_get_rmon_stats() argument
3968 rmon_stats->jabbers = in bnxt_get_rmon_stats()
3970 rmon_stats->oversize_pkts = in bnxt_get_rmon_stats()
3972 rmon_stats->undersize_pkts = in bnxt_get_rmon_stats()
3975 rmon_stats->hist[0] = BNXT_GET_RX_PORT_STATS64(rx, rx_64b_frames); in bnxt_get_rmon_stats()
3976 rmon_stats->hist[1] = BNXT_GET_RX_PORT_STATS64(rx, rx_65b_127b_frames); in bnxt_get_rmon_stats()
3977 rmon_stats->hist[2] = BNXT_GET_RX_PORT_STATS64(rx, rx_128b_255b_frames); in bnxt_get_rmon_stats()
3978 rmon_stats->hist[3] = BNXT_GET_RX_PORT_STATS64(rx, rx_256b_511b_frames); in bnxt_get_rmon_stats()
3979 rmon_stats->hist[4] = in bnxt_get_rmon_stats()
3981 rmon_stats->hist[5] = in bnxt_get_rmon_stats()
[all …]
/linux-6.1.9/include/linux/
Dethtool.h755 struct ethtool_rmon_stats *rmon_stats,
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c402 struct ethtool_rmon_stats *rmon_stats, in enetc_get_rmon_stats() argument
408 enetc_rmon_stats(hw, 0, rmon_stats, ranges); in enetc_get_rmon_stats()
/linux-6.1.9/drivers/net/dsa/ocelot/
Dfelix.c1167 struct ethtool_rmon_stats *rmon_stats, in felix_get_rmon_stats() argument
1172 ocelot_port_get_rmon_stats(ocelot, port, rmon_stats, ranges); in felix_get_rmon_stats()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_ethtool.c2388 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument
2393 mlx5e_stats_rmon_get(priv, rmon_stats, ranges); in mlx5e_get_rmon_stats()
/linux-6.1.9/include/soc/mscc/
Docelot.h1157 struct ethtool_rmon_stats *rmon_stats,
/linux-6.1.9/include/net/
Ddsa.h923 struct ethtool_rmon_stats *rmon_stats,
/linux-6.1.9/net/dsa/
Dslave.c1049 struct ethtool_rmon_stats *rmon_stats, in dsa_slave_get_rmon_stats() argument
1056 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_slave_get_rmon_stats()