Home
last modified time | relevance | path

Searched refs:is_charging (Results 1 – 3 of 3) sorted by relevance

/drivers/power/
Dtwl4030_charger.c888 int is_charging; in twl4030_bci_get_property() local
897 is_charging = state & TWL4030_MSTATEC_USB; in twl4030_bci_get_property()
899 is_charging = state & TWL4030_MSTATEC_AC; in twl4030_bci_get_property()
900 if (!is_charging) { in twl4030_bci_get_property()
904 is_charging = s & 1; in twl4030_bci_get_property()
906 is_charging = s & 2; in twl4030_bci_get_property()
907 if (is_charging) in twl4030_bci_get_property()
914 if (is_charging) in twl4030_bci_get_property()
921 if (!is_charging) in twl4030_bci_get_property()
938 if (!is_charging) in twl4030_bci_get_property()
[all …]
Djz4740-battery.c194 int is_charging; in jz_battery_update() local
197 is_charging = gpio_get_value(jz_battery->pdata->gpio_charge); in jz_battery_update()
198 is_charging ^= jz_battery->pdata->gpio_charge_active_low; in jz_battery_update()
199 if (is_charging) in jz_battery_update()
Dcharger-manager.c204 static bool is_charging(struct charger_manager *cm) in is_charging() function
342 return is_charging(cm); in is_polling_required()
896 if (is_charging(cm)) in charger_get_property()
958 if (is_charging(cm)) in charger_get_property()
973 !is_charging(cm)) { in charger_get_property()
993 if (is_charging(cm)) { in charger_get_property()
1910 if (is_charging(cm)) { in cm_need_to_awake()