Lines Matching refs:buf_src
50 #define UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc) \ argument
52 buf_src = (u8 *)buf_src + rc; \
166 static int qmi_encode_basic_elem(void *buf_dst, const void *buf_src, in qmi_encode_basic_elem() argument
172 QMI_ENCDEC_ENCODE_N_BYTES(buf_dst, buf_src, elem_size); in qmi_encode_basic_elem()
198 void *buf_dst, const void *buf_src, in qmi_encode_struct_elem() argument
206 rc = qmi_encode(temp_ei->ei_array, buf_dst, buf_src, in qmi_encode_struct_elem()
213 buf_src = buf_src + temp_ei->elem_size; in qmi_encode_struct_elem()
237 void *buf_dst, const void *buf_src, in qmi_encode_string_elem() argument
246 string_len = strlen(buf_src); in qmi_encode_string_elem()
273 rc = qmi_encode_basic_elem(buf_dst + encoded_bytes, buf_src, in qmi_encode_string_elem()
304 const void *buf_src; in qmi_encode() local
317 buf_src = in_c_struct + temp_ei->offset; in qmi_encode()
332 rc = qmi_encode_basic_elem(&opt_flag_value, buf_src, in qmi_encode()
341 memcpy(&data_len_value, buf_src, temp_ei->elem_size); in qmi_encode()
376 rc = qmi_encode_basic_elem(buf_dst, buf_src, in qmi_encode()
385 rc = qmi_encode_struct_elem(temp_ei, buf_dst, buf_src, in qmi_encode()
397 rc = qmi_encode_string_elem(temp_ei, buf_dst, buf_src, in qmi_encode()
439 static int qmi_decode_basic_elem(void *buf_dst, const void *buf_src, in qmi_decode_basic_elem() argument
445 QMI_ENCDEC_DECODE_N_BYTES(buf_dst, buf_src, elem_size); in qmi_decode_basic_elem()
472 void *buf_dst, const void *buf_src, in qmi_decode_struct_elem() argument
480 rc = qmi_decode(temp_ei->ei_array, buf_dst, buf_src, in qmi_decode_struct_elem()
484 buf_src = buf_src + rc; in qmi_decode_struct_elem()
518 void *buf_dst, const void *buf_src, in qmi_decode_string_elem() argument
532 rc = qmi_decode_basic_elem(&string_len, buf_src, in qmi_decode_string_elem()
547 rc = qmi_decode_basic_elem(buf_dst, buf_src + decoded_bytes, in qmi_decode_string_elem()
605 const void *buf_src = in_buf; in qmi_decode() local
613 tlv_pointer = buf_src; in qmi_decode()
616 buf_src += (TLV_TYPE_SIZE + TLV_LEN_SIZE); in qmi_decode()
623 UPDATE_DECODE_VARIABLES(buf_src, in qmi_decode()
645 rc = qmi_decode_basic_elem(&data_len_value, buf_src, in qmi_decode()
651 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
671 rc = qmi_decode_basic_elem(buf_dst, buf_src, in qmi_decode()
674 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
678 rc = qmi_decode_struct_elem(temp_ei, buf_dst, buf_src, in qmi_decode()
683 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()
687 rc = qmi_decode_string_elem(temp_ei, buf_dst, buf_src, in qmi_decode()
691 UPDATE_DECODE_VARIABLES(buf_src, decoded_bytes, rc); in qmi_decode()