Home
last modified time | relevance | path

Searched refs:battery_status (Results 1 – 19 of 19) sorted by relevance

/linux-5.19.10/arch/sh/boards/mach-hp6xx/
Dhp6xx_apm.c56 info->battery_status = APM_BATTERY_STATUS_NOT_PRESENT; in hp6x0_apm_get_power_status()
59 info->battery_status = APM_BATTERY_STATUS_CHARGING; in hp6x0_apm_get_power_status()
63 info->battery_status = APM_BATTERY_STATUS_CRITICAL; in hp6x0_apm_get_power_status()
66 info->battery_status = APM_BATTERY_STATUS_LOW; in hp6x0_apm_get_power_status()
69 info->battery_status = APM_BATTERY_STATUS_HIGH; in hp6x0_apm_get_power_status()
/linux-5.19.10/drivers/macintosh/
Dapm_emu.c29 info->battery_status = APM_BATTERY_STATUS_UNKNOWN; in pmu_apm_get_power_status()
68 info->battery_status = APM_BATTERY_STATUS_CHARGING; in pmu_apm_get_power_status()
71 info->battery_status = APM_BATTERY_STATUS_CRITICAL; in pmu_apm_get_power_status()
74 info->battery_status = APM_BATTERY_STATUS_LOW; in pmu_apm_get_power_status()
77 info->battery_status = APM_BATTERY_STATUS_HIGH; in pmu_apm_get_power_status()
/linux-5.19.10/drivers/power/supply/
Dtest_power.c30 static int battery_status = POWER_SUPPLY_STATUS_DISCHARGING; variable
84 val->intval = battery_status; in test_power_get_battery_property()
241 battery_status = POWER_SUPPLY_STATUS_DISCHARGING; in test_power_exit()
375 battery_status = map_get_value(map_status, key, battery_status); in param_set_battery_status()
383 map_get_key(map_ac_online, battery_status, "unknown")); in param_get_battery_status()
560 module_param(battery_status, battery_status, 0644);
561 MODULE_PARM_DESC(battery_status,
Dapm_power.c326 info->battery_status = APM_BATTERY_STATUS_CHARGING; in apm_battery_apm_get_power_status()
329 info->battery_status = APM_BATTERY_STATUS_HIGH; in apm_battery_apm_get_power_status()
331 info->battery_status = APM_BATTERY_STATUS_LOW; in apm_battery_apm_get_power_status()
333 info->battery_status = APM_BATTERY_STATUS_CRITICAL; in apm_battery_apm_get_power_status()
335 info->battery_flag = info->battery_status; in apm_battery_apm_get_power_status()
Dcharger-manager.c302 if (cm->battery_status == POWER_SUPPLY_STATUS_FULL in is_full_charged()
471 } else if (cm->battery_status == POWER_SUPPLY_STATUS_NOT_CHARGING) { in check_charging_duration()
579 switch (cm->battery_status) { in cm_get_target_status()
613 if (cm->battery_status != target) { in _cm_monitor()
614 cm->battery_status = target; in _cm_monitor()
618 return (cm->battery_status == POWER_SUPPLY_STATUS_NOT_CHARGING); in _cm_monitor()
723 val->intval = cm->battery_status; in charger_get_property()
/linux-5.19.10/drivers/hid/
Dhid-playstation.c41 int battery_status; member
395 int battery_status; in ps_battery_get_property() local
401 battery_status = dev->battery_status; in ps_battery_get_property()
406 val->intval = battery_status; in ps_battery_get_property()
1017 int battery_status; in dualsense_parse_report() local
1159 battery_status = POWER_SUPPLY_STATUS_DISCHARGING; in dualsense_parse_report()
1163 battery_status = POWER_SUPPLY_STATUS_CHARGING; in dualsense_parse_report()
1167 battery_status = POWER_SUPPLY_STATUS_FULL; in dualsense_parse_report()
1172 battery_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in dualsense_parse_report()
1177 battery_status = POWER_SUPPLY_STATUS_UNKNOWN; in dualsense_parse_report()
[all …]
Dhid-sony.c596 int battery_status; member
995 int battery_status; in sixaxis_parse_report() local
1007 battery_status = (rd[offset] & 0x01) ? POWER_SUPPLY_STATUS_FULL : POWER_SUPPLY_STATUS_CHARGING; in sixaxis_parse_report()
1011 battery_status = POWER_SUPPLY_STATUS_DISCHARGING; in sixaxis_parse_report()
1016 sc->battery_status = battery_status; in sixaxis_parse_report()
1045 int battery_status; in dualshock4_parse_report() local
1171 battery_status = POWER_SUPPLY_STATUS_CHARGING; in dualshock4_parse_report()
1174 battery_status = POWER_SUPPLY_STATUS_CHARGING; in dualshock4_parse_report()
1177 battery_status = POWER_SUPPLY_STATUS_FULL; in dualshock4_parse_report()
1180 battery_status = POWER_SUPPLY_STATUS_UNKNOWN; in dualshock4_parse_report()
[all …]
Dhid-input.c450 if (dev->battery_status != HID_BATTERY_REPORTED && in hidinput_get_battery_property()
467 if (dev->battery_status != HID_BATTERY_REPORTED && in hidinput_get_battery_property()
474 dev->battery_status = HID_BATTERY_QUERIED; in hidinput_get_battery_property()
477 if (dev->battery_status == HID_BATTERY_UNKNOWN) in hidinput_get_battery_property()
601 if (dev->battery_status != HID_BATTERY_REPORTED || in hidinput_update_battery()
605 dev->battery_status = HID_BATTERY_REPORTED; in hidinput_update_battery()
Dwacom_wac.c1478 int battery_status = data[284] & 0x7F; in wacom_intuos_pro2_bt_battery() local
1481 battery_status, chg, 1, chg); in wacom_intuos_pro2_bt_battery()
1505 int battery_status = data[45] & 0x7F; in wacom_intuos_gen3_bt_battery() local
1508 battery_status, chg, 1, chg); in wacom_intuos_gen3_bt_battery()
/linux-5.19.10/include/linux/
Dapm-emulation.h26 unsigned char battery_status; member
Dhid.h623 enum hid_battery_status battery_status; member
/linux-5.19.10/include/linux/power/
Dcharger-manager.h238 int battery_status; member
/linux-5.19.10/drivers/scsi/
Dmegaraid.c2221 u8 battery_status; in proc_show_battery() local
2236 battery_status = ((mega_inquiry3 *)inquiry)->battery_status; in proc_show_battery()
2239 battery_status = ((mraid_ext_inquiry *)inquiry)-> in proc_show_battery()
2240 raid_inq.adapter_info.battery_status; in proc_show_battery()
2246 seq_printf(m, "Battery Status:[%d]", battery_status); in proc_show_battery()
2248 if(battery_status == MEGA_BATT_CHARGE_DONE) in proc_show_battery()
2251 if(battery_status & MEGA_BATT_MODULE_MISSING) in proc_show_battery()
2254 if(battery_status & MEGA_BATT_LOW_VOLTAGE) in proc_show_battery()
2257 if(battery_status & MEGA_BATT_TEMP_HIGH) in proc_show_battery()
2260 if(battery_status & MEGA_BATT_PACK_MISSING) in proc_show_battery()
[all …]
Dmegaraid.h311 u8 battery_status; member
348 u8 battery_status; /* member
/linux-5.19.10/drivers/scsi/megaraid/
Dmbox_defs.h460 uint8_t battery_status; member
520 uint8_t battery_status; member
/linux-5.19.10/drivers/char/
Dapm-emulation.c442 info.battery_status = 0xff; in proc_apm_show()
459 info.ac_line_status, info.battery_status, in proc_apm_show()
/linux-5.19.10/arch/arm/mach-pxa/
Dsharpsl_pm.c811 info->battery_status = APM_BATTERY_STATUS_CHARGING; in sharpsl_apm_get_power_status()
813 info->battery_status = sharpsl_pm.battstat.mainbat_status; in sharpsl_apm_get_power_status()
815 info->battery_flag = (1 << info->battery_status); in sharpsl_apm_get_power_status()
Dzeus.c731 info->battery_status = APM_BATTERY_STATUS_NOT_PRESENT; in zeus_get_power_status()
/linux-5.19.10/arch/x86/kernel/
Dapm_32.c1649 unsigned short battery_status = 0xff; in proc_apm_show() local
1658 battery_status = bx & 0xff; in proc_apm_show()
1714 battery_status, in proc_apm_show()