Lines Matching refs:ctc
802 uint32_t mtc, mtc_delta, ctc, fc, ctc_rem; in intel_pt_calc_cyc_cb() local
892 ctc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
894 ctc_rem = ctc & decoder->ctc_rem_mask; in intel_pt_calc_cyc_cb()
896 data->last_mtc = (ctc >> decoder->mtc_shift) & 0xff; in intel_pt_calc_cyc_cb()
1671 uint32_t ctc = decoder->packet.payload; in intel_pt_calc_tma() local
1673 uint32_t ctc_rem = ctc & decoder->ctc_rem_mask; in intel_pt_calc_tma()
1683 decoder->last_mtc = (ctc >> decoder->mtc_shift) & 0xff; in intel_pt_calc_tma()
1684 decoder->last_ctc = ctc - ctc_rem; in intel_pt_calc_tma()
2189 static uint64_t intel_pt_ctc_to_tsc(struct intel_pt_decoder *decoder, uint64_t ctc) in intel_pt_ctc_to_tsc() argument
2192 return ctc * decoder->tsc_ctc_mult; in intel_pt_ctc_to_tsc()
2194 return multdiv(ctc, decoder->tsc_ctc_ratio_n, decoder->tsc_ctc_ratio_d); in intel_pt_ctc_to_tsc()
2198 uint32_t ctc, in intel_pt_calc_expected_tsc() argument
2211 uint64_t delta = (int16_t)((uint16_t)ctc - (uint16_t)last_mtc_ctc); in intel_pt_calc_expected_tsc()
2227 intel_pt_log_x32(ctc); in intel_pt_calc_expected_tsc()
2241 uint32_t ctc = data->tma_packet.payload; in intel_pt_expected_tsc() local
2244 return intel_pt_calc_expected_tsc(decoder, ctc, fc, in intel_pt_expected_tsc()