Lines Matching full:ptp

3   PTP 1588 clock using the STMMAC.
17 * @ptp: pointer to ptp_clock_info structure
24 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, long scaled_ppm) in stmmac_adjust_freq() argument
27 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq()
43 * @ptp: pointer to ptp_clock_info structure
48 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument
51 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time()
70 /* If EST is enabled, disabled it before adjust ptp time. */ in stmmac_adjust_time()
84 /* Calculate new basetime and re-configured EST after PTP time adjust. */ in stmmac_adjust_time()
118 * @ptp: pointer to ptp_clock_info structure
124 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() argument
127 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time()
143 * @ptp: pointer to ptp_clock_info structure
149 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() argument
153 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_set_time()
163 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() argument
167 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_enable()
257 static int stmmac_getcrosststamp(struct ptp_clock_info *ptp, in stmmac_getcrosststamp() argument
261 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_getcrosststamp()
267 /* structure describing a PTP hardware clock */
270 .name = "stmmac ptp",
288 * Description: this function will register the ptp clock driver
322 netdev_info(priv->dev, "registered PTP clock\n"); in stmmac_ptp_register()
328 * Description: this function will remove/unregister the ptp clock driver
336 pr_debug("Removed PTP HW clock successfully on %s\n", in stmmac_ptp_unregister()