Lines Matching refs:tstamp
104 u64 tstamp; in otx2_ptp_hw_gettime() local
106 tstamp = otx2_ptp_get_clock(ptp); in otx2_ptp_hw_gettime()
108 *ts = ns_to_timespec64(tstamp); in otx2_ptp_hw_gettime()
248 u64 tstamp; in otx2_ptp_tc_gettime() local
251 tstamp = timecounter_read(&ptp->time_counter); in otx2_ptp_tc_gettime()
253 *ts = ns_to_timespec64(tstamp); in otx2_ptp_tc_gettime()
288 static u64 otx2_ptp_hw_tstamp2time(const struct timecounter *time_counter, u64 tstamp) in otx2_ptp_hw_tstamp2time() argument
291 return tstamp; in otx2_ptp_hw_tstamp2time()
327 u64 tstamp; in otx2_sync_tstamp() local
330 tstamp = otx2_ptp_get_clock(ptp); in otx2_sync_tstamp()
333 ptp->tstamp = ptp->ptp_tstamp2nsec(&ptp->time_counter, tstamp); in otx2_sync_tstamp()
334 ptp->base_ns = tstamp % NSEC_PER_SEC; in otx2_sync_tstamp()
511 int otx2_ptp_tstamp2time(struct otx2_nic *pfvf, u64 tstamp, u64 *tsns) in otx2_ptp_tstamp2time() argument
516 *tsns = pfvf->ptp->ptp_tstamp2nsec(&pfvf->ptp->time_counter, tstamp); in otx2_ptp_tstamp2time()