Home
last modified time | relevance | path

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

/linux-6.15/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 …]
/linux-6.15/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_ethtool.c402 struct ethtool_rmon_stats *rmon_stats, in bcmasp_get_rmon_stats() argument
411 rmon_stats->fragments = umac_rl(intf, UMC_RRFRG); in bcmasp_get_rmon_stats()
412 rmon_stats->jabbers = umac_rl(intf, UMC_GRJBR); in bcmasp_get_rmon_stats()
414 rmon_stats->hist[0] = umac_rl(intf, UMC_GR64); in bcmasp_get_rmon_stats()
415 rmon_stats->hist[1] = umac_rl(intf, UMC_GR127); in bcmasp_get_rmon_stats()
416 rmon_stats->hist[2] = umac_rl(intf, UMC_GR255); in bcmasp_get_rmon_stats()
417 rmon_stats->hist[3] = umac_rl(intf, UMC_GR511); in bcmasp_get_rmon_stats()
418 rmon_stats->hist[4] = umac_rl(intf, UMC_GR1023); in bcmasp_get_rmon_stats()
419 rmon_stats->hist[5] = umac_rl(intf, UMC_GR1518); in bcmasp_get_rmon_stats()
420 rmon_stats->hist[6] = umac_rl(intf, UMC_GRMGV); in bcmasp_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/ti/icssg/
H A Dicssg_ethtool.c187 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument
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()
206 rmon_stats->hist_tx[3] = emac_get_stat_by_name(emac, "tx_bucket4_frames"); in emac_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/hisilicon/hibmcge/
H A Dhbg_ethtool.c445 struct ethtool_rmon_stats *rmon_stats, in hbg_ethtool_get_rmon_stats() argument
457 rmon_stats->fragments = stats->rx_desc_frag_cnt; in hbg_ethtool_get_rmon_stats()
458 rmon_stats->hist[0] = stats->rx_framesize_64; in hbg_ethtool_get_rmon_stats()
459 rmon_stats->hist[1] = stats->rx_framesize_65_127; in hbg_ethtool_get_rmon_stats()
460 rmon_stats->hist[2] = stats->rx_framesize_128_255; in hbg_ethtool_get_rmon_stats()
461 rmon_stats->hist[3] = stats->rx_framesize_256_511; in hbg_ethtool_get_rmon_stats()
462 rmon_stats->hist[4] = stats->rx_framesize_512_1023; in hbg_ethtool_get_rmon_stats()
463 rmon_stats->hist[5] = stats->rx_framesize_1024_1518; in hbg_ethtool_get_rmon_stats()
464 rmon_stats->hist[6] = stats->rx_framesize_bt_1518; in hbg_ethtool_get_rmon_stats()
466 rmon_stats->hist_tx[0] = stats->tx_framesize_64; in hbg_ethtool_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ethtool.c453 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()
474 rmon_stats->hist[5] = in lan966x_get_eth_rmon_stats()
477 rmon_stats->hist[6] = in lan966x_get_eth_rmon_stats()
481 rmon_stats->hist_tx[0] = in lan966x_get_eth_rmon_stats()
[all …]
/linux-6.15/net/ethtool/
H A Dstats.c25 struct ethtool_rmon_stats rmon_stats;
167 data->rmon_stats.src = src; in stats_prepare_data()
407 data->rmon_stats.hist, data->rmon_ranges) || in stats_put_rmon_stats()
409 data->rmon_stats.hist_tx, data->rmon_ranges)) in stats_put_rmon_stats()
413 data->rmon_stats.undersize_pkts) || in stats_put_rmon_stats()
415 data->rmon_stats.oversize_pkts) || in stats_put_rmon_stats()
417 data->rmon_stats.fragments) || in stats_put_rmon_stats()
419 data->rmon_stats.jabbers)) in stats_put_rmon_stats()
605 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument
619 ethtool_aggregate_stats(rmon_stats, &emac, &pmac, in ethtool_aggregate_rmon_stats()
[all …]
/linux-6.15/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 …]
/linux-6.15/drivers/net/dsa/
H A Drzn1_a5psw.c867 struct ethtool_rmon_stats *rmon_stats, in a5psw_get_rmon_stats() argument
873 rmon_stats->undersize_pkts = RD(etherStatsUndersizePkts); in a5psw_get_rmon_stats()
874 rmon_stats->oversize_pkts = RD(etherStatsOversizePkts); in a5psw_get_rmon_stats()
875 rmon_stats->fragments = RD(etherStatsFragments); in a5psw_get_rmon_stats()
876 rmon_stats->jabbers = RD(etherStatsJabbers); in a5psw_get_rmon_stats()
877 rmon_stats->hist[0] = RD(etherStatsPkts64Octets); in a5psw_get_rmon_stats()
878 rmon_stats->hist[1] = RD(etherStatsPkts65to127Octets); in a5psw_get_rmon_stats()
879 rmon_stats->hist[2] = RD(etherStatsPkts128to255Octets); in a5psw_get_rmon_stats()
880 rmon_stats->hist[3] = RD(etherStatsPkts256to511Octets); in a5psw_get_rmon_stats()
881 rmon_stats->hist[4] = RD(etherStatsPkts512to1023Octets); in a5psw_get_rmon_stats()
[all …]
/linux-6.15/include/linux/
H A Dethtool_netlink.h43 struct ethtool_rmon_stats *rmon_stats);
114 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument
H A Dethtool.h1141 struct ethtool_rmon_stats *rmon_stats,
/linux-6.15/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c2459 rmon_stats->fragments = in axienet_ethtool_get_rmon_stats()
2462 rmon_stats->hist[0] = in axienet_ethtool_get_rmon_stats()
2464 rmon_stats->hist[1] = in axienet_ethtool_get_rmon_stats()
2466 rmon_stats->hist[2] = in axienet_ethtool_get_rmon_stats()
2468 rmon_stats->hist[3] = in axienet_ethtool_get_rmon_stats()
2470 rmon_stats->hist[4] = in axienet_ethtool_get_rmon_stats()
2472 rmon_stats->hist[5] = in axienet_ethtool_get_rmon_stats()
2474 rmon_stats->hist[6] = in axienet_ethtool_get_rmon_stats()
2477 rmon_stats->hist_tx[0] = in axienet_ethtool_get_rmon_stats()
2479 rmon_stats->hist_tx[1] = in axienet_ethtool_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c5398 rmon_stats->jabbers = in bnxt_get_rmon_stats()
5409 rmon_stats->hist[4] = in bnxt_get_rmon_stats()
5411 rmon_stats->hist[5] = in bnxt_get_rmon_stats()
5413 rmon_stats->hist[6] = in bnxt_get_rmon_stats()
5415 rmon_stats->hist[7] = in bnxt_get_rmon_stats()
5417 rmon_stats->hist[8] = in bnxt_get_rmon_stats()
5419 rmon_stats->hist[9] = in bnxt_get_rmon_stats()
5422 rmon_stats->hist_tx[0] = in bnxt_get_rmon_stats()
5424 rmon_stats->hist_tx[1] = in bnxt_get_rmon_stats()
5426 rmon_stats->hist_tx[2] = in bnxt_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/cadence/
H A Dmacb_main.c3349 struct ethtool_rmon_stats *rmon_stats, in macb_get_rmon_stats() argument
3358 rmon_stats->oversize_pkts = hwstat->rx_oversize_pkts; in macb_get_rmon_stats()
3359 rmon_stats->jabbers = hwstat->rx_jabbers; in macb_get_rmon_stats()
3375 struct ethtool_rmon_stats *rmon_stats, in gem_get_rmon_stats() argument
3385 rmon_stats->jabbers = hwstat->rx_jabbers; in gem_get_rmon_stats()
3386 rmon_stats->hist[0] = hwstat->rx_64_byte_frames; in gem_get_rmon_stats()
3387 rmon_stats->hist[1] = hwstat->rx_65_127_byte_frames; in gem_get_rmon_stats()
3388 rmon_stats->hist[2] = hwstat->rx_128_255_byte_frames; in gem_get_rmon_stats()
3389 rmon_stats->hist[3] = hwstat->rx_256_511_byte_frames; in gem_get_rmon_stats()
3390 rmon_stats->hist[4] = hwstat->rx_512_1023_byte_frames; in gem_get_rmon_stats()
[all …]
/linux-6.15/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c444 struct ethtool_rmon_stats *rmon_stats, in enetc_get_rmon_stats() argument
453 switch (rmon_stats->src) { in enetc_get_rmon_stats()
455 enetc_rmon_stats(hw, 0, rmon_stats); in enetc_get_rmon_stats()
459 enetc_rmon_stats(hw, 1, rmon_stats); in enetc_get_rmon_stats()
462 ethtool_aggregate_rmon_stats(ndev, rmon_stats); in enetc_get_rmon_stats()
/linux-6.15/drivers/net/dsa/ocelot/
H A Dfelix.c1287 struct ethtool_rmon_stats *rmon_stats, in felix_get_rmon_stats() argument
1292 ocelot_port_get_rmon_stats(ocelot, port, rmon_stats, ranges); in felix_get_rmon_stats()
/linux-6.15/include/soc/mscc/
H A Docelot.h1027 struct ethtool_rmon_stats *rmon_stats,
/linux-6.15/include/net/
H A Ddsa.h907 struct ethtool_rmon_stats *rmon_stats,
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c2607 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument
2612 mlx5e_stats_rmon_get(priv, rmon_stats, ranges); in mlx5e_get_rmon_stats()
/linux-6.15/net/dsa/
H A Duser.c1143 struct ethtool_rmon_stats *rmon_stats, in dsa_user_get_rmon_stats() argument
1150 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_user_get_rmon_stats()
/linux-6.15/drivers/net/dsa/mv88e6xxx/
H A Dchip.c1436 struct ethtool_rmon_stats *rmon_stats, in mv88e6xxx_get_rmon_stats() argument
1458 &rmon_stats->stats._member) in mv88e6xxx_get_rmon_stats()