Home
last modified time | relevance | path

Searched refs:bat_status (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dwm97xx_battery.c25 static int bat_status = POWER_SUPPLY_STATUS_UNKNOWN; variable
54 val->intval = bat_status; in wm97xx_bat_get_property()
99 int old_status = bat_status; in wm97xx_bat_update()
103 bat_status = (charge_gpiod) ? in wm97xx_bat_update()
109 if (old_status != bat_status) { in wm97xx_bat_update()
111 bat_status); in wm97xx_bat_update()
H A Dda9052-battery.c221 u8 bat_status; in da9052_bat_check_status() local
237 bat_status = v[0]; in da9052_bat_check_status()
240 dcinsel = bat_status & DA9052_STATUSA_DCINSEL; in da9052_bat_check_status()
241 dcindet = bat_status & DA9052_STATUSA_DCINDET; in da9052_bat_check_status()
242 vbussel = bat_status & DA9052_STATUSA_VBUSSEL; in da9052_bat_check_status()
243 vbusdet = bat_status & DA9052_STATUSA_VBUSDET; in da9052_bat_check_status()
/openbmc/linux/drivers/staging/nvec/
H A Dnvec_power.c29 int bat_status; member
143 power->bat_status = in nvec_power_bat_notifier()
147 power->bat_status = in nvec_power_bat_notifier()
151 power->bat_status = in nvec_power_bat_notifier()
155 power->bat_status = POWER_SUPPLY_STATUS_UNKNOWN; in nvec_power_bat_notifier()
162 power->bat_status = POWER_SUPPLY_STATUS_UNKNOWN; in nvec_power_bat_notifier()
246 val->intval = power->bat_status; in nvec_battery_get_property()
/openbmc/linux/drivers/platform/surface/
H A Dsurface3_power.c315 bool status, bat_status; in mshw0011_isr() local
332 bat_status = bst.battery_state; in mshw0011_isr()
333 if (bat_status != cdata->bat_charging) in mshw0011_isr()
337 cdata->bat_charging = bat_status; in mshw0011_isr()
/openbmc/linux/drivers/hid/
H A Dwacom.h136 int bat_status; member
H A Dwacom_wac.h321 int bat_status; member
H A Dwacom_wac.c89 int bat_status, int bat_capacity, in __wacom_notify_battery() argument
93 bool changed = battery->bat_status != bat_status || in __wacom_notify_battery()
100 battery->bat_status = bat_status; in __wacom_notify_battery()
112 int bat_status, int bat_capacity, bool bat_charging, in wacom_notify_battery() argument
122 __wacom_notify_battery(&wacom->battery, bat_status, bat_capacity, in wacom_notify_battery()
1984 wacom_wac->hid_data.bat_status = POWER_SUPPLY_STATUS_UNKNOWN; in wacom_wac_battery_event()
1990 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
1998 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
2005 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
2023 int status = wacom_wac->hid_data.bat_status; in wacom_wac_battery_report()
H A Dwacom_sys.c1735 if (battery->bat_status != WACOM_POWER_SUPPLY_STATUS_AUTO) in wacom_battery_get_property()
1736 val->intval = battery->bat_status; in wacom_battery_get_property()
/openbmc/linux/drivers/platform/x86/
H A Dcompal-laptop.c490 static int bat_status(void) in bat_status() function
559 val->intval = bat_status(); in bat_get_property()