Lines Matching refs:info

182 		} info;
190 /* mWh or mAh, based on info->power_unit */
301 struct qcom_battmgr_info info;
448 if (!battmgr->info.valid) {
452 battmgr->info.valid = true;
503 val->intval = battmgr->info.charge_type;
509 val->intval = battmgr->info.present;
512 val->intval = battmgr->info.technology;
515 val->intval = battmgr->info.cycle_count;
518 val->intval = battmgr->info.voltage_max_design;
521 val->intval = battmgr->info.voltage_max;
538 val->intval = battmgr->info.design_capacity;
543 val->intval = battmgr->info.last_full_capacity;
548 val->intval = battmgr->info.capacity_low;
556 val->intval = battmgr->info.charge_count;
561 val->intval = battmgr->info.design_capacity;
566 val->intval = battmgr->info.last_full_capacity;
571 val->intval = battmgr->info.capacity_low;
591 val->intval = battmgr->info.year;
594 val->intval = battmgr->info.month;
597 val->intval = battmgr->info.day;
600 val->strval = battmgr->info.model_number;
603 val->strval = battmgr->info.oem_info;
606 val->strval = battmgr->info.serial_number;
945 battmgr->info.valid = false;
1010 if (payload_len != sizeof(resp->info)) {
1018 battmgr->unit = le32_to_cpu(resp->info.power_unit);
1020 battmgr->info.present = true;
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);
1123 battmgr->info.present = le32_to_cpu(resp->intval.value);
1126 battmgr->info.charge_type = le32_to_cpu(resp->intval.value);
1138 battmgr->info.voltage_max = 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);