Lines Matching defs:resp

991 					   const struct qcom_battmgr_message *resp,
994 unsigned int opcode = le32_to_cpu(resp->hdr.opcode);
1010 if (payload_len != sizeof(resp->info)) {
1018 battmgr->unit = le32_to_cpu(resp->info.power_unit);
1021 battmgr->info.design_capacity = le32_to_cpu(resp->info.design_capacity) * 1000;
1022 battmgr->info.last_full_capacity = le32_to_cpu(resp->info.last_full_capacity) * 1000;
1023 battmgr->info.voltage_max_design = le32_to_cpu(resp->info.design_voltage) * 1000;
1024 battmgr->info.capacity_low = le32_to_cpu(resp->info.capacity_low) * 1000;
1025 battmgr->info.cycle_count = le32_to_cpu(resp->info.cycle_count);
1026 qcom_battmgr_sc8280xp_strcpy(battmgr->info.model_number, resp->info.model_number);
1027 qcom_battmgr_sc8280xp_strcpy(battmgr->info.serial_number, resp->info.serial_number);
1028 battmgr->info.technology = qcom_battmgr_sc8280xp_parse_technology(resp->info.battery_chemistry);
1029 qcom_battmgr_sc8280xp_strcpy(battmgr->info.oem_info, resp->info.oem_info);
1030 battmgr->info.day = resp->info.day;
1031 battmgr->info.month = resp->info.month;
1032 battmgr->info.year = le16_to_cpu(resp->info.year);
1035 if (payload_len != sizeof(resp->status)) {
1043 state = le32_to_cpu(resp->status.battery_state);
1051 battmgr->status.capacity = le32_to_cpu(resp->status.capacity) * 1000;
1052 battmgr->status.power_now = le32_to_cpu(resp->status.rate) * 1000;
1053 battmgr->status.voltage_now = le32_to_cpu(resp->status.battery_voltage) * 1000;
1054 battmgr->status.temperature = qcom_battmgr_sc8280xp_convert_temp(le32_to_cpu(resp->status.temperature));
1056 source = le32_to_cpu(resp->status.charging_source);
1062 battmgr->status.discharge_time = le32_to_cpu(resp->time);
1065 battmgr->status.charge_time = le32_to_cpu(resp->time);
1076 const struct qcom_battmgr_message *resp,
1080 unsigned int opcode = le32_to_cpu(resp->hdr.opcode);
1092 property = le32_to_cpu(resp->intval.property);
1094 if (payload_len != sizeof(resp->strval)) {
1102 if (payload_len != sizeof(resp->intval)) {
1110 battmgr->error = le32_to_cpu(resp->intval.result);
1117 battmgr->status.status = le32_to_cpu(resp->intval.value);
1120 battmgr->status.health = le32_to_cpu(resp->intval.value);
1123 battmgr->info.present = le32_to_cpu(resp->intval.value);
1126 battmgr->info.charge_type = le32_to_cpu(resp->intval.value);
1129 battmgr->status.percent = le32_to_cpu(resp->intval.value) / 100;
1132 battmgr->status.voltage_ocv = le32_to_cpu(resp->intval.value);
1135 battmgr->status.voltage_now = le32_to_cpu(resp->intval.value);
1138 battmgr->info.voltage_max = le32_to_cpu(resp->intval.value);
1141 battmgr->status.current_now = le32_to_cpu(resp->intval.value);
1144 val = le32_to_cpu(resp->intval.value);
1148 battmgr->info.technology = le32_to_cpu(resp->intval.value);
1151 battmgr->info.charge_count = le32_to_cpu(resp->intval.value);
1154 battmgr->info.cycle_count = le32_to_cpu(resp->intval.value);
1157 battmgr->info.design_capacity = le32_to_cpu(resp->intval.value);
1160 battmgr->info.last_full_capacity = le32_to_cpu(resp->intval.value);
1163 strscpy(battmgr->info.model_number, resp->strval.model, BATTMGR_STRING_LEN);
1166 battmgr->status.charge_time = le32_to_cpu(resp->intval.value);
1169 battmgr->status.discharge_time = le32_to_cpu(resp->intval.value);
1172 battmgr->status.power_now = le32_to_cpu(resp->intval.value);
1180 property = le32_to_cpu(resp->intval.property);
1181 if (payload_len != sizeof(resp->intval)) {
1189 battmgr->error = le32_to_cpu(resp->intval.result);
1195 battmgr->usb.online = le32_to_cpu(resp->intval.value);
1198 battmgr->usb.voltage_now = le32_to_cpu(resp->intval.value);
1201 battmgr->usb.voltage_max = le32_to_cpu(resp->intval.value);
1204 battmgr->usb.current_now = le32_to_cpu(resp->intval.value);
1207 battmgr->usb.current_max = le32_to_cpu(resp->intval.value);
1210 battmgr->usb.current_limit = le32_to_cpu(resp->intval.value);
1213 battmgr->usb.usb_type = le32_to_cpu(resp->intval.value);
1221 property = le32_to_cpu(resp->intval.property);
1222 if (payload_len != sizeof(resp->intval)) {
1230 battmgr->error = le32_to_cpu(resp->intval.result);
1236 battmgr->wireless.online = le32_to_cpu(resp->intval.value);
1239 battmgr->wireless.voltage_now = le32_to_cpu(resp->intval.value);
1242 battmgr->wireless.voltage_max = le32_to_cpu(resp->intval.value);
1245 battmgr->wireless.current_now = le32_to_cpu(resp->intval.value);
1248 battmgr->wireless.current_max = le32_to_cpu(resp->intval.value);