Lines Matching refs:charge_mode
185 if (sharpsl_pm.charge_mode == CHRG_ON) in get_percentage()
200 if (sharpsl_pm.charge_mode == CHRG_ON) { in get_apm_status()
230 if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON) in sharpsl_battery_thread()
291 sharpsl_pm.charge_mode = CHRG_ON; in sharpsl_charge_on()
302 sharpsl_pm.charge_mode = CHRG_OFF; in sharpsl_charge_off()
311 sharpsl_pm.charge_mode = CHRG_ERROR; in sharpsl_charge_error()
341 if (acin && (sharpsl_pm.charge_mode != CHRG_ON)) in sharpsl_ac_timer()
343 else if (sharpsl_pm.charge_mode == CHRG_ON) in sharpsl_ac_timer()
367 if (sharpsl_pm.charge_mode == CHRG_ON) in sharpsl_chrg_full_timer()
377 sharpsl_pm.charge_mode = CHRG_DONE; in sharpsl_chrg_full_timer()
574 if (sharpsl_pm.charge_mode == CHRG_ON) in sharpsl_pm_suspend()
602 sharpsl_pm.charge_mode = CHRG_OFF; in corgi_goto_sleep()
612 …if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCH… in corgi_goto_sleep()
683 sharpsl_pm.charge_mode = CHRG_ERROR; in sharpsl_off_charge_error()
696 dev_dbg(sharpsl_pm.dev, "Charge Mode: %d\n", sharpsl_pm.charge_mode); in sharpsl_off_charge_battery()
698 if (sharpsl_pm.charge_mode == CHRG_OFF) { in sharpsl_off_charge_battery()
711 sharpsl_pm.charge_mode = CHRG_ON; in sharpsl_off_charge_battery()
715 } else if (sharpsl_pm.charge_mode != CHRG_ON) { in sharpsl_off_charge_battery()
730 sharpsl_pm.charge_mode = CHRG_ON; in sharpsl_off_charge_battery()
775 sharpsl_pm.charge_mode = CHRG_DONE; in sharpsl_off_charge_battery()
804 if (sharpsl_pm.charge_mode == CHRG_ON) in sharpsl_apm_get_power_status()
831 sharpsl_pm.charge_mode = CHRG_OFF; in sharpsl_pm_probe()