Lines Matching defs:ctc
84 static int pt_time_ctc_delta(uint32_t *ctc_delta, uint32_t ctc,
93 if (ctc < last_ctc) {
94 ctc += 1u << (config->mtc_freq + pt_pl_mtc_bit_size);
99 if (ctc < last_ctc)
103 *ctc_delta = ctc - last_ctc;
111 static int pt_time_ctc_fc(uint64_t *fc, uint64_t ctc,
126 *fc = (ctc * ebx) / eax;
143 time->ctc = 0;
172 uint32_t ctc, mtc_freq, mtc_hi, ctc_mask;
190 ctc = packet->ctc;
223 time->ctc = time->ctc_cyc = ctc & ctc_mask;
232 uint32_t last_ctc, ctc, ctc_delta;
254 last_ctc = time->ctc;
257 ctc = packet->ctc << mtc_freq;
261 time->ctc_cyc = ctc;
266 time->ctc = ctc;
297 ctc_lo = ctc & pt_pl_tma_ctc_mask;
298 ctc_hi = ctc & ~pt_pl_tma_ctc_mask;
319 errcode = pt_time_ctc_delta(&ctc_delta, ctc, last_ctc, config);
356 uint32_t last_ctc, ctc, ctc_delta;
364 ctc = time->ctc;
367 if (ctc == last_ctc)
378 errcode = pt_time_ctc_delta(&ctc_delta, ctc, last_ctc, config);
594 uint32_t last_ctc, ctc, ctc_delta, have_mtc;
601 last_ctc = tcal->ctc;
605 ctc = packet->ctc << config->mtc_freq;
610 tcal->ctc = ctc;
625 tcal->ctc = ctc;
630 errcode = pt_time_ctc_delta(&ctc_delta, ctc, last_ctc, config);