Lines Matching refs:tsc
46 int pt_time_query_tsc(uint64_t *tsc, uint32_t *lost_mtc, in pt_time_query_tsc() argument
49 if (!tsc || !time) in pt_time_query_tsc()
52 *tsc = time->tsc; in pt_time_query_tsc()
142 time->tsc = time->base = packet->tsc; in pt_time_update_tsc()
239 uint64_t tsc, base; in pt_time_update_mtc() local
331 errcode = pt_time_ctc_fc(&tsc, ctc_delta, config); in pt_time_update_mtc()
335 base += tsc; in pt_time_update_mtc()
336 time->tsc = time->base = base; in pt_time_update_mtc()
435 time->tsc = time->base + fc; in pt_time_update_cyc()
512 tcal->tsc = packet->tsc; in pt_tcal_update_tsc()
522 uint64_t tsc, last_tsc, tsc_delta, cyc, fcr; in pt_tcal_header_tsc() local
529 last_tsc = tcal->tsc; in pt_tcal_header_tsc()
532 tsc = packet->tsc; in pt_tcal_header_tsc()
534 tcal->tsc = tsc; in pt_tcal_header_tsc()
545 if (tsc < last_tsc) { in pt_tcal_header_tsc()
546 tsc += 1ull << pt_pl_tsc_bit_size; in pt_tcal_header_tsc()
548 if (tsc < last_tsc) in pt_tcal_header_tsc()
552 tsc_delta = tsc - last_tsc; in pt_tcal_header_tsc()
753 tcal->tsc = 0ull; in pt_tcal_update_ovf()