Lines Matching full:ptp

3  * PTP 1588 clock support
19 * struct ptp_clock_request - request PTP clock event
55 * struct ptp_clock_info - describes a PTP hardware clock
115 * @verify: Confirm that a pin can perform a given function. The PTP
148 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm);
149 int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta);
150 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase);
151 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta);
152 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
153 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
155 int (*getcrosststamp)(struct ptp_clock_info *ptp,
158 int (*enable)(struct ptp_clock_info *ptp,
160 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin,
162 long (*do_aux_work)(struct ptp_clock_info *ptp);
175 * struct ptp_clock_event - decribes a PTP hardware clock event
221 * ptp_clock_register() - register a PTP hardware clock driver
236 * ptp_clock_unregister() - unregister a PTP hardware clock driver
238 * @ptp: The clock to remove from service.
241 extern int ptp_clock_unregister(struct ptp_clock *ptp);
244 * ptp_clock_event() - notify the PTP layer about an event
246 * @ptp: The clock obtained from ptp_clock_register().
250 extern void ptp_clock_event(struct ptp_clock *ptp,
254 * ptp_clock_index() - obtain the device index of a PTP clock
256 * @ptp: The clock obtained from ptp_clock_register().
259 extern int ptp_clock_index(struct ptp_clock *ptp);
270 * @ptp: The clock obtained from ptp_clock_register().
277 int ptp_find_pin(struct ptp_clock *ptp,
290 int ptp_find_pin_unlocked(struct ptp_clock *ptp,
294 * ptp_schedule_worker() - schedule ptp auxiliary work
296 * @ptp: The clock obtained from ptp_clock_register().
301 int ptp_schedule_worker(struct ptp_clock *ptp, unsigned long delay);
304 * ptp_cancel_worker_sync() - cancel ptp auxiliary clock
306 * @ptp: The clock obtained from ptp_clock_register().
308 void ptp_cancel_worker_sync(struct ptp_clock *ptp);
314 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() argument
316 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event() argument
319 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() argument
321 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() argument
324 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker() argument
327 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync() argument
333 * These are called by the network core, and don't work if PTP is in
342 * @pclock_index: phc index of ptp pclock.
350 * ptp_convert_timestamp() - convert timestamp to a ptp vclock time
353 * @vclock_index: phc index of ptp vclock.