Searched refs:bat_status (Results 1 – 10 of 10) sorted by relevance
25 static int bat_status = POWER_SUPPLY_STATUS_UNKNOWN; variable54 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()
22 int bat_status; member50 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()
221 u8 bat_status; in da9052_bat_check_status() local237 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()
29 int bat_status; member143 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()
315 bool status, bat_status; in mshw0011_isr() local332 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()
136 int bat_status; member
320 int bat_status; member
89 int bat_status, int bat_capacity, in __wacom_notify_battery() argument93 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() argument117 __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()
1735 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()
490 static int bat_status(void) in bat_status() function559 val->intval = bat_status(); in bat_get_property()