Lines Matching refs:ctc
814 uint32_t mtc, mtc_delta, ctc, fc, ctc_rem; in intel_pt_calc_cyc_cb() local
907 ctc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
909 ctc_rem = ctc & decoder->ctc_rem_mask; in intel_pt_calc_cyc_cb()
911 data->last_mtc = (ctc >> decoder->mtc_shift) & 0xff; in intel_pt_calc_cyc_cb()
1907 uint32_t ctc = decoder->packet.payload; in intel_pt_calc_tma() local
1909 uint32_t ctc_rem = ctc & decoder->ctc_rem_mask; in intel_pt_calc_tma()
1919 decoder->last_mtc = (ctc >> decoder->mtc_shift) & 0xff; in intel_pt_calc_tma()
1920 decoder->last_ctc = ctc - ctc_rem; in intel_pt_calc_tma()
2437 static uint64_t intel_pt_ctc_to_tsc(struct intel_pt_decoder *decoder, uint64_t ctc) in intel_pt_ctc_to_tsc() argument
2440 return ctc * decoder->tsc_ctc_mult; in intel_pt_ctc_to_tsc()
2442 return multdiv(ctc, decoder->tsc_ctc_ratio_n, decoder->tsc_ctc_ratio_d); in intel_pt_ctc_to_tsc()
2446 uint32_t ctc, in intel_pt_calc_expected_tsc() argument
2459 uint64_t delta = (int16_t)((uint16_t)ctc - (uint16_t)last_mtc_ctc); in intel_pt_calc_expected_tsc()
2475 intel_pt_log_x32(ctc); in intel_pt_calc_expected_tsc()
2489 uint32_t ctc = data->tma_packet.payload; in intel_pt_expected_tsc() local
2492 return intel_pt_calc_expected_tsc(decoder, ctc, fc, in intel_pt_expected_tsc()