Lines Matching refs:rc

81 				encoded_bytes, tlv_len, encode_tlv, rc) \  argument
83 buf_dst = (uint8_t *)buf_dst + rc; \
84 encoded_bytes += rc; \
85 tlv_len += rc; \
90 #define UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc) \ argument
92 buf_src = (uint8_t *)buf_src + rc; \
93 decoded_bytes += rc; \
209 uint32_t i, rc = 0; in qmi_encode_basic_elem() local
213 rc += elem_size; in qmi_encode_basic_elem()
216 return rc; in qmi_encode_basic_elem()
242 int i, rc, encoded_bytes = 0; in qmi_encode_struct_elem() local
246 rc = qmi_encode(temp_ei->ei_array, buf_dst, buf_src, in qmi_encode_struct_elem()
248 if (rc < 0) { in qmi_encode_struct_elem()
250 return rc; in qmi_encode_struct_elem()
252 buf_dst = (char*)buf_dst + rc; in qmi_encode_struct_elem()
254 encoded_bytes += rc; in qmi_encode_struct_elem()
280 int rc; in qmi_encode_string_elem() local
308 rc = qmi_encode_basic_elem(buf_dst, &string_len, in qmi_encode_string_elem()
310 encoded_bytes += rc; in qmi_encode_string_elem()
313 rc = qmi_encode_basic_elem((char*)buf_dst + encoded_bytes, buf_src, in qmi_encode_string_elem()
315 encoded_bytes += rc; in qmi_encode_string_elem()
346 int rc; in qmi_encode() local
372 rc = qmi_encode_basic_elem(&opt_flag_value, buf_src, in qmi_encode()
391 rc = qmi_encode_basic_elem(buf_dst, &data_len_value, in qmi_encode()
395 encode_tlv, rc); in qmi_encode()
417 rc = qmi_encode_basic_elem(buf_dst, buf_src, in qmi_encode()
422 encode_tlv, rc); in qmi_encode()
426 rc = qmi_encode_struct_elem(temp_ei, buf_dst, buf_src, in qmi_encode()
430 if (rc < 0) in qmi_encode()
431 return rc; in qmi_encode()
434 encode_tlv, rc); in qmi_encode()
438 rc = qmi_encode_string_elem(temp_ei, buf_dst, buf_src, in qmi_encode()
441 if (rc < 0) in qmi_encode()
442 return rc; in qmi_encode()
445 encode_tlv, rc); in qmi_encode()
483 uint32_t i, rc = 0; in qmi_decode_basic_elem() local
487 rc += elem_size; in qmi_decode_basic_elem()
490 return rc; in qmi_decode_basic_elem()
517 int i, rc, decoded_bytes = 0; in qmi_decode_struct_elem() local
521 rc = qmi_decode(temp_ei->ei_array, buf_dst, buf_src, in qmi_decode_struct_elem()
523 if (rc < 0) in qmi_decode_struct_elem()
524 return rc; in qmi_decode_struct_elem()
525 buf_src = (char*)buf_src + rc; in qmi_decode_struct_elem()
527 decoded_bytes += rc; in qmi_decode_struct_elem()
562 int rc; in qmi_decode_string_elem() local
573 rc = qmi_decode_basic_elem(&string_len, buf_src, in qmi_decode_string_elem()
575 decoded_bytes += rc; in qmi_decode_string_elem()
588 rc = qmi_decode_basic_elem(buf_dst, (char*)buf_src + decoded_bytes, in qmi_decode_string_elem()
591 decoded_bytes += rc; in qmi_decode_string_elem()
647 int rc; in qmi_decode() local
686 rc = qmi_decode_basic_elem(&data_len_value, buf_src, in qmi_decode()
692 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
713 rc = qmi_decode_basic_elem(buf_dst, buf_src, in qmi_decode()
716 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
720 rc = qmi_decode_struct_elem(temp_ei, buf_dst, buf_src, in qmi_decode()
723 if (rc < 0) in qmi_decode()
724 return rc; in qmi_decode()
725 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
729 rc = qmi_decode_string_elem(temp_ei, buf_dst, buf_src, in qmi_decode()
731 if (rc < 0) in qmi_decode()
732 return rc; in qmi_decode()
733 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()