Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/power/supply/
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()
Dz2_battery.c22 int bat_status; member
50 val->intval = charger->bat_status; in z2_batt_get_property()
92 int old_status = charger->bat_status; in z2_batt_update()
96 charger->bat_status = charger->charge_gpiod ? in z2_batt_update()
102 if (old_status != charger->bat_status) { in z2_batt_update()
105 charger->bat_status); in z2_batt_update()
199 charger->bat_status = POWER_SUPPLY_STATUS_UNKNOWN; in z2_batt_probe()
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()
/linux-6.1.9/drivers/staging/nvec/
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()
/linux-6.1.9/drivers/platform/surface/
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()
/linux-6.1.9/drivers/hid/
Dwacom.h136 int bat_status; member
Dwacom_wac.h320 int bat_status; member
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
117 __wacom_notify_battery(&wacom->battery, bat_status, bat_capacity, in wacom_notify_battery()
1956 wacom_wac->hid_data.bat_status = POWER_SUPPLY_STATUS_UNKNOWN; in wacom_wac_battery_event()
1962 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
1969 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
1975 wacom_wac->hid_data.bat_status = WACOM_POWER_SUPPLY_STATUS_AUTO; in wacom_wac_battery_event()
1994 int status = wacom_wac->hid_data.bat_status; in wacom_wac_battery_report()
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()
/linux-6.1.9/drivers/platform/x86/
Dcompal-laptop.c490 static int bat_status(void) in bat_status() function
559 val->intval = bat_status(); in bat_get_property()