Home
last modified time | relevance | path

Searched refs:ptp_priv (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/renesas/
Drcar_gen4_ptp.c31 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_adjfine() local
33 s64 addend = ptp_priv->default_addend; in rcar_gen4_ptp_adjfine()
41 iowrite32(addend, ptp_priv->addr + ptp_priv->offs->increment); in rcar_gen4_ptp_adjfine()
50 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in _rcar_gen4_ptp_gettime() local
52 ts->tv_nsec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t0); in _rcar_gen4_ptp_gettime()
53 ts->tv_sec = ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t1) | in _rcar_gen4_ptp_gettime()
54 ((s64)ioread32(ptp_priv->addr + ptp_priv->offs->monitor_t2) << 32); in _rcar_gen4_ptp_gettime()
60 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_gettime() local
63 spin_lock_irqsave(&ptp_priv->lock, flags); in rcar_gen4_ptp_gettime()
65 spin_unlock_irqrestore(&ptp_priv->lock, flags); in rcar_gen4_ptp_gettime()
[all …]
Drcar_gen4_ptp.h67 int rcar_gen4_ptp_register(struct rcar_gen4_ptp_private *ptp_priv,
69 int rcar_gen4_ptp_unregister(struct rcar_gen4_ptp_private *ptp_priv);
Drswitch.c720 get_ts = rdev->priv->ptp_priv->tstamp_rx_ctrl & RCAR_GEN4_RXTSTAMP_TYPE_V2_L2_EVENT; in rswitch_rx()
1569 struct rcar_gen4_ptp_private *ptp_priv; in rswitch_hwstamp_get() local
1572 ptp_priv = rdev->priv->ptp_priv; in rswitch_hwstamp_get()
1575 config.tx_type = ptp_priv->tstamp_tx_ctrl ? HWTSTAMP_TX_ON : in rswitch_hwstamp_get()
1577 switch (ptp_priv->tstamp_rx_ctrl & RCAR_GEN4_RXTSTAMP_TYPE) { in rswitch_hwstamp_get()
1629 rdev->priv->ptp_priv->tstamp_tx_ctrl = tstamp_tx_ctrl; in rswitch_hwstamp_set()
1630 rdev->priv->ptp_priv->tstamp_rx_ctrl = tstamp_rx_ctrl; in rswitch_hwstamp_set()
1664 info->phc_index = ptp_clock_index(rdev->priv->ptp_priv->clock); in rswitch_get_ts_info()
1827 err = rcar_gen4_ptp_register(priv->ptp_priv, RCAR_GEN4_PTP_REG_LAYOUT_S4, in rswitch_init()
1872 rcar_gen4_ptp_unregister(priv->ptp_priv); in rswitch_init()
[all …]
Drswitch.h1006 struct rcar_gen4_ptp_private *ptp_priv; member
/Linux-v6.6/drivers/net/phy/
Dmicrel.c332 struct kszphy_ptp_priv ptp_priv; member
2339 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_ts_info() local
2340 struct phy_device *phydev = ptp_priv->phydev; in lan8814_ts_info()
2378 struct kszphy_ptp_priv *ptp_priv = in lan8814_hwtstamp() local
2380 struct phy_device *phydev = ptp_priv->phydev; in lan8814_hwtstamp()
2390 ptp_priv->hwts_tx_type = config.tx_type; in lan8814_hwtstamp()
2391 ptp_priv->rx_filter = config.rx_filter; in lan8814_hwtstamp()
2395 ptp_priv->layer = 0; in lan8814_hwtstamp()
2396 ptp_priv->version = 0; in lan8814_hwtstamp()
2401 ptp_priv->layer = PTP_CLASS_L4; in lan8814_hwtstamp()
[all …]