Lines Matching full:ptp
3 PTP 1588 clock using the STMMAC.
16 * @ptp: pointer to ptp_clock_info structure
21 static int stmmac_adjust_freq(struct ptp_clock_info *ptp, s32 ppb) in stmmac_adjust_freq() argument
24 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq()
51 * @ptp: pointer to ptp_clock_info structure
56 static int stmmac_adjust_time(struct ptp_clock_info *ptp, s64 delta) in stmmac_adjust_time() argument
59 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time()
87 * @ptp: pointer to ptp_clock_info structure
93 static int stmmac_get_time(struct ptp_clock_info *ptp, struct timespec64 *ts) in stmmac_get_time() argument
96 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time()
112 * @ptp: pointer to ptp_clock_info structure
118 static int stmmac_set_time(struct ptp_clock_info *ptp, in stmmac_set_time() argument
122 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_set_time()
132 static int stmmac_enable(struct ptp_clock_info *ptp, in stmmac_enable() argument
136 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_enable()
168 /* structure describing a PTP hardware clock */
171 .name = "stmmac ptp",
188 * Description: this function will register the ptp clock driver
215 netdev_info(priv->dev, "registered PTP clock\n"); in stmmac_ptp_register()
221 * Description: this function will remove/unregister the ptp clock driver
229 pr_debug("Removed PTP HW clock successfully on %s\n", in stmmac_ptp_unregister()