Searched refs:charge_state (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/power/
H A Dabx500_chargalg.c222 * @charge_state: current state of the charging algorithm
248 enum abx500_chargalg_states charge_state; member in struct:abx500_chargalg
340 di->charge_state == state ? "NO" : "YES", abx500_chargalg_state_to()
341 di->charge_state, abx500_chargalg_state_to()
342 states[di->charge_state], abx500_chargalg_state_to()
346 di->charge_state = state; abx500_chargalg_state_to()
351 switch (di->charge_state) { abx500_chargalg_check_charger_enable()
827 di->charge_state == STATE_NORMAL && abx500_chargalg_end_of_charge()
1361 if (di->charge_state != STATE_HANDHELD) { abx500_chargalg_algorithm()
1368 else if (di->charge_state == STATE_SUSPENDED_INIT || abx500_chargalg_algorithm()
1369 di->charge_state == STATE_SUSPENDED) { abx500_chargalg_algorithm()
1375 if (di->charge_state != STATE_SAFETY_TIMER_EXPIRED) abx500_chargalg_algorithm()
1386 if (di->charge_state != STATE_BATT_REMOVED) abx500_chargalg_algorithm()
1395 if (di->charge_state != STATE_CHG_NOT_OK && abx500_chargalg_algorithm()
1405 if (di->charge_state != STATE_OVV_PROTECT) abx500_chargalg_algorithm()
1411 if (di->charge_state != STATE_HW_TEMP_PROTECT) abx500_chargalg_algorithm()
1417 if (di->charge_state != STATE_TEMP_UNDEROVER) abx500_chargalg_algorithm()
1424 if (di->charge_state != STATE_WD_EXPIRED) abx500_chargalg_algorithm()
1429 if (di->charge_state != STATE_TEMP_LOWHIGH) abx500_chargalg_algorithm()
1444 states[di->charge_state], abx500_chargalg_algorithm()
1460 switch (di->charge_state) { abx500_chargalg_algorithm()
1696 if (di->charge_state == STATE_NORMAL_INIT || abx500_chargalg_algorithm()
1697 di->charge_state == STATE_MAINTENANCE_A_INIT || abx500_chargalg_algorithm()
1698 di->charge_state == STATE_MAINTENANCE_B_INIT) abx500_chargalg_algorithm()
1795 } else if (di->charge_state == STATE_SAFETY_TIMER_EXPIRED || abx500_chargalg_get_property()
1796 di->charge_state == STATE_SAFETY_TIMER_EXPIRED_INIT) { abx500_chargalg_get_property()
H A Dab8500_fg.c95 static char *charge_state[] = { variable
178 * @charge_state: Current charge state
220 enum ab8500_fg_charge_state charge_state; member in struct:ab8500_fg
1405 di->charge_state, ab8500_fg_charge_state_to()
1406 charge_state[di->charge_state], ab8500_fg_charge_state_to()
1408 charge_state[new_state]); ab8500_fg_charge_state_to()
1410 di->charge_state = new_state; ab8500_fg_charge_state_to()
1441 switch (di->charge_state) { ab8500_fg_algorithm_charging()
1540 if (di->charge_state != AB8500_FG_CHARGE_INIT) ab8500_fg_algorithm_discharging()
1780 di->charge_state, ab8500_fg_algorithm()

Completed in 107 milliseconds