/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 in ocelot_port_rmon_stats_cb() 595 struct ethtool_rmon_stats *rmon_stats = priv; ocelot_port_pmac_rmon_stats_cb() local 620 ocelot_port_get_rmon_stats(struct ocelot * ocelot,int port,struct ethtool_rmon_stats * rmon_stats,const struct ethtool_rmon_hist_range ** ranges) ocelot_port_get_rmon_stats() argument [all...] |
/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp_ethtool.c | 374 struct ethtool_rmon_stats *rmon_stats, in bcmasp_get_rmon_stats() argument 381 rmon_stats->undersize_pkts = umac_rl(intf, UMC_RRUND); in bcmasp_get_rmon_stats() 382 rmon_stats->oversize_pkts = umac_rl(intf, UMC_GROVR); in bcmasp_get_rmon_stats() 383 rmon_stats->fragments = umac_rl(intf, UMC_RRFRG); in bcmasp_get_rmon_stats() 384 rmon_stats->jabbers = umac_rl(intf, UMC_GRJBR); in bcmasp_get_rmon_stats() 386 rmon_stats->hist[0] = umac_rl(intf, UMC_GR64); in bcmasp_get_rmon_stats() 387 rmon_stats->hist[1] = umac_rl(intf, UMC_GR127); in bcmasp_get_rmon_stats() 388 rmon_stats->hist[2] = umac_rl(intf, UMC_GR255); in bcmasp_get_rmon_stats() 389 rmon_stats->hist[3] = umac_rl(intf, UMC_GR511); in bcmasp_get_rmon_stats() 390 rmon_stats in bcmasp_get_rmon_stats() [all...] |
/linux/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_mac.c | 680 struct fbnic_rmon_stats *rmon_stats) in fbnic_mac_get_rmon_stats() argument 682 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->undersize_pkts, in fbnic_mac_get_rmon_stats() 684 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->oversize_pkts, in fbnic_mac_get_rmon_stats() 686 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->fragments, in fbnic_mac_get_rmon_stats() 688 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->jabbers, in fbnic_mac_get_rmon_stats() 691 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->hist[0], in fbnic_mac_get_rmon_stats() 693 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->hist[1], in fbnic_mac_get_rmon_stats() 695 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->hist[2], in fbnic_mac_get_rmon_stats() 697 fbnic_mac_stat_rd64(fbd, reset, rmon_stats->hist[3], in fbnic_mac_get_rmon_stats() 699 fbnic_mac_stat_rd64(fbd, reset, rmon_stats in fbnic_mac_get_rmon_stats() [all...] |
H A D | fbnic_mac.h | 87 struct fbnic_rmon_stats *rmon_stats);
|
H A D | fbnic_ethtool.c | 1649 struct ethtool_rmon_stats *rmon_stats, in fbnic_get_rmon_stats() argument 1661 rmon_stats->undersize_pkts = in fbnic_get_rmon_stats() 1663 rmon_stats->oversize_pkts = in fbnic_get_rmon_stats() 1665 rmon_stats->fragments = in fbnic_get_rmon_stats() 1667 rmon_stats->jabbers = in fbnic_get_rmon_stats() 1671 rmon_stats->hist[i] = mac_stats->rmon.hist[i].value; in fbnic_get_rmon_stats() 1672 rmon_stats->hist_tx[i] = mac_stats->rmon.hist_tx[i].value; in fbnic_get_rmon_stats()
|
/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 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 in lan966x_get_eth_rmon_stats() [all...] |
/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 in sparx5_get_eth_rmon_stats() [all...] |
/linux/drivers/net/dsa/ |
H A D | rzn1_a5psw.c | 868 struct ethtool_rmon_stats *rmon_stats, in a5psw_get_rmon_stats() argument 874 rmon_stats->undersize_pkts = RD(etherStatsUndersizePkts); in a5psw_get_rmon_stats() 875 rmon_stats->oversize_pkts = RD(etherStatsOversizePkts); in a5psw_get_rmon_stats() 876 rmon_stats->fragments = RD(etherStatsFragments); in a5psw_get_rmon_stats() 877 rmon_stats->jabbers = RD(etherStatsJabbers); in a5psw_get_rmon_stats() 878 rmon_stats->hist[0] = RD(etherStatsPkts64Octets); in a5psw_get_rmon_stats() 879 rmon_stats->hist[1] = RD(etherStatsPkts65to127Octets); in a5psw_get_rmon_stats() 880 rmon_stats->hist[2] = RD(etherStatsPkts128to255Octets); in a5psw_get_rmon_stats() 881 rmon_stats->hist[3] = RD(etherStatsPkts256to511Octets); in a5psw_get_rmon_stats() 882 rmon_stats in a5psw_get_rmon_stats() [all...] |
H A D | mt7530.c | 866 struct ethtool_rmon_stats *rmon_stats, in mt7530_get_rmon_stats() argument 872 &rmon_stats->undersize_pkts); in mt7530_get_rmon_stats() 874 &rmon_stats->oversize_pkts); in mt7530_get_rmon_stats() 876 &rmon_stats->fragments); in mt7530_get_rmon_stats() 878 &rmon_stats->jabbers); in mt7530_get_rmon_stats() 881 &rmon_stats->hist[0]); in mt7530_get_rmon_stats() 883 &rmon_stats->hist[1]); in mt7530_get_rmon_stats() 885 &rmon_stats->hist[2]); in mt7530_get_rmon_stats() 887 &rmon_stats->hist[3]); in mt7530_get_rmon_stats() 889 &rmon_stats in mt7530_get_rmon_stats() [all...] |
/linux/include/linux/ |
H A D | ethtool_netlink.h | 43 struct ethtool_rmon_stats *rmon_stats); 116 struct ethtool_rmon_stats *rmon_stats) in ethtool_aggregate_rmon_stats() argument
|
H A D | ethtool.h | 1239 struct ethtool_rmon_stats *rmon_stats,
|
/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet_main.c | 2444 struct ethtool_rmon_stats *rmon_stats, in axienet_ethtool_get_rmon_stats() argument 2455 rmon_stats->undersize_pkts = in axienet_ethtool_get_rmon_stats() 2457 rmon_stats->oversize_pkts = in axienet_ethtool_get_rmon_stats() 2459 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 in axienet_ethtool_get_rmon_stats() [all...] |
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 5386 struct ethtool_rmon_stats *rmon_stats, in bnxt_get_rmon_stats() argument 5398 rmon_stats->jabbers = in bnxt_get_rmon_stats() 5400 rmon_stats->oversize_pkts = in bnxt_get_rmon_stats() 5402 rmon_stats->undersize_pkts = in bnxt_get_rmon_stats() 5405 rmon_stats->hist[0] = BNXT_GET_RX_PORT_STATS64(rx, rx_64b_frames); in bnxt_get_rmon_stats() 5406 rmon_stats->hist[1] = BNXT_GET_RX_PORT_STATS64(rx, rx_65b_127b_frames); in bnxt_get_rmon_stats() 5407 rmon_stats->hist[2] = BNXT_GET_RX_PORT_STATS64(rx, rx_128b_255b_frames); in bnxt_get_rmon_stats() 5408 rmon_stats->hist[3] = BNXT_GET_RX_PORT_STATS64(rx, rx_256b_511b_frames); in bnxt_get_rmon_stats() 5409 rmon_stats->hist[4] = in bnxt_get_rmon_stats() 5411 rmon_stats in bnxt_get_rmon_stats() [all...] |
/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()
|
/linux/drivers/net/dsa/ocelot/ |
H A D | felix.c | 1287 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/include/net/ |
H A D | dsa.h | 909 struct ethtool_rmon_stats *rmon_stats,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_ethtool.c | 2713 struct ethtool_rmon_stats *rmon_stats, in mlx5e_get_rmon_stats() argument 2718 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()
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 1436 struct ethtool_rmon_stats *rmon_stats, in mv88e6xxx_get_rmon_stats() argument 1458 &rmon_stats->stats._member) in mv88e6xxx_get_rmon_stats()
|