Lines Matching refs:intval
133 } intval; member
501 val->intval = battmgr->status.status; in qcom_battmgr_bat_get_property()
504 val->intval = battmgr->info.charge_type; in qcom_battmgr_bat_get_property()
507 val->intval = battmgr->status.health; in qcom_battmgr_bat_get_property()
510 val->intval = battmgr->info.present; in qcom_battmgr_bat_get_property()
513 val->intval = battmgr->info.technology; in qcom_battmgr_bat_get_property()
516 val->intval = battmgr->info.cycle_count; in qcom_battmgr_bat_get_property()
519 val->intval = battmgr->info.voltage_max_design; in qcom_battmgr_bat_get_property()
522 val->intval = battmgr->info.voltage_max; in qcom_battmgr_bat_get_property()
525 val->intval = battmgr->status.voltage_now; in qcom_battmgr_bat_get_property()
528 val->intval = battmgr->status.voltage_ocv; in qcom_battmgr_bat_get_property()
531 val->intval = battmgr->status.current_now; in qcom_battmgr_bat_get_property()
534 val->intval = battmgr->status.power_now; in qcom_battmgr_bat_get_property()
539 val->intval = battmgr->info.design_capacity; in qcom_battmgr_bat_get_property()
544 val->intval = battmgr->info.last_full_capacity; in qcom_battmgr_bat_get_property()
549 val->intval = battmgr->info.capacity_low; in qcom_battmgr_bat_get_property()
554 val->intval = battmgr->status.capacity; in qcom_battmgr_bat_get_property()
557 val->intval = battmgr->info.charge_count; in qcom_battmgr_bat_get_property()
562 val->intval = battmgr->info.design_capacity; in qcom_battmgr_bat_get_property()
567 val->intval = battmgr->info.last_full_capacity; in qcom_battmgr_bat_get_property()
572 val->intval = battmgr->info.capacity_low; in qcom_battmgr_bat_get_property()
577 val->intval = battmgr->status.capacity; in qcom_battmgr_bat_get_property()
582 val->intval = battmgr->status.percent; in qcom_battmgr_bat_get_property()
585 val->intval = battmgr->status.temperature; in qcom_battmgr_bat_get_property()
588 val->intval = battmgr->status.discharge_time; in qcom_battmgr_bat_get_property()
591 val->intval = battmgr->status.charge_time; in qcom_battmgr_bat_get_property()
594 val->intval = battmgr->info.year; in qcom_battmgr_bat_get_property()
597 val->intval = battmgr->info.month; in qcom_battmgr_bat_get_property()
600 val->intval = battmgr->info.day; in qcom_battmgr_bat_get_property()
698 val->intval = battmgr->ac.online; in qcom_battmgr_ac_get_property()
766 val->intval = battmgr->usb.online; in qcom_battmgr_usb_get_property()
769 val->intval = battmgr->usb.voltage_now; in qcom_battmgr_usb_get_property()
772 val->intval = battmgr->usb.voltage_max; in qcom_battmgr_usb_get_property()
775 val->intval = battmgr->usb.current_now; in qcom_battmgr_usb_get_property()
778 val->intval = battmgr->usb.current_max; in qcom_battmgr_usb_get_property()
781 val->intval = battmgr->usb.current_limit; in qcom_battmgr_usb_get_property()
784 val->intval = battmgr->usb.usb_type; in qcom_battmgr_usb_get_property()
888 val->intval = battmgr->wireless.online; in qcom_battmgr_wls_get_property()
891 val->intval = battmgr->wireless.voltage_now; in qcom_battmgr_wls_get_property()
894 val->intval = battmgr->wireless.voltage_max; in qcom_battmgr_wls_get_property()
897 val->intval = battmgr->wireless.current_now; in qcom_battmgr_wls_get_property()
900 val->intval = battmgr->wireless.current_max; in qcom_battmgr_wls_get_property()
1123 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1133 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1141 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1148 battmgr->status.status = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1151 battmgr->status.health = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1154 battmgr->info.present = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1157 battmgr->info.charge_type = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1160 battmgr->status.percent = le32_to_cpu(resp->intval.value) / 100; in qcom_battmgr_sm8350_callback()
1163 battmgr->status.voltage_ocv = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1166 battmgr->status.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1169 battmgr->info.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1172 battmgr->status.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1175 val = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1179 battmgr->info.technology = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1182 battmgr->info.charge_count = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1185 battmgr->info.cycle_count = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1188 battmgr->info.design_capacity = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1191 battmgr->info.last_full_capacity = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1197 battmgr->status.charge_time = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1200 battmgr->status.discharge_time = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1203 battmgr->status.power_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1211 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1212 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1220 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1226 battmgr->usb.online = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1229 battmgr->usb.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1232 battmgr->usb.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1235 battmgr->usb.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1238 battmgr->usb.current_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1241 battmgr->usb.current_limit = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1244 battmgr->usb.usb_type = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1252 property = le32_to_cpu(resp->intval.property); in qcom_battmgr_sm8350_callback()
1253 if (payload_len != sizeof(resp->intval)) { in qcom_battmgr_sm8350_callback()
1261 battmgr->error = le32_to_cpu(resp->intval.result); in qcom_battmgr_sm8350_callback()
1267 battmgr->wireless.online = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1270 battmgr->wireless.voltage_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1273 battmgr->wireless.voltage_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1276 battmgr->wireless.current_now = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()
1279 battmgr->wireless.current_max = le32_to_cpu(resp->intval.value); in qcom_battmgr_sm8350_callback()