temp_ei 82 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 86 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 89 drivers/soc/qcom/qmi_encdec.c tlv_type = temp_ei->tlv_type; temp_ei 90 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 91 drivers/soc/qcom/qmi_encdec.c } while (tlv_type == temp_ei->tlv_type); temp_ei 94 drivers/soc/qcom/qmi_encdec.c return temp_ei; temp_ei 108 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 113 drivers/soc/qcom/qmi_encdec.c while (temp_ei->data_type != QMI_EOTI) { temp_ei 115 drivers/soc/qcom/qmi_encdec.c if (temp_ei->data_type == QMI_OPT_FLAG) { temp_ei 116 drivers/soc/qcom/qmi_encdec.c temp_ei = skip_to_next_elem(temp_ei, level); temp_ei 120 drivers/soc/qcom/qmi_encdec.c if (temp_ei->data_type == QMI_DATA_LEN) { temp_ei 121 drivers/soc/qcom/qmi_encdec.c min_msg_len += (temp_ei->elem_size == sizeof(u8) ? temp_ei 123 drivers/soc/qcom/qmi_encdec.c temp_ei++; temp_ei 125 drivers/soc/qcom/qmi_encdec.c } else if (temp_ei->data_type == QMI_STRUCT) { temp_ei 126 drivers/soc/qcom/qmi_encdec.c min_msg_len += qmi_calc_min_msg_len(temp_ei->ei_array, temp_ei 128 drivers/soc/qcom/qmi_encdec.c temp_ei++; temp_ei 129 drivers/soc/qcom/qmi_encdec.c } else if (temp_ei->data_type == QMI_STRING) { temp_ei 131 drivers/soc/qcom/qmi_encdec.c min_msg_len += temp_ei->elem_len <= U8_MAX ? temp_ei 133 drivers/soc/qcom/qmi_encdec.c min_msg_len += temp_ei->elem_len * temp_ei->elem_size; temp_ei 134 drivers/soc/qcom/qmi_encdec.c temp_ei++; temp_ei 136 drivers/soc/qcom/qmi_encdec.c min_msg_len += (temp_ei->elem_len * temp_ei->elem_size); temp_ei 137 drivers/soc/qcom/qmi_encdec.c temp_ei++; temp_ei 203 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 206 drivers/soc/qcom/qmi_encdec.c rc = qmi_encode(temp_ei->ei_array, buf_dst, buf_src, temp_ei 213 drivers/soc/qcom/qmi_encdec.c buf_src = buf_src + temp_ei->elem_size; temp_ei 242 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 247 drivers/soc/qcom/qmi_encdec.c string_len_sz = temp_ei->elem_len <= U8_MAX ? temp_ei 249 drivers/soc/qcom/qmi_encdec.c if (string_len > temp_ei->elem_len) { temp_ei 251 drivers/soc/qcom/qmi_encdec.c __func__, string_len, temp_ei->elem_len); temp_ei 274 drivers/soc/qcom/qmi_encdec.c string_len, temp_ei->elem_size); temp_ei 296 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 316 drivers/soc/qcom/qmi_encdec.c while (temp_ei->data_type != QMI_EOTI) { temp_ei 317 drivers/soc/qcom/qmi_encdec.c buf_src = in_c_struct + temp_ei->offset; temp_ei 318 drivers/soc/qcom/qmi_encdec.c tlv_type = temp_ei->tlv_type; temp_ei 320 drivers/soc/qcom/qmi_encdec.c if (temp_ei->array_type == NO_ARRAY) { temp_ei 322 drivers/soc/qcom/qmi_encdec.c } else if (temp_ei->array_type == STATIC_ARRAY) { temp_ei 323 drivers/soc/qcom/qmi_encdec.c data_len_value = temp_ei->elem_len; temp_ei 325 drivers/soc/qcom/qmi_encdec.c temp_ei->elem_len < data_len_value) { temp_ei 330 drivers/soc/qcom/qmi_encdec.c switch (temp_ei->data_type) { temp_ei 335 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 337 drivers/soc/qcom/qmi_encdec.c temp_ei = skip_to_next_elem(temp_ei, enc_level); temp_ei 341 drivers/soc/qcom/qmi_encdec.c memcpy(&data_len_value, buf_src, temp_ei->elem_size); temp_ei 342 drivers/soc/qcom/qmi_encdec.c data_len_sz = temp_ei->elem_size == sizeof(u8) ? temp_ei 353 drivers/soc/qcom/qmi_encdec.c UPDATE_ENCODE_VARIABLES(temp_ei, buf_dst, temp_ei 357 drivers/soc/qcom/qmi_encdec.c temp_ei = skip_to_next_elem(temp_ei, enc_level); temp_ei 369 drivers/soc/qcom/qmi_encdec.c if (((data_len_value * temp_ei->elem_size) + temp_ei 373 drivers/soc/qcom/qmi_encdec.c __func__, temp_ei->data_type); temp_ei 378 drivers/soc/qcom/qmi_encdec.c temp_ei->elem_size); temp_ei 379 drivers/soc/qcom/qmi_encdec.c UPDATE_ENCODE_VARIABLES(temp_ei, buf_dst, temp_ei 385 drivers/soc/qcom/qmi_encdec.c rc = qmi_encode_struct_elem(temp_ei, buf_dst, buf_src, temp_ei 391 drivers/soc/qcom/qmi_encdec.c UPDATE_ENCODE_VARIABLES(temp_ei, buf_dst, temp_ei 397 drivers/soc/qcom/qmi_encdec.c rc = qmi_encode_string_elem(temp_ei, buf_dst, buf_src, temp_ei 402 drivers/soc/qcom/qmi_encdec.c UPDATE_ENCODE_VARIABLES(temp_ei, buf_dst, temp_ei 477 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 480 drivers/soc/qcom/qmi_encdec.c rc = qmi_decode(temp_ei->ei_array, buf_dst, buf_src, temp_ei 485 drivers/soc/qcom/qmi_encdec.c buf_dst = buf_dst + temp_ei->elem_size; temp_ei 525 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 530 drivers/soc/qcom/qmi_encdec.c string_len_sz = temp_ei->elem_len <= U8_MAX ? temp_ei 537 drivers/soc/qcom/qmi_encdec.c if (string_len > temp_ei->elem_len) { temp_ei 539 drivers/soc/qcom/qmi_encdec.c __func__, string_len, temp_ei->elem_len); temp_ei 548 drivers/soc/qcom/qmi_encdec.c string_len, temp_ei->elem_size); temp_ei 570 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 572 drivers/soc/qcom/qmi_encdec.c while (temp_ei->data_type != QMI_EOTI) { temp_ei 573 drivers/soc/qcom/qmi_encdec.c if (temp_ei->tlv_type == (u8)type) temp_ei 574 drivers/soc/qcom/qmi_encdec.c return temp_ei; temp_ei 575 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 597 drivers/soc/qcom/qmi_encdec.c struct qmi_elem_info *temp_ei = ei_array; temp_ei 609 drivers/soc/qcom/qmi_encdec.c if (dec_level >= 2 && temp_ei->data_type == QMI_EOTI) temp_ei 618 drivers/soc/qcom/qmi_encdec.c temp_ei = find_ei(ei_array, tlv_type); temp_ei 619 drivers/soc/qcom/qmi_encdec.c if (!temp_ei && tlv_type < OPTIONAL_TLV_TYPE_START) { temp_ei 622 drivers/soc/qcom/qmi_encdec.c } else if (!temp_ei) { temp_ei 635 drivers/soc/qcom/qmi_encdec.c buf_dst = out_c_struct + temp_ei->offset; temp_ei 636 drivers/soc/qcom/qmi_encdec.c if (temp_ei->data_type == QMI_OPT_FLAG) { temp_ei 638 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 639 drivers/soc/qcom/qmi_encdec.c buf_dst = out_c_struct + temp_ei->offset; temp_ei 642 drivers/soc/qcom/qmi_encdec.c if (temp_ei->data_type == QMI_DATA_LEN) { temp_ei 643 drivers/soc/qcom/qmi_encdec.c data_len_sz = temp_ei->elem_size == sizeof(u8) ? temp_ei 648 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1; temp_ei 649 drivers/soc/qcom/qmi_encdec.c buf_dst = out_c_struct + temp_ei->offset; temp_ei 654 drivers/soc/qcom/qmi_encdec.c if (temp_ei->array_type == NO_ARRAY) { temp_ei 656 drivers/soc/qcom/qmi_encdec.c } else if (temp_ei->array_type == STATIC_ARRAY) { temp_ei 657 drivers/soc/qcom/qmi_encdec.c data_len_value = temp_ei->elem_len; temp_ei 658 drivers/soc/qcom/qmi_encdec.c } else if (data_len_value > temp_ei->elem_len) { temp_ei 660 drivers/soc/qcom/qmi_encdec.c __func__, data_len_value, temp_ei->elem_len); temp_ei 664 drivers/soc/qcom/qmi_encdec.c switch (temp_ei->data_type) { temp_ei 673 drivers/soc/qcom/qmi_encdec.c temp_ei->elem_size); temp_ei 678 drivers/soc/qcom/qmi_encdec.c rc = qmi_decode_struct_elem(temp_ei, buf_dst, buf_src, temp_ei 687 drivers/soc/qcom/qmi_encdec.c rc = qmi_decode_string_elem(temp_ei, buf_dst, buf_src, temp_ei 698 drivers/soc/qcom/qmi_encdec.c temp_ei = temp_ei + 1;