Lines Matching refs:charge_mode
185 if (sharpsl_pm.charge_mode == CHRG_ON)
200 if (sharpsl_pm.charge_mode == CHRG_ON) {
230 if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON)
291 sharpsl_pm.charge_mode = CHRG_ON;
302 sharpsl_pm.charge_mode = CHRG_OFF;
311 sharpsl_pm.charge_mode = CHRG_ERROR;
341 if (acin && (sharpsl_pm.charge_mode != CHRG_ON))
343 else if (sharpsl_pm.charge_mode == CHRG_ON)
367 if (sharpsl_pm.charge_mode == CHRG_ON)
377 sharpsl_pm.charge_mode = CHRG_DONE;
574 if (sharpsl_pm.charge_mode == CHRG_ON)
602 sharpsl_pm.charge_mode = CHRG_OFF;
612 if ((sharpsl_pm.charge_mode == CHRG_ON) && ((alarm_enable && ((alarm_time - RCNR) > (SHARPSL_BATCHK_TIME_SUSPEND + 30))) || !alarm_enable)) {
683 sharpsl_pm.charge_mode = CHRG_ERROR;
696 dev_dbg(sharpsl_pm.dev, "Charge Mode: %d\n", sharpsl_pm.charge_mode);
698 if (sharpsl_pm.charge_mode == CHRG_OFF) {
711 sharpsl_pm.charge_mode = CHRG_ON;
715 } else if (sharpsl_pm.charge_mode != CHRG_ON) {
730 sharpsl_pm.charge_mode = CHRG_ON;
775 sharpsl_pm.charge_mode = CHRG_DONE;
804 if (sharpsl_pm.charge_mode == CHRG_ON)
831 sharpsl_pm.charge_mode = CHRG_OFF;