Lines Matching refs:mtc
691 static void intel_pt_fixup_last_mtc(uint32_t mtc, int mtc_shift, in intel_pt_fixup_last_mtc() argument
697 *last_mtc |= mtc & mask; in intel_pt_fixup_last_mtc()
698 if (*last_mtc >= mtc) { in intel_pt_fixup_last_mtc()
711 uint32_t mtc, mtc_delta, ctc, fc, ctc_rem; in intel_pt_calc_cyc_cb() local
738 mtc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
741 intel_pt_fixup_last_mtc(mtc, decoder->mtc_shift, in intel_pt_calc_cyc_cb()
744 if (mtc > data->last_mtc) in intel_pt_calc_cyc_cb()
745 mtc_delta = mtc - data->last_mtc; in intel_pt_calc_cyc_cb()
747 mtc_delta = mtc + 256 - data->last_mtc; in intel_pt_calc_cyc_cb()
749 data->last_mtc = mtc; in intel_pt_calc_cyc_cb()
1580 uint32_t mtc, mtc_delta; in intel_pt_calc_mtc_timestamp() local
1585 mtc = decoder->packet.payload; in intel_pt_calc_mtc_timestamp()
1589 intel_pt_fixup_last_mtc(mtc, decoder->mtc_shift, in intel_pt_calc_mtc_timestamp()
1593 if (mtc > decoder->last_mtc) in intel_pt_calc_mtc_timestamp()
1594 mtc_delta = mtc - decoder->last_mtc; in intel_pt_calc_mtc_timestamp()
1596 mtc_delta = mtc + 256 - decoder->last_mtc; in intel_pt_calc_mtc_timestamp()
1619 decoder->last_mtc = mtc; in intel_pt_calc_mtc_timestamp()