Lines Matching refs:noff
107 static size_t noff; variable
446 static inline uint8_t get_nibble(const uint8_t *data, size_t noff) in get_nibble() argument
448 uint8_t ret = data[noff / 2]; in get_nibble()
450 if (noff & 0x1UL) { in get_nibble()
615 static enum stp_id get_op(const uint8_t *data, size_t *noff, size_t *nlen, size_t *ncnt, in get_op() argument
620 op = get_nibble(data, *noff); in get_op()
622 *noff += 1; in get_op()
673 uint8_t b = get_nibble(data, noff); in mipi_stp_decoder_decode()
675 noff++; in mipi_stp_decoder_decode()
690 curr_id = get_op(data, &noff, &nlen, &ncnt, &ntotal); in mipi_stp_decoder_decode()
708 size_t ncpy = MIN(ntotal - ncnt, nlen - noff); in mipi_stp_decoder_decode()
710 get_nibbles(data, noff, data_buf, ncnt, ncpy); in mipi_stp_decoder_decode()
713 noff += ncpy; in mipi_stp_decoder_decode()
735 ntotal = get_nibble(data, noff); in mipi_stp_decoder_decode()
736 noff++; in mipi_stp_decoder_decode()
755 size_t ncpy = MIN(ntotal - ncnt, nlen - noff); in mipi_stp_decoder_decode()
757 get_nibbles(data, noff, ts_buf, ncnt, ncpy); in mipi_stp_decoder_decode()
759 noff += ncpy; in mipi_stp_decoder_decode()
775 } while (noff < nlen); in mipi_stp_decoder_decode()
777 noff = 0; in mipi_stp_decoder_decode()
790 noff = 0; in mipi_stp_decoder_init()