Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c661 u64_stats_update_begin(&ocelot_port->ts_stats->syncp); in ocelot_port_queue_ptp_tx_skb()
662 ocelot_port->ts_stats->lost++; in ocelot_port_queue_ptp_tx_skb()
663 u64_stats_update_end(&ocelot_port->ts_stats->syncp); in ocelot_port_queue_ptp_tx_skb()
744 u64_stats_update_begin(&ocelot_port->ts_stats->syncp); in ocelot_port_txtstamp_request()
745 ocelot_port->ts_stats->onestep_pkts_unconfirmed++; in ocelot_port_txtstamp_request()
746 u64_stats_update_end(&ocelot_port->ts_stats->syncp); in ocelot_port_txtstamp_request()
777 u64_stats_update_begin(&ocelot_port->ts_stats->syncp); in ocelot_port_txtstamp_request()
778 ocelot_port->ts_stats->err++; in ocelot_port_txtstamp_request()
779 u64_stats_update_end(&ocelot_port->ts_stats->syncp); in ocelot_port_txtstamp_request()
840 u64_stats_update_begin(&ocelot_port->ts_stats->syncp); in ocelot_get_txtstamp()
[all …]
H A Docelot_stats.c825 struct ethtool_ts_stats *ts_stats) in ocelot_port_get_ts_stats() argument
828 struct ocelot_ts_stats *stats = ocelot_port->ts_stats; in ocelot_port_get_ts_stats()
836 ts_stats->pkts = stats->pkts; in ocelot_port_get_ts_stats()
837 ts_stats->onestep_pkts_unconfirmed = stats->onestep_pkts_unconfirmed; in ocelot_port_get_ts_stats()
838 ts_stats->lost = stats->lost; in ocelot_port_get_ts_stats()
839 ts_stats->err = stats->err; in ocelot_port_get_ts_stats()
990 ocelot_port->ts_stats = devm_kzalloc(ocelot->dev, in ocelot_stats_init()
991 sizeof(*ocelot_port->ts_stats), in ocelot_stats_init()
993 if (!ocelot_port->ts_stats) in ocelot_stats_init()
996 u64_stats_init(&ocelot_port->ts_stats->syncp); in ocelot_stats_init()
H A Docelot_net.c1043 struct ethtool_ts_stats *ts_stats) in ocelot_port_ts_stats() argument
1049 ocelot_port_get_ts_stats(ocelot, port, ts_stats); in ocelot_port_ts_stats()
/linux/drivers/net/ethernet/wangxun/libwx/
H A Dwx_ethtool.c717 struct ethtool_ts_stats *ts_stats) in wx_get_ptp_stats() argument
722 ts_stats->pkts = wx->tx_hwtstamp_pkts; in wx_get_ptp_stats()
723 ts_stats->lost = wx->tx_hwtstamp_timeouts + in wx_get_ptp_stats()
726 ts_stats->err = wx->tx_hwtstamp_errors; in wx_get_ptp_stats()
H A Dwx_ethtool.h58 struct ethtool_ts_stats *ts_stats);
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_ethtool.c1754 struct ethtool_ts_stats *ts_stats) in idpf_get_ts_stats() argument
1765 ts_stats->pkts = u64_stats_read(&vport->tstamp_stats.packets); in idpf_get_ts_stats()
1766 ts_stats->lost = u64_stats_read(&vport->tstamp_stats.flushed); in idpf_get_ts_stats()
1767 ts_stats->err = u64_stats_read(&vport->tstamp_stats.discarded); in idpf_get_ts_stats()
1793 ts_stats->lost += ts; in idpf_get_ts_stats()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_stats.c1170 struct ethtool_ts_stats *ts_stats) in mlx5e_stats_ts_get() argument
1179 ts_stats->pkts = 0; in mlx5e_stats_ts_get()
1180 ts_stats->err = 0; in mlx5e_stats_ts_get()
1181 ts_stats->lost = 0; in mlx5e_stats_ts_get()
1191 ts_stats->pkts += stats->cqe; in mlx5e_stats_ts_get()
1192 ts_stats->err += stats->abort + stats->err_cqe + in mlx5e_stats_ts_get()
1194 ts_stats->lost += stats->lost_cqe; in mlx5e_stats_ts_get()
1200 ts_stats->pkts = 0; in mlx5e_stats_ts_get()
1209 ts_stats->pkts += stats->timestamps; in mlx5e_stats_ts_get()
H A Den_stats.h133 struct ethtool_ts_stats *ts_stats);
H A Den_ethtool.c2721 struct ethtool_ts_stats *ts_stats) in mlx5e_get_ts_stats() argument
2725 mlx5e_stats_ts_get(priv, ts_stats); in mlx5e_get_ts_stats()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_ethtool.c1622 struct ethtool_ts_stats *ts_stats) in fbnic_get_ts_stats() argument
1630 ts_stats->pkts = fbn->tx_stats.twq.ts_packets; in fbnic_get_ts_stats()
1631 ts_stats->lost = fbn->tx_stats.twq.ts_lost; in fbnic_get_ts_stats()
1639 ts_stats->pkts += ts_packets; in fbnic_get_ts_stats()
1640 ts_stats->lost += ts_lost; in fbnic_get_ts_stats()
/linux/include/soc/mscc/
H A Docelot.h789 struct ocelot_ts_stats *ts_stats; member
1036 struct ethtool_ts_stats *ts_stats);
/linux/include/linux/
H A Dethtool.h1249 struct ethtool_ts_stats *ts_stats);
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c4745 struct ethtool_ts_stats *ts_stats) in ice_get_ts_stats() argument
4750 ts_stats->pkts = ptp->tx_hwtstamp_good; in ice_get_ts_stats()
4751 ts_stats->err = ptp->tx_hwtstamp_skipped + in ice_get_ts_stats()
4754 ts_stats->lost = ptp->tx_hwtstamp_timeouts; in ice_get_ts_stats()
/linux/drivers/net/dsa/ocelot/
H A Dfelix.c1341 struct ethtool_ts_stats *ts_stats) in felix_get_ts_stats() argument
1345 ocelot_port_get_ts_stats(ocelot, port, ts_stats); in felix_get_ts_stats()
/linux/include/net/
H A Ddsa.h913 struct ethtool_ts_stats *ts_stats);
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c5658 struct ethtool_ts_stats *ts_stats) in bnxt_get_ptp_stats() argument
5664 ts_stats->pkts = ptp->stats.ts_pkts; in bnxt_get_ptp_stats()
5665 ts_stats->lost = ptp->stats.ts_lost; in bnxt_get_ptp_stats()
5666 ts_stats->err = atomic64_read(&ptp->stats.ts_err); in bnxt_get_ptp_stats()
/linux/net/dsa/
H A Duser.c1140 struct ethtool_ts_stats *ts_stats) in dsa_user_get_ts_stats() argument
1146 ds->ops->get_ts_stats(ds, dp->index, ts_stats); in dsa_user_get_ts_stats()