Lines Matching refs:charge_mode
189 if (sharpsl_pm.charge_mode == CHRG_ON)
204 if (sharpsl_pm.charge_mode == CHRG_ON) {
234 if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON)
295 sharpsl_pm.charge_mode = CHRG_ON;
306 sharpsl_pm.charge_mode = CHRG_OFF;
315 sharpsl_pm.charge_mode = CHRG_ERROR;
345 if (acin && (sharpsl_pm.charge_mode != CHRG_ON))
347 else if (sharpsl_pm.charge_mode == CHRG_ON)
371 if (sharpsl_pm.charge_mode == CHRG_ON)
381 sharpsl_pm.charge_mode = CHRG_DONE;
578 if (sharpsl_pm.charge_mode == CHRG_ON)
606 sharpsl_pm.charge_mode = CHRG_OFF;
616 if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCHK_TIME_SUSPEND + 30))) || !alarm_enable)) {
687 sharpsl_pm.charge_mode = CHRG_ERROR;
700 dev_dbg(sharpsl_pm.dev, "Charge Mode: %d\n", sharpsl_pm.charge_mode);
702 if (sharpsl_pm.charge_mode == CHRG_OFF) {
715 sharpsl_pm.charge_mode = CHRG_ON;
719 } else if (sharpsl_pm.charge_mode != CHRG_ON) {
734 sharpsl_pm.charge_mode = CHRG_ON;
779 sharpsl_pm.charge_mode = CHRG_DONE;
808 if (sharpsl_pm.charge_mode == CHRG_ON)
835 sharpsl_pm.charge_mode = CHRG_OFF;