Home
last modified time | relevance | path

Searched refs:ctrl_stats (Results 1 – 17 of 17) sorted by relevance

/openbmc/linux/net/ethtool/
H A Dstats.c21 struct ethtool_eth_ctrl_stats ctrl_stats;
145 data->ctrl_stats.src = src; in stats_prepare_data()
156 dev->ethtool_ops->get_eth_ctrl_stats(dev, &data->ctrl_stats); in stats_prepare_data()
305 data->ctrl_stats.MACControlFramesTransmitted) || in stats_put_ctrl_stats()
307 data->ctrl_stats.MACControlFramesReceived) || in stats_put_ctrl_stats()
309 data->ctrl_stats.UnsupportedOpcodesReceived)) in stats_put_ctrl_stats()
510 struct ethtool_eth_ctrl_stats *ctrl_stats) in ethtool_aggregate_ctrl_stats() argument
523 ethtool_aggregate_stats(ctrl_stats, &emac, &pmac, in ethtool_aggregate_ctrl_stats()
524 sizeof(ctrl_stats->stats), in ethtool_aggregate_ctrl_stats()
/openbmc/linux/include/linux/
H A Dethtool_netlink.h37 struct ethtool_eth_ctrl_stats *ctrl_stats);
100 struct ethtool_eth_ctrl_stats *ctrl_stats) in ethtool_aggregate_ctrl_stats() argument
H A Dethtool.h901 struct ethtool_eth_ctrl_stats *ctrl_stats);
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_stats.c648 struct ethtool_eth_ctrl_stats *ctrl_stats = priv; in ocelot_port_ctrl_stats_cb() local
650 ctrl_stats->MACControlFramesReceived = s[OCELOT_STAT_RX_CONTROL]; in ocelot_port_ctrl_stats_cb()
657 struct ethtool_eth_ctrl_stats *ctrl_stats = priv; in ocelot_port_pmac_ctrl_stats_cb() local
659 ctrl_stats->MACControlFramesReceived = s[OCELOT_STAT_RX_PMAC_CONTROL]; in ocelot_port_pmac_ctrl_stats_cb()
663 struct ethtool_eth_ctrl_stats *ctrl_stats) in ocelot_port_get_eth_ctrl_stats() argument
667 switch (ctrl_stats->src) { in ocelot_port_get_eth_ctrl_stats()
669 ocelot_port_stats_run(ocelot, port, ctrl_stats, in ocelot_port_get_eth_ctrl_stats()
674 ocelot_port_stats_run(ocelot, port, ctrl_stats, in ocelot_port_get_eth_ctrl_stats()
679 ethtool_aggregate_ctrl_stats(dev, ctrl_stats); in ocelot_port_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp_ethtool.c475 struct ethtool_eth_ctrl_stats *ctrl_stats) in bcmasp_get_eth_ctrl_stats() argument
479 ctrl_stats->MACControlFramesTransmitted = umac_rl(intf, UMC_GTXCF); in bcmasp_get_eth_ctrl_stats()
480 ctrl_stats->MACControlFramesReceived = umac_rl(intf, UMC_GRXCF); in bcmasp_get_eth_ctrl_stats()
481 ctrl_stats->UnsupportedOpcodesReceived = umac_rl(intf, UMC_GRXUO); in bcmasp_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c436 struct ethtool_eth_ctrl_stats *ctrl_stats) in enetc_get_eth_ctrl_stats() argument
442 switch (ctrl_stats->src) { in enetc_get_eth_ctrl_stats()
444 enetc_ctrl_stats(hw, 0, ctrl_stats); in enetc_get_eth_ctrl_stats()
448 enetc_ctrl_stats(hw, 1, ctrl_stats); in enetc_get_eth_ctrl_stats()
451 ethtool_aggregate_ctrl_stats(ndev, ctrl_stats); in enetc_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_ethtool.c1135 struct ethtool_eth_ctrl_stats *ctrl_stats) in mlxsw_sp_get_eth_ctrl_stats() argument
1143 ctrl_stats->MACControlFramesTransmitted = in mlxsw_sp_get_eth_ctrl_stats()
1145 ctrl_stats->MACControlFramesReceived = in mlxsw_sp_get_eth_ctrl_stats()
1147 ctrl_stats->UnsupportedOpcodesReceived = in mlxsw_sp_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/dsa/
H A Drzn1_a5psw.c882 struct ethtool_eth_ctrl_stats *ctrl_stats) in a5psw_get_eth_ctrl_stats() argument
888 ctrl_stats->MACControlFramesTransmitted = stat; in a5psw_get_eth_ctrl_stats()
890 ctrl_stats->MACControlFramesReceived = stat; in a5psw_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_stats.h125 struct ethtool_eth_ctrl_stats *ctrl_stats);
H A Den_stats.c972 struct ethtool_eth_ctrl_stats *ctrl_stats) in mlx5e_stats_eth_ctrl_get() argument
980 ctrl_stats->MACControlFramesTransmitted = in mlx5e_stats_eth_ctrl_get()
984 ctrl_stats->MACControlFramesReceived = in mlx5e_stats_eth_ctrl_get()
988 ctrl_stats->UnsupportedOpcodesReceived = in mlx5e_stats_eth_ctrl_get()
H A Den_ethtool.c2399 struct ethtool_eth_ctrl_stats *ctrl_stats) in mlx5e_get_eth_ctrl_stats() argument
2403 mlx5e_stats_eth_ctrl_get(priv, ctrl_stats); in mlx5e_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/dsa/realtek/
H A Drtl8365mb.c1421 struct ethtool_eth_ctrl_stats *ctrl_stats) in rtl8365mb_get_ctrl_stats() argument
1432 &ctrl_stats->UnsupportedOpcodesReceived); in rtl8365mb_get_ctrl_stats()
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c1179 struct ethtool_eth_ctrl_stats *ctrl_stats) in felix_get_eth_ctrl_stats() argument
1183 ocelot_port_get_eth_ctrl_stats(ocelot, port, ctrl_stats); in felix_get_eth_ctrl_stats()
/openbmc/linux/include/net/
H A Ddsa.h911 struct ethtool_eth_ctrl_stats *ctrl_stats);
/openbmc/linux/include/soc/mscc/
H A Docelot.h1021 struct ethtool_eth_ctrl_stats *ctrl_stats);
/openbmc/linux/net/dsa/
H A Dslave.c1147 struct ethtool_eth_ctrl_stats *ctrl_stats) in dsa_slave_get_eth_ctrl_stats() argument
1153 ds->ops->get_eth_ctrl_stats(ds, dp->index, ctrl_stats); in dsa_slave_get_eth_ctrl_stats()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c4023 struct ethtool_eth_ctrl_stats *ctrl_stats) in bnxt_get_eth_ctrl_stats() argument
4032 ctrl_stats->MACControlFramesReceived = in bnxt_get_eth_ctrl_stats()