Lines Matching full:ptp
3 * Fast Ethernet Controller (ENET) PTP driver for MX6x.
133 * second point. So we need to know what the ptp time in fec_ptp_enable_pps()
140 /* Convert the ptp local counter to 1588 timestamp */ in fec_ptp_enable_pps()
163 * ptp counter, which maybe cause 32-bit wrap. Since the in fec_ptp_enable_pps()
242 /* grab the ptp lock */ in fec_ptp_start_cyclecounter()
267 * fec_ptp_adjfreq - adjust ptp cycle frequency
268 * @ptp: the ptp clock structure
271 * Adjust the frequency of the ptp cycle counter by the
277 static int fec_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) in fec_ptp_adjfreq() argument
287 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjfreq()
341 * @ptp: the ptp clock structure
346 static int fec_ptp_adjtime(struct ptp_clock_info *ptp, s64 delta) in fec_ptp_adjtime() argument
349 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_adjtime()
361 * @ptp: the ptp clock structure
367 static int fec_ptp_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts) in fec_ptp_gettime() argument
370 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_gettime()
375 /* Check the ptp clock */ in fec_ptp_gettime()
392 * @ptp: the ptp clock structure
398 static int fec_ptp_settime(struct ptp_clock_info *ptp, in fec_ptp_settime() argument
402 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_settime()
409 /* Check the ptp clock */ in fec_ptp_settime()
431 * @ptp: the ptp clock structure
436 static int fec_ptp_enable(struct ptp_clock_info *ptp, in fec_ptp_enable() argument
440 container_of(ptp, struct fec_enet_private, ptp_caps); in fec_ptp_enable()
573 * This function performs the required steps for enabling ptp
574 * support. If ptp support has already been loaded it simply calls the
586 strlcpy(fep->ptp_caps.name, "fec ptp", sizeof(fep->ptp_caps.name)); in fec_ptp_init()