Lines Matching refs:ctc
814 uint32_t mtc, mtc_delta, ctc, fc, ctc_rem;
907 ctc = pkt_info->packet.payload;
909 ctc_rem = ctc & decoder->ctc_rem_mask;
911 data->last_mtc = (ctc >> decoder->mtc_shift) & 0xff;
1909 uint32_t ctc = decoder->packet.payload;
1911 uint32_t ctc_rem = ctc & decoder->ctc_rem_mask;
1921 decoder->last_mtc = (ctc >> decoder->mtc_shift) & 0xff;
1922 decoder->last_ctc = ctc - ctc_rem;
2439 static uint64_t intel_pt_ctc_to_tsc(struct intel_pt_decoder *decoder, uint64_t ctc)
2442 return ctc * decoder->tsc_ctc_mult;
2444 return multdiv(ctc, decoder->tsc_ctc_ratio_n, decoder->tsc_ctc_ratio_d);
2448 uint32_t ctc,
2458 * expect last_mtc_ctc to be before ctc, but the TSC packet can slip
2461 uint64_t delta = (int16_t)((uint16_t)ctc - (uint16_t)last_mtc_ctc);
2477 intel_pt_log_x32(ctc);
2491 uint32_t ctc = data->tma_packet.payload;
2494 return intel_pt_calc_expected_tsc(decoder, ctc, fc,