| /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 …]
|
| /linux/drivers/net/ethernet/ti/icssg/ |
| H A D | icssg_ethtool.c | 187 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument 194 rmon_stats->undersize_pkts = emac_get_stat_by_name(emac, "rx_bucket1_frames") - in emac_get_rmon_stats() 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() [all …]
|
| /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->hist[5] = stats->rx_framesize_1024_1518; 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->hist[4] = in lan966x_get_eth_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
|
| /linux/drivers/net/dsa/mxl862xx/ |
| H A D | mxl862xx.c | 1883 struct ethtool_rmon_stats *rmon_stats, in mxl862xx_get_rmon_stats() argument 1891 rmon_stats->undersize_pkts = le32_to_cpu(cnt.rx_under_size_good_pkts); in mxl862xx_get_rmon_stats() 1892 rmon_stats->oversize_pkts = le32_to_cpu(cnt.rx_oversize_good_pkts); in mxl862xx_get_rmon_stats() 1893 rmon_stats->fragments = le32_to_cpu(cnt.rx_under_size_error_pkts); in mxl862xx_get_rmon_stats() 1894 rmon_stats->jabbers = le32_to_cpu(cnt.rx_oversize_error_pkts); in mxl862xx_get_rmon_stats() 1896 rmon_stats->hist[0] = le32_to_cpu(cnt.rx64byte_pkts); in mxl862xx_get_rmon_stats() 1897 rmon_stats->hist[1] = le32_to_cpu(cnt.rx127byte_pkts); in mxl862xx_get_rmon_stats() 1898 rmon_stats->hist[2] = le32_to_cpu(cnt.rx255byte_pkts); in mxl862xx_get_rmon_stats() 1899 rmon_stats->hist[3] = le32_to_cpu(cnt.rx511byte_pkts); in mxl862xx_get_rmon_stats() 1900 rmon_stats->hist[4] = le32_to_cpu(cnt.rx1023byte_pkts); in mxl862xx_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/xilinx/ |
| H A D | xilinx_axienet_main.c | 2461 struct ethtool_rmon_stats *rmon_stats, in axienet_ethtool_get_rmon_stats() argument 2472 rmon_stats->undersize_pkts = in axienet_ethtool_get_rmon_stats() 2474 rmon_stats->oversize_pkts = in axienet_ethtool_get_rmon_stats() 2476 rmon_stats->fragments = in axienet_ethtool_get_rmon_stats() 2479 rmon_stats->hist[0] = in axienet_ethtool_get_rmon_stats() 2481 rmon_stats->hist[1] = in axienet_ethtool_get_rmon_stats() 2483 rmon_stats->hist[2] = in axienet_ethtool_get_rmon_stats() 2485 rmon_stats->hist[3] = in axienet_ethtool_get_rmon_stats() 2487 rmon_stats->hist[4] = in axienet_ethtool_get_rmon_stats() 2489 rmon_stats->hist[5] = in axienet_ethtool_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/spacemit/ |
| H A D | k1_emac.c | 1227 struct ethtool_rmon_stats *rmon_stats, in emac_get_rmon_stats() argument 1241 rmon_stats->undersize_pkts = rx_stats->stats.rx_len_undersize_pkts; in emac_get_rmon_stats() 1242 rmon_stats->oversize_pkts = rx_stats->stats.rx_len_oversize_pkts; in emac_get_rmon_stats() 1243 rmon_stats->fragments = rx_stats->stats.rx_len_fragment_pkts; in emac_get_rmon_stats() 1244 rmon_stats->jabbers = rx_stats->stats.rx_len_jabber_pkts; in emac_get_rmon_stats() 1248 rmon_stats->hist[0] = rx_stats->stats.rx_64_pkts; in emac_get_rmon_stats() 1249 rmon_stats->hist[1] = rx_stats->stats.rx_65_127_pkts; in emac_get_rmon_stats() 1250 rmon_stats->hist[2] = rx_stats->stats.rx_128_255_pkts; in emac_get_rmon_stats() 1251 rmon_stats->hist[3] = rx_stats->stats.rx_256_511_pkts; in emac_get_rmon_stats() 1252 rmon_stats->hist[4] = rx_stats->stats.rx_512_1023_pkts; in emac_get_rmon_stats() [all …]
|
| /linux/drivers/net/dsa/ |
| H A D | mt7530.c | 869 struct ethtool_rmon_stats *rmon_stats, in mt7530_get_rmon_stats() argument 875 &rmon_stats->undersize_pkts); in mt7530_get_rmon_stats() 877 &rmon_stats->oversize_pkts); in mt7530_get_rmon_stats() 879 &rmon_stats->fragments); in mt7530_get_rmon_stats() 881 &rmon_stats->jabbers); in mt7530_get_rmon_stats() 884 &rmon_stats->hist[0]); in mt7530_get_rmon_stats() 886 &rmon_stats->hist[1]); in mt7530_get_rmon_stats() 888 &rmon_stats->hist[2]); in mt7530_get_rmon_stats() 890 &rmon_stats->hist[3]); in mt7530_get_rmon_stats() 892 &rmon_stats->hist[4]); in mt7530_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 5633 struct ethtool_rmon_stats *rmon_stats, in bnxt_get_rmon_stats() argument 5645 rmon_stats->jabbers = in bnxt_get_rmon_stats() 5647 rmon_stats->oversize_pkts = in bnxt_get_rmon_stats() 5649 rmon_stats->undersize_pkts = in bnxt_get_rmon_stats() 5652 rmon_stats->hist[0] = BNXT_GET_RX_PORT_STATS64(rx, rx_64b_frames); in bnxt_get_rmon_stats() 5653 rmon_stats->hist[1] = BNXT_GET_RX_PORT_STATS64(rx, rx_65b_127b_frames); in bnxt_get_rmon_stats() 5654 rmon_stats->hist[2] = BNXT_GET_RX_PORT_STATS64(rx, rx_128b_255b_frames); in bnxt_get_rmon_stats() 5655 rmon_stats->hist[3] = BNXT_GET_RX_PORT_STATS64(rx, rx_256b_511b_frames); in bnxt_get_rmon_stats() 5656 rmon_stats->hist[4] = in bnxt_get_rmon_stats() 5658 rmon_stats->hist[5] = in bnxt_get_rmon_stats() [all …]
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_ethtool.c | 699 struct ethtool_rmon_stats *rmon_stats) in enetc_get_mac_rmon_stats() argument 705 enetc_rmon_stats(hw, mac, rmon_stats); in enetc_get_mac_rmon_stats() 708 enetc4_rmon_stats(hw, mac, rmon_stats); in enetc_get_mac_rmon_stats() 716 struct ethtool_rmon_stats *rmon_stats, in enetc_get_rmon_stats() argument 724 switch (rmon_stats->src) { in enetc_get_rmon_stats() 726 enetc_get_mac_rmon_stats(si, 0, rmon_stats); in enetc_get_rmon_stats() 730 enetc_get_mac_rmon_stats(si, 1, rmon_stats); in enetc_get_rmon_stats() 733 ethtool_aggregate_rmon_stats(ndev, rmon_stats); in enetc_get_rmon_stats()
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_main.c | 3541 struct ethtool_rmon_stats *rmon_stats, in macb_get_rmon_stats() argument 3549 rmon_stats->undersize_pkts = hwstat->rx_undersize_pkts; in macb_get_rmon_stats() 3550 rmon_stats->oversize_pkts = hwstat->rx_oversize_pkts; in macb_get_rmon_stats() 3551 rmon_stats->jabbers = hwstat->rx_jabbers; in macb_get_rmon_stats() 3567 struct ethtool_rmon_stats *rmon_stats, in gem_get_rmon_stats() argument 3575 rmon_stats->undersize_pkts = hwstat->rx_undersized_frames; in gem_get_rmon_stats() 3576 rmon_stats->oversize_pkts = hwstat->rx_oversize_frames; in gem_get_rmon_stats() 3577 rmon_stats->jabbers = hwstat->rx_jabbers; in gem_get_rmon_stats() 3578 rmon_stats->hist[0] = hwstat->rx_64_byte_frames; in gem_get_rmon_stats() 3579 rmon_stats->hist[1] = hwstat->rx_65_127_byte_frames; in gem_get_rmon_stats() [all …]
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | felix.c | 1308 struct ethtool_rmon_stats *rmon_stats, in felix_get_rmon_stats() argument 1313 ocelot_port_get_rmon_stats(ocelot, port, rmon_stats, ranges); in felix_get_rmon_stats()
|
| /linux/include/soc/mscc/ |
| H A D | ocelot.h | 1027 struct ethtool_rmon_stats *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()
|