Lines Matching refs:ptp
35 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument
38 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq()
57 priv->hw->ptp->config_addend(priv->ioaddr, addend); in stmmac_adjust_freq()
72 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument
75 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time()
92 priv->hw->ptp->adjust_systime(priv->ioaddr, sec, nsec, neg_adj); in stmmac_adjust_time()
108 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() argument
111 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time()
117 ns = priv->hw->ptp->get_systime(priv->ioaddr); in stmmac_get_time()
135 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() argument
139 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_set_time()
144 priv->hw->ptp->init_systime(priv->ioaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time()
151 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() argument