/linux-6.6.21/arch/sh/boards/mach-hp6xx/ |
D | hp6xx_apm.c | 56 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-6.6.21/drivers/macintosh/ |
D | apm_emu.c | 29 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-6.6.21/drivers/power/supply/ |
D | test_power.c | 30 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() 374 battery_status = map_get_value(map_status, key, battery_status); in param_set_battery_status() 382 map_get_key(map_ac_online, battery_status, "unknown")); in param_get_battery_status() 559 module_param(battery_status, battery_status, 0644); 560 MODULE_PARM_DESC(battery_status,
|
D | apm_power.c | 326 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()
|
D | charger-manager.c | 302 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-6.6.21/drivers/hid/ |
D | hid-input-test.c | 46 dev->battery_status = HID_BATTERY_UNKNOWN; in hid_test_input_get_battery_property() 52 dev->battery_status = HID_BATTERY_REPORTED; in hid_test_input_get_battery_property() 58 dev->battery_status = HID_BATTERY_REPORTED; in hid_test_input_get_battery_property()
|
D | hid-playstation.c | 41 int battery_status; member 630 int battery_status; in ps_battery_get_property() local 636 battery_status = dev->battery_status; in ps_battery_get_property() 641 val->intval = battery_status; in ps_battery_get_property() 1315 int battery_status; in dualsense_parse_report() local 1456 battery_status = POWER_SUPPLY_STATUS_DISCHARGING; in dualsense_parse_report() 1460 battery_status = POWER_SUPPLY_STATUS_CHARGING; in dualsense_parse_report() 1464 battery_status = POWER_SUPPLY_STATUS_FULL; in dualsense_parse_report() 1469 battery_status = POWER_SUPPLY_STATUS_NOT_CHARGING; in dualsense_parse_report() 1474 battery_status = POWER_SUPPLY_STATUS_UNKNOWN; in dualsense_parse_report() [all …]
|
D | hid-sony.c | 507 int battery_status; member 802 int battery_status; in sixaxis_parse_report() local 814 battery_status = (rd[offset] & 0x01) ? POWER_SUPPLY_STATUS_FULL : POWER_SUPPLY_STATUS_CHARGING; in sixaxis_parse_report() 818 battery_status = POWER_SUPPLY_STATUS_DISCHARGING; in sixaxis_parse_report() 823 sc->battery_status = battery_status; in sixaxis_parse_report() 1630 int battery_status; in sony_battery_get_property() local 1634 battery_status = sc->battery_status; in sony_battery_get_property() 1648 val->intval = battery_status; in sony_battery_get_property()
|
D | hid-input.c | 476 if (dev->battery_status != HID_BATTERY_REPORTED && in hidinput_get_battery_property() 493 if (dev->battery_status != HID_BATTERY_REPORTED && in hidinput_get_battery_property() 500 dev->battery_status = HID_BATTERY_QUERIED; in hidinput_get_battery_property() 503 if (dev->battery_status == HID_BATTERY_UNKNOWN) in hidinput_get_battery_property() 631 if (dev->battery_status != HID_BATTERY_REPORTED || in hidinput_update_battery() 635 dev->battery_status = HID_BATTERY_REPORTED; in hidinput_update_battery()
|
D | wacom_wac.c | 1544 int battery_status = data[284] & 0x7F; in wacom_intuos_pro2_bt_battery() local 1547 battery_status, chg, 1, chg); in wacom_intuos_pro2_bt_battery() 1571 int battery_status = data[45] & 0x7F; in wacom_intuos_gen3_bt_battery() local 1574 battery_status, chg, 1, chg); in wacom_intuos_gen3_bt_battery()
|
/linux-6.6.21/include/linux/ |
D | apm-emulation.h | 26 unsigned char battery_status; member
|
D | hid.h | 643 enum hid_battery_status battery_status; member
|
/linux-6.6.21/include/linux/power/ |
D | charger-manager.h | 238 int battery_status; member
|
/linux-6.6.21/drivers/scsi/ |
D | megaraid.c | 2222 u8 battery_status; in proc_show_battery() local 2237 battery_status = ((mega_inquiry3 *)inquiry)->battery_status; in proc_show_battery() 2240 battery_status = ((mraid_ext_inquiry *)inquiry)-> in proc_show_battery() 2241 raid_inq.adapter_info.battery_status; in proc_show_battery() 2247 seq_printf(m, "Battery Status:[%d]", battery_status); in proc_show_battery() 2249 if(battery_status == MEGA_BATT_CHARGE_DONE) in proc_show_battery() 2252 if(battery_status & MEGA_BATT_MODULE_MISSING) in proc_show_battery() 2255 if(battery_status & MEGA_BATT_LOW_VOLTAGE) in proc_show_battery() 2258 if(battery_status & MEGA_BATT_TEMP_HIGH) in proc_show_battery() 2261 if(battery_status & MEGA_BATT_PACK_MISSING) in proc_show_battery() [all …]
|
D | megaraid.h | 311 u8 battery_status; member 348 u8 battery_status; /* member
|
/linux-6.6.21/drivers/scsi/megaraid/ |
D | mbox_defs.h | 460 uint8_t battery_status; member 520 uint8_t battery_status; member
|
/linux-6.6.21/drivers/char/ |
D | apm-emulation.c | 442 info.battery_status = 0xff; in proc_apm_show() 459 info.ac_line_status, info.battery_status, in proc_apm_show()
|
/linux-6.6.21/arch/arm/mach-pxa/ |
D | sharpsl_pm.c | 805 info->battery_status = APM_BATTERY_STATUS_CHARGING; in sharpsl_apm_get_power_status() 807 info->battery_status = sharpsl_pm.battstat.mainbat_status; in sharpsl_apm_get_power_status() 809 info->battery_flag = (1 << info->battery_status); in sharpsl_apm_get_power_status()
|
/linux-6.6.21/arch/x86/kernel/ |
D | apm_32.c | 1643 unsigned short battery_status = 0xff; in proc_apm_show() local 1652 battery_status = bx & 0xff; in proc_apm_show() 1708 battery_status, in proc_apm_show()
|