Lines Matching refs:ncnt
106 static size_t ncnt; variable
620 static enum stp_id get_op(const uint8_t *data, size_t *noff, size_t *nlen, size_t *ncnt, in get_op() argument
628 *ncnt += 1; in get_op()
629 if (*ntotal == 0 && *ncnt == 1) { in get_op()
635 } else if (*ncnt == 2) { in get_op()
642 } else if (*ncnt == 3) { in get_op()
648 } else if (*ncnt == *ntotal) { in get_op()
662 ncnt = 0; in mipi_stp_decoder_sync_loss()
681 if (ncnt < 21 && b == 0xF) { in mipi_stp_decoder_decode()
682 ncnt++; in mipi_stp_decoder_decode()
683 } else if (ncnt == 21 && b == 0) { in mipi_stp_decoder_decode()
685 ncnt = 0; in mipi_stp_decoder_decode()
690 ncnt = 0; in mipi_stp_decoder_decode()
695 curr_id = get_op(data, &noff, &nlen, &ncnt, &ntotal); in mipi_stp_decoder_decode()
698 ncnt = 0; in mipi_stp_decoder_decode()
713 size_t ncpy = MIN(ntotal - ncnt, nlen - noff); in mipi_stp_decoder_decode()
715 get_nibbles(data, noff, data_buf, ncnt, ncpy); in mipi_stp_decoder_decode()
717 ncnt += ncpy; in mipi_stp_decoder_decode()
719 if (ncnt == ntotal) { in mipi_stp_decoder_decode()
721 ncnt = 0; in mipi_stp_decoder_decode()
723 ncnt = 0; in mipi_stp_decoder_decode()
731 ncnt = 0; in mipi_stp_decoder_decode()
737 if (ntotal == 0 && ncnt == 0) { in mipi_stp_decoder_decode()
760 size_t ncpy = MIN(ntotal - ncnt, nlen - noff); in mipi_stp_decoder_decode()
762 get_nibbles(data, noff, ts_buf, ncnt, ncpy); in mipi_stp_decoder_decode()
763 ncnt += ncpy; in mipi_stp_decoder_decode()
765 if (ncnt == ntotal) { in mipi_stp_decoder_decode()
772 ncnt = 0; in mipi_stp_decoder_decode()
791 ncnt = 0; in mipi_stp_decoder_init()