Lines Matching refs:charge_mode
82 if (sharpsl_pm.charge_mode == CHRG_ON)
97 if (sharpsl_pm.charge_mode == CHRG_ON) {
129 if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON)
202 sharpsl_pm.charge_mode = CHRG_ON;
213 sharpsl_pm.charge_mode = CHRG_OFF;
222 sharpsl_pm.charge_mode = CHRG_ERROR;
252 if (acin && (sharpsl_pm.charge_mode != CHRG_ON))
254 else if (sharpsl_pm.charge_mode == CHRG_ON)
278 if (sharpsl_pm.charge_mode == CHRG_ON)
288 sharpsl_pm.charge_mode = CHRG_DONE;
482 if (sharpsl_pm.charge_mode == CHRG_ON)
510 sharpsl_pm.charge_mode = CHRG_OFF;
520 if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCHK_TIME_SUSPEND + 30))) || !alarm_enable)) {
602 if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) {
621 if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) {
641 sharpsl_pm.charge_mode = CHRG_ERROR;
654 dev_dbg(sharpsl_pm.dev, "Charge Mode: %d\n", sharpsl_pm.charge_mode);
656 if (sharpsl_pm.charge_mode == CHRG_OFF) {
669 sharpsl_pm.charge_mode = CHRG_ON;
673 } else if (sharpsl_pm.charge_mode != CHRG_ON) {
688 sharpsl_pm.charge_mode = CHRG_ON;
733 sharpsl_pm.charge_mode = CHRG_DONE;
759 if (sharpsl_pm.charge_mode == CHRG_ON)
784 sharpsl_pm.charge_mode = CHRG_OFF;