Lines Matching full:ptp

3  * PTP 1588 clock support
19 * struct ptp_clock_request - request PTP clock event
57 * struct ptp_clock_info - describes a PTP hardware clock
143 * @verify: Confirm that a pin can perform a given function. The PTP
176 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm);
177 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase);
178 s32 (*getmaxphase)(struct ptp_clock_info *ptp);
179 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta);
180 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
181 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
183 int (*getcrosststamp)(struct ptp_clock_info *ptp,
186 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
187 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
189 int (*getcrosscycles)(struct ptp_clock_info *ptp,
191 int (*enable)(struct ptp_clock_info *ptp,
193 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin,
195 long (*do_aux_work)(struct ptp_clock_info *ptp);
208 * struct ptp_clock_event - decribes a PTP hardware clock event
300 * ptp_clock_register() - register a PTP hardware clock driver
315 * ptp_clock_unregister() - unregister a PTP hardware clock driver
317 * @ptp: The clock to remove from service.
320 extern int ptp_clock_unregister(struct ptp_clock *ptp);
323 * ptp_clock_event() - notify the PTP layer about an event
325 * @ptp: The clock obtained from ptp_clock_register().
329 extern void ptp_clock_event(struct ptp_clock *ptp,
333 * ptp_clock_index() - obtain the device index of a PTP clock
335 * @ptp: The clock obtained from ptp_clock_register().
338 extern int ptp_clock_index(struct ptp_clock *ptp);
349 * @ptp: The clock obtained from ptp_clock_register().
356 int ptp_find_pin(struct ptp_clock *ptp,
367 * @ptp: The clock obtained from ptp_clock_register().
374 int ptp_find_pin_unlocked(struct ptp_clock *ptp,
378 * ptp_schedule_worker() - schedule ptp auxiliary work
380 * @ptp: The clock obtained from ptp_clock_register().
385 int ptp_schedule_worker(struct ptp_clock *ptp, unsigned long delay);
388 * ptp_cancel_worker_sync() - cancel ptp auxiliary clock
390 * @ptp: The clock obtained from ptp_clock_register().
392 void ptp_cancel_worker_sync(struct ptp_clock *ptp);
398 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() argument
400 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event() argument
403 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() argument
405 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() argument
408 static inline int ptp_find_pin_unlocked(struct ptp_clock *ptp, in ptp_find_pin_unlocked() argument
412 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker() argument
415 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync() argument
421 * These are called by the network core, and don't work if PTP is in
430 * @pclock_index: phc index of ptp pclock.
438 * ptp_convert_timestamp() - convert timestamp to a ptp vclock time
441 * @vclock_index: phc index of ptp vclock.