Lines Matching refs:tstamp
127 static void otx2_get_ptpclock(struct otx2_ptp *ptp, u64 *tstamp) in otx2_get_ptpclock() argument
132 *tstamp = timecounter_read(&ptp->time_counter); in otx2_get_ptpclock()
154 u64 tstamp; in otx2_ptp_gettime() local
156 otx2_get_ptpclock(ptp, &tstamp); in otx2_ptp_gettime()
157 *ts = ns_to_timespec64(tstamp); in otx2_ptp_gettime()
226 u64 tstamp; in otx2_sync_tstamp() local
229 tstamp = otx2_ptp_get_clock(ptp); in otx2_sync_tstamp()
232 ptp->tstamp = timecounter_cyc2time(&pfvf->ptp->time_counter, tstamp); in otx2_sync_tstamp()
233 ptp->base_ns = tstamp % NSEC_PER_SEC; in otx2_sync_tstamp()
385 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time() argument
390 *tsns = timecounter_cyc2time(&pfvf->ptp->time_counter, tstamp); in otx2_ptp_tstamp2time()