Lines Matching refs:mtc
640 static void intel_pt_fixup_last_mtc(uint32_t mtc, int mtc_shift, in intel_pt_fixup_last_mtc() argument
646 *last_mtc |= mtc & mask; in intel_pt_fixup_last_mtc()
647 if (*last_mtc >= mtc) { in intel_pt_fixup_last_mtc()
660 uint32_t mtc, mtc_delta, ctc, fc, ctc_rem; in intel_pt_calc_cyc_cb() local
683 mtc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
686 intel_pt_fixup_last_mtc(mtc, decoder->mtc_shift, in intel_pt_calc_cyc_cb()
689 if (mtc > data->last_mtc) in intel_pt_calc_cyc_cb()
690 mtc_delta = mtc - data->last_mtc; in intel_pt_calc_cyc_cb()
692 mtc_delta = mtc + 256 - data->last_mtc; in intel_pt_calc_cyc_cb()
694 data->last_mtc = mtc; in intel_pt_calc_cyc_cb()
1427 uint32_t mtc, mtc_delta; in intel_pt_calc_mtc_timestamp() local
1432 mtc = decoder->packet.payload; in intel_pt_calc_mtc_timestamp()
1436 intel_pt_fixup_last_mtc(mtc, decoder->mtc_shift, in intel_pt_calc_mtc_timestamp()
1440 if (mtc > decoder->last_mtc) in intel_pt_calc_mtc_timestamp()
1441 mtc_delta = mtc - decoder->last_mtc; in intel_pt_calc_mtc_timestamp()
1443 mtc_delta = mtc + 256 - decoder->last_mtc; in intel_pt_calc_mtc_timestamp()
1464 decoder->last_mtc = mtc; in intel_pt_calc_mtc_timestamp()