Lines Matching refs:ptp

43 static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)  in ptp_vclock_adjfine()  argument
45 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjfine()
60 static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta) in ptp_vclock_adjtime() argument
62 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_adjtime()
72 static int ptp_vclock_gettime(struct ptp_clock_info *ptp, in ptp_vclock_gettime() argument
75 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_gettime()
87 static int ptp_vclock_gettimex(struct ptp_clock_info *ptp, in ptp_vclock_gettimex() argument
91 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_gettimex()
111 static int ptp_vclock_settime(struct ptp_clock_info *ptp, in ptp_vclock_settime() argument
114 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_settime()
125 static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp, in ptp_vclock_getcrosststamp() argument
128 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_getcrosststamp()
147 static long ptp_vclock_refresh(struct ptp_clock_info *ptp) in ptp_vclock_refresh() argument
149 struct ptp_vclock *vclock = info_to_vclock(ptp); in ptp_vclock_refresh()
170 struct ptp_clock *ptp = vclock->pclock; in ptp_vclock_read() local
173 ptp->info->getcycles64(ptp->info, &ts); in ptp_vclock_read()
236 struct ptp_clock *ptp; in ptp_get_vclocks_index() local
248 ptp = dev_get_drvdata(dev); in ptp_get_vclocks_index()
250 if (mutex_lock_interruptible(&ptp->n_vclocks_mux)) { in ptp_get_vclocks_index()
255 *vclock_index = kzalloc(sizeof(int) * ptp->n_vclocks, GFP_KERNEL); in ptp_get_vclocks_index()
259 memcpy(*vclock_index, ptp->vclock_index, sizeof(int) * ptp->n_vclocks); in ptp_get_vclocks_index()
260 num = ptp->n_vclocks; in ptp_get_vclocks_index()
262 mutex_unlock(&ptp->n_vclocks_mux); in ptp_get_vclocks_index()