Searched refs:ptp_priv (Results 1 – 5 of 5) sorted by relevance
31 struct rcar_gen4_ptp_private *ptp_priv = ptp_to_priv(ptp); in rcar_gen4_ptp_adjfine() local33 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() local52 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() local63 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 …]
67 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);
720 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() local1572 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 …]
1006 struct rcar_gen4_ptp_private *ptp_priv; member
332 struct kszphy_ptp_priv ptp_priv; member2339 struct kszphy_ptp_priv *ptp_priv = container_of(mii_ts, struct kszphy_ptp_priv, mii_ts); in lan8814_ts_info() local2340 struct phy_device *phydev = ptp_priv->phydev; in lan8814_ts_info()2378 struct kszphy_ptp_priv *ptp_priv = in lan8814_hwtstamp() local2380 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 …]