Lines Matching refs:decoded_bytes

50 #define UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc) \  argument
53 decoded_bytes += rc; \
476 int i, rc, decoded_bytes = 0; in qmi_decode_struct_elem() local
479 for (i = 0; i < elem_len && decoded_bytes < tlv_len; i++) { in qmi_decode_struct_elem()
481 tlv_len - decoded_bytes, dec_level); in qmi_decode_struct_elem()
486 decoded_bytes += rc; in qmi_decode_struct_elem()
489 if ((dec_level <= 2 && decoded_bytes != tlv_len) || in qmi_decode_struct_elem()
490 (dec_level > 2 && (i < elem_len || decoded_bytes > tlv_len))) { in qmi_decode_struct_elem()
492 __func__, dec_level, decoded_bytes, tlv_len, in qmi_decode_struct_elem()
497 return decoded_bytes; in qmi_decode_struct_elem()
522 int decoded_bytes = 0; in qmi_decode_string_elem() local
534 decoded_bytes += rc; in qmi_decode_string_elem()
547 rc = qmi_decode_basic_elem(buf_dst, buf_src + decoded_bytes, in qmi_decode_string_elem()
550 decoded_bytes += rc; in qmi_decode_string_elem()
552 return decoded_bytes; in qmi_decode_string_elem()
604 u32 decoded_bytes = 0; in qmi_decode() local
608 while (decoded_bytes < in_buf_len) { in qmi_decode()
610 return decoded_bytes; in qmi_decode()
617 decoded_bytes += (TLV_TYPE_SIZE + TLV_LEN_SIZE); in qmi_decode()
624 decoded_bytes, tlv_len); in qmi_decode()
632 tlv_len = in_buf_len - decoded_bytes; in qmi_decode()
651 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
674 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
683 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
691 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
701 return decoded_bytes; in qmi_decode()