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
141 * @verify: Confirm that a pin can perform a given function. The PTP
174 int (*adjfine)(struct ptp_clock_info *ptp, long scaled_ppm);
175 int (*adjfreq)(struct ptp_clock_info *ptp, s32 delta);
176 int (*adjphase)(struct ptp_clock_info *ptp, s32 phase);
177 int (*adjtime)(struct ptp_clock_info *ptp, s64 delta);
178 int (*gettime64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
179 int (*gettimex64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
181 int (*getcrosststamp)(struct ptp_clock_info *ptp,
184 int (*getcycles64)(struct ptp_clock_info *ptp, struct timespec64 *ts);
185 int (*getcyclesx64)(struct ptp_clock_info *ptp, struct timespec64 *ts,
187 int (*getcrosscycles)(struct ptp_clock_info *ptp,
189 int (*enable)(struct ptp_clock_info *ptp,
191 int (*verify)(struct ptp_clock_info *ptp, unsigned int pin,
193 long (*do_aux_work)(struct ptp_clock_info *ptp);
206 * struct ptp_clock_event - decribes a PTP hardware clock event
252 * ptp_clock_register() - register a PTP hardware clock driver
267 * ptp_clock_unregister() - unregister a PTP hardware clock driver
269 * @ptp: The clock to remove from service.
272 extern int ptp_clock_unregister(struct ptp_clock *ptp);
275 * ptp_clock_event() - notify the PTP layer about an event
277 * @ptp: The clock obtained from ptp_clock_register().
281 extern void ptp_clock_event(struct ptp_clock *ptp,
285 * ptp_clock_index() - obtain the device index of a PTP clock
287 * @ptp: The clock obtained from ptp_clock_register().
290 extern int ptp_clock_index(struct ptp_clock *ptp);
301 * @ptp: The clock obtained from ptp_clock_register().
308 int ptp_find_pin(struct ptp_clock *ptp,
321 int ptp_find_pin_unlocked(struct ptp_clock *ptp,
325 * ptp_schedule_worker() - schedule ptp auxiliary work
327 * @ptp: The clock obtained from ptp_clock_register().
332 int ptp_schedule_worker(struct ptp_clock *ptp, unsigned long delay);
335 * ptp_cancel_worker_sync() - cancel ptp auxiliary clock
337 * @ptp: The clock obtained from ptp_clock_register().
339 void ptp_cancel_worker_sync(struct ptp_clock *ptp);
345 static inline int ptp_clock_unregister(struct ptp_clock *ptp) in ptp_clock_unregister() argument
347 static inline void ptp_clock_event(struct ptp_clock *ptp, in ptp_clock_event() argument
350 static inline int ptp_clock_index(struct ptp_clock *ptp) in ptp_clock_index() argument
352 static inline int ptp_find_pin(struct ptp_clock *ptp, in ptp_find_pin() argument
355 static inline int ptp_find_pin_unlocked(struct ptp_clock *ptp, in ptp_find_pin_unlocked() argument
359 static inline int ptp_schedule_worker(struct ptp_clock *ptp, in ptp_schedule_worker() argument
362 static inline void ptp_cancel_worker_sync(struct ptp_clock *ptp) in ptp_cancel_worker_sync() argument
368 * These are called by the network core, and don't work if PTP is in
377 * @pclock_index: phc index of ptp pclock.
385 * ptp_convert_timestamp() - convert timestamp to a ptp vclock time
388 * @vclock_index: phc index of ptp vclock.