Home
last modified time | relevance | path

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

/openbmc/linux/net/ethtool/
H A Dpause.c118 const struct ethtool_pause_stats *pause_stats) in pause_put_stats() argument
123 if (nla_put_u32(skb, ETHTOOL_A_PAUSE_STATS_SRC, pause_stats->src)) in pause_put_stats()
130 if (ethtool_put_stat(skb, pause_stats->tx_pause_frames, in pause_put_stats()
132 ethtool_put_stat(skb, pause_stats->rx_pause_frames, in pause_put_stats()
H A Dstats.c530 struct ethtool_pause_stats *pause_stats) in ethtool_aggregate_pause_stats() argument
543 ethtool_aggregate_stats(pause_stats, &emac, &pmac, in ethtool_aggregate_pause_stats()
544 sizeof(pause_stats->stats), in ethtool_aggregate_pause_stats()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_stats.c490 struct ethtool_pause_stats *pause_stats = priv; in ocelot_port_pause_stats_cb() local
492 pause_stats->tx_pause_frames = s[OCELOT_STAT_TX_PAUSE]; in ocelot_port_pause_stats_cb()
493 pause_stats->rx_pause_frames = s[OCELOT_STAT_RX_PAUSE]; in ocelot_port_pause_stats_cb()
500 struct ethtool_pause_stats *pause_stats = priv; in ocelot_port_pmac_pause_stats_cb() local
502 pause_stats->tx_pause_frames = s[OCELOT_STAT_TX_PMAC_PAUSE]; in ocelot_port_pmac_pause_stats_cb()
503 pause_stats->rx_pause_frames = s[OCELOT_STAT_RX_PMAC_PAUSE]; in ocelot_port_pmac_pause_stats_cb()
521 struct ethtool_pause_stats *pause_stats) in ocelot_port_get_pause_stats() argument
525 switch (pause_stats->src) { in ocelot_port_get_pause_stats()
527 ocelot_port_stats_run(ocelot, port, pause_stats, in ocelot_port_get_pause_stats()
532 ocelot_port_stats_run(ocelot, port, pause_stats, in ocelot_port_get_pause_stats()
[all …]
/openbmc/linux/include/linux/
H A Dethtool_netlink.h39 struct ethtool_pause_stats *pause_stats);
106 struct ethtool_pause_stats *pause_stats) in ethtool_aggregate_pause_stats() argument
H A Dethtool.h825 struct ethtool_pause_stats *pause_stats);
/openbmc/linux/drivers/net/netdevsim/
H A Dethtool.c12 struct ethtool_pause_stats *pause_stats) in nsim_get_pause_stats() argument
17 pause_stats->rx_pause_frames = 1; in nsim_get_pause_stats()
19 pause_stats->tx_pause_frames = 2; in nsim_get_pause_stats()
/openbmc/linux/drivers/net/dsa/qca/
H A Dar9331.c234 struct ethtool_pause_stats pause_stats; member
608 struct ethtool_pause_stats *pstats = &port->pause_stats; in ar9331_read_stats()
677 struct ethtool_pause_stats *pause_stats) in ar9331_get_pause_stats() argument
683 memcpy(pause_stats, &p->pause_stats, sizeof(*pause_stats)); in ar9331_get_pause_stats()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c321 struct ethtool_pause_stats *pause_stats) in enetc_pause_stats() argument
323 pause_stats->tx_pause_frames = enetc_port_rd(hw, ENETC_PM_TXPF(mac)); in enetc_pause_stats()
324 pause_stats->rx_pause_frames = enetc_port_rd(hw, ENETC_PM_RXPF(mac)); in enetc_pause_stats()
328 struct ethtool_pause_stats *pause_stats) in enetc_get_pause_stats() argument
334 switch (pause_stats->src) { in enetc_get_pause_stats()
336 enetc_pause_stats(hw, 0, pause_stats); in enetc_get_pause_stats()
340 enetc_pause_stats(hw, 1, pause_stats); in enetc_get_pause_stats()
343 ethtool_aggregate_pause_stats(ndev, pause_stats); in enetc_get_pause_stats()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_common.c1649 pstats = &mib->pause_stats; in ksz_r_mib_stats64()
1698 pstats = &mib->pause_stats; in ksz88xx_r_mib_stats64()
1752 struct ethtool_pause_stats *pause_stats) in ksz_get_pause_stats() argument
1760 memcpy(pause_stats, &mib->pause_stats, sizeof(*pause_stats)); in ksz_get_pause_stats()
H A Dksz_common.h41 struct ethtool_pause_stats pause_stats; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_stats.h116 struct ethtool_pause_stats *pause_stats);
H A Den_stats.c909 struct ethtool_pause_stats *pause_stats) in mlx5e_stats_pause_get() argument
917 pause_stats->tx_pause_frames = in mlx5e_stats_pause_get()
921 pause_stats->rx_pause_frames = in mlx5e_stats_pause_get()
H A Den_ethtool.c1432 struct ethtool_pause_stats *pause_stats) in mlx5e_get_pause_stats() argument
1436 mlx5e_stats_pause_get(priv, pause_stats); in mlx5e_get_pause_stats()
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c1162 struct ethtool_pause_stats *pause_stats) in felix_get_pause_stats() argument
1166 ocelot_port_get_pause_stats(ocelot, port, pause_stats); in felix_get_pause_stats()
/openbmc/linux/include/net/
H A Ddsa.h918 struct ethtool_pause_stats *pause_stats);
/openbmc/linux/include/soc/mscc/
H A Docelot.h1014 struct ethtool_pause_stats *pause_stats);
/openbmc/linux/net/dsa/
H A Dslave.c1298 struct ethtool_pause_stats *pause_stats) in dsa_slave_get_pause_stats() argument
1304 ds->ops->get_pause_stats(ds, dp->index, pause_stats); in dsa_slave_get_pause_stats()