Lines Matching refs:cyc
359 static int pt_time_adjust_cyc(uint64_t *cyc, const struct pt_time *time, in pt_time_adjust_cyc() argument
393 total_cyc = *cyc; in pt_time_adjust_cyc()
404 *cyc = total_cyc - old_cyc; in pt_time_adjust_cyc()
412 uint64_t cyc, fc; in pt_time_update_cyc() local
422 cyc = packet->value; in pt_time_update_cyc()
427 errcode = pt_time_adjust_cyc(&cyc, time, config, fcr); in pt_time_update_cyc()
432 fc += (cyc * fcr) >> pt_tcal_fcr_shr; in pt_time_update_cyc()
522 uint64_t tsc, last_tsc, tsc_delta, cyc, fcr; in pt_tcal_header_tsc() local
530 cyc = tcal->cyc_tsc; in pt_tcal_header_tsc()
537 if (!last_tsc || !cyc) in pt_tcal_header_tsc()
562 fcr = (tsc_delta << pt_tcal_fcr_shr) / cyc; in pt_tcal_header_tsc()
619 uint64_t cyc, fc, fcr; in pt_tcal_update_mtc() local
627 cyc = tcal->cyc_mtc; in pt_tcal_update_mtc()
647 if (!cyc) in pt_tcal_update_mtc()
674 fcr = (fc << pt_tcal_fcr_shr) / cyc; in pt_tcal_update_mtc()
708 dfc = (tcal->fcr * (cyc + 0xf00)) >> pt_tcal_fcr_shr; in pt_tcal_update_mtc()
733 uint64_t cyc; in pt_tcal_update_cyc() local
740 cyc = packet->value; in pt_tcal_update_cyc()
741 tcal->cyc_mtc += cyc; in pt_tcal_update_cyc()
742 tcal->cyc_tsc += cyc; in pt_tcal_update_cyc()