Lines Matching full:ptp

3  * PTP 1588 clock support
19 * struct ptp_clock_request - request PTP clock event
59 * struct ptp_clock_info - describes a PTP hardware clock
145 * @verify: Confirm that a pin can perform a given function. The PTP
178 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm);
179 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase);
180 s32 (*getmaxphase)(struct ptp_clock_info *ptp);
181 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta);
182 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
183 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
185 int (*getcrosststamp)(struct ptp_clock_info *ptp,
188 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
189 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
191 int (*getcrosscycles)(struct ptp_clock_info *ptp,
193 int (*enable)(struct ptp_clock_info *ptp,
195 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin,
197 long (*do_aux_work)(struct ptp_clock_info *ptp);
211 * struct ptp_clock_event - decribes a PTP hardware clock event
305 * ptp_clock_register() - register a PTP hardware clock driver
320 * ptp_clock_unregister() - unregister a PTP hardware clock driver
322 * @ptp: The clock to remove from service.
325 extern int ptp_clock_unregister(struct ptp_clock *ptp);
328 * ptp_clock_event() - notify the PTP layer about an event
330 * @ptp: The clock obtained from ptp_clock_register().
334 extern void ptp_clock_event(struct ptp_clock *ptp,
338 * ptp_clock_index() - obtain the device index of a PTP clock
340 * @ptp: The clock obtained from ptp_clock_register().
343 extern int ptp_clock_index(struct ptp_clock *ptp);
354 * @ptp: The clock obtained from ptp_clock_register().
361 int ptp_find_pin(struct ptp_clock *ptp,
372 * @ptp: The clock obtained from ptp_clock_register().
379 int ptp_find_pin_unlocked(struct ptp_clock *ptp,
383 * ptp_schedule_worker() - schedule ptp auxiliary work
385 * @ptp: The clock obtained from ptp_clock_register().
390 int ptp_schedule_worker(struct ptp_clock *ptp, unsigned long delay);
393 * ptp_cancel_worker_sync() - cancel ptp auxiliary clock
395 * @ptp: The clock obtained from ptp_clock_register().
397 void ptp_cancel_worker_sync(struct ptp_clock *ptp);
403 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() argument
405 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event() argument
408 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() argument
410 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() argument
413 static inline int ptp_find_pin_unlocked(struct ptp_clock *ptp, in ptp_find_pin_unlocked() argument
417 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker() argument
420 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync() argument
426 * These are called by the network core, and don't work if PTP is in
435 * @pclock_index: phc index of ptp pclock.
443 * ptp_convert_timestamp() - convert timestamp to a ptp vclock time
446 * @vclock_index: phc index of ptp vclock.