Lines Matching refs:intval
132 } intval; member
500 val->intval = battmgr->status.status; in qcom_battmgr_bat_get_property()
503 val->intval = battmgr->info.charge_type; in qcom_battmgr_bat_get_property()
506 val->intval = battmgr->status.health; in qcom_battmgr_bat_get_property()
509 val->intval = battmgr->info.present; in qcom_battmgr_bat_get_property()
512 val->intval = battmgr->info.technology; in qcom_battmgr_bat_get_property()
515 val->intval = battmgr->info.cycle_count; in qcom_battmgr_bat_get_property()
518 val->intval = battmgr->info.voltage_max_design; in qcom_battmgr_bat_get_property()
521 val->intval = battmgr->info.voltage_max; in qcom_battmgr_bat_get_property()
524 val->intval = battmgr->status.voltage_now; in qcom_battmgr_bat_get_property()
527 val->intval = battmgr->status.voltage_ocv; in qcom_battmgr_bat_get_property()
530 val->intval = battmgr->status.current_now; in qcom_battmgr_bat_get_property()
533 val->intval = battmgr->status.power_now; in qcom_battmgr_bat_get_property()
538 val->intval = battmgr->info.design_capacity; in qcom_battmgr_bat_get_property()
543 val->intval = battmgr->info.last_full_capacity; in qcom_battmgr_bat_get_property()
548 val->intval = battmgr->info.capacity_low; in qcom_battmgr_bat_get_property()
553 val->intval = battmgr->status.capacity; in qcom_battmgr_bat_get_property()
556 val->intval = battmgr->info.charge_count; in qcom_battmgr_bat_get_property()
561 val->intval = battmgr->info.design_capacity; in qcom_battmgr_bat_get_property()
566 val->intval = battmgr->info.last_full_capacity; in qcom_battmgr_bat_get_property()
571 val->intval = battmgr->info.capacity_low; in qcom_battmgr_bat_get_property()
576 val->intval = battmgr->status.capacity; in qcom_battmgr_bat_get_property()
579 val->intval = battmgr->status.percent; in qcom_battmgr_bat_get_property()
582 val->intval = battmgr->status.temperature; in qcom_battmgr_bat_get_property()
585 val->intval = battmgr->status.discharge_time; in qcom_battmgr_bat_get_property()
588 val->intval = battmgr->status.charge_time; in qcom_battmgr_bat_get_property()
591 val->intval = battmgr->info.year; in qcom_battmgr_bat_get_property()
594 val->intval = battmgr->info.month; in qcom_battmgr_bat_get_property()
597 val->intval = battmgr->info.day; in qcom_battmgr_bat_get_property()
694 val->intval = battmgr->ac.online; in qcom_battmgr_ac_get_property()
762 val->intval = battmgr->usb.online; in qcom_battmgr_usb_get_property()
765 val->intval = battmgr->usb.voltage_now; in qcom_battmgr_usb_get_property()
768 val->intval = battmgr->usb.voltage_max; in qcom_battmgr_usb_get_property()
771 val->intval = battmgr->usb.current_now; in qcom_battmgr_usb_get_property()
774 val->intval = battmgr->usb.current_max; in qcom_battmgr_usb_get_property()
777 val->intval = battmgr->usb.current_limit; in qcom_battmgr_usb_get_property()
780 val->intval = battmgr->usb.usb_type; in qcom_battmgr_usb_get_property()
881 val->intval = battmgr->wireless.online; in qcom_battmgr_wls_get_property()
884 val->intval = battmgr->wireless.voltage_now; in qcom_battmgr_wls_get_property()
887 val->intval = battmgr->wireless.voltage_max; in qcom_battmgr_wls_get_property()
890 val->intval = battmgr->wireless.current_now; in qcom_battmgr_wls_get_property()
893 val->intval = battmgr->wireless.current_max; in qcom_battmgr_wls_get_property()
1092 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1102 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1110 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1117 battmgr->status.status = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1120 battmgr->status.health = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1123 battmgr->info.present = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1126 battmgr->info.charge_type = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1129 battmgr->status.percent = le32_to_cpu(resp->intval.value) / 100; in qcom_battmgr_sm8350_callback()
1132 battmgr->status.voltage_ocv = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1135 battmgr->status.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1138 battmgr->info.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1141 battmgr->status.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1144 val = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1148 battmgr->info.technology = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1151 battmgr->info.charge_count = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1154 battmgr->info.cycle_count = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1157 battmgr->info.design_capacity = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1160 battmgr->info.last_full_capacity = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1166 battmgr->status.charge_time = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1169 battmgr->status.discharge_time = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1172 battmgr->status.power_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1180 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1181 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1189 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1195 battmgr->usb.online = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1198 battmgr->usb.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1201 battmgr->usb.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1204 battmgr->usb.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1207 battmgr->usb.current_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1210 battmgr->usb.current_limit = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1213 battmgr->usb.usb_type = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1221 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1222 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1230 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1236 battmgr->wireless.online = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1239 battmgr->wireless.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1242 battmgr->wireless.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1245 battmgr->wireless.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1248 battmgr->wireless.current_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()