Lines Matching refs:ctc
455 uint16_t ctc, fc; in pt_enc_next() local
461 ctc = packet->payload.tma.ctc; in pt_enc_next()
469 pos = pt_encode_int(pos, ctc, pt_pl_tma_ctc_size); in pt_enc_next()
483 *pos++ = packet->payload.mtc.ctc; in pt_enc_next()
490 uint64_t ctc; in pt_enc_next() local
492 ctc = (uint8_t) packet->payload.cyc.value; in pt_enc_next()
493 ctc <<= pt_opm_cyc_shr; in pt_enc_next()
496 byte[0] |= (uint8_t) ctc; in pt_enc_next()
498 ctc = packet->payload.cyc.value; in pt_enc_next()
499 ctc >>= (8 - pt_opm_cyc_shr); in pt_enc_next()
500 if (ctc) in pt_enc_next()
503 for (end = 1; ctc; ++end) { in pt_enc_next()
508 ctc <<= pt_opm_cycx_shr; in pt_enc_next()
510 byte[end] = (uint8_t) ctc; in pt_enc_next()
512 ctc >>= 8; in pt_enc_next()
513 if (ctc) in pt_enc_next()
861 int pt_encode_tma(struct pt_encoder *encoder, uint16_t ctc, uint16_t fc) in pt_encode_tma() argument
866 packet.payload.tma.ctc = ctc; in pt_encode_tma()
872 int pt_encode_mtc(struct pt_encoder *encoder, uint8_t ctc) in pt_encode_mtc() argument
877 packet.payload.mtc.ctc = ctc; in pt_encode_mtc()
882 int pt_encode_cyc(struct pt_encoder *encoder, uint32_t ctc) in pt_encode_cyc() argument
887 packet.payload.cyc.value = ctc; in pt_encode_cyc()