Lines Matching refs:ac_chg
237 struct ux500_charger *ac_chg; member
338 return di->ac_chg->ops.check_enable(di->ac_chg, in ab8500_chargalg_check_charger_enable()
464 if (di->ac_chg && di->ac_chg->ops.kick_wd && in ab8500_chargalg_kick_watchdog()
466 return di->ac_chg->ops.kick_wd(di->ac_chg); in ab8500_chargalg_kick_watchdog()
487 if (!di->ac_chg || !di->ac_chg->ops.enable) in ab8500_chargalg_ac_en()
491 if (di->ac_chg->max_out_volt_uv) in ab8500_chargalg_ac_en()
492 vset_uv = min(vset_uv, di->ac_chg->max_out_volt_uv); in ab8500_chargalg_ac_en()
493 if (di->ac_chg->max_out_curr_ua) in ab8500_chargalg_ac_en()
494 iset_ua = min(iset_ua, di->ac_chg->max_out_curr_ua); in ab8500_chargalg_ac_en()
499 return di->ac_chg->ops.enable(di->ac_chg, enable, vset_uv, iset_ua); in ab8500_chargalg_ac_en()
542 if (di->ac_chg && di->ac_chg->ops.update_curr && in ab8500_chargalg_update_chg_curr()
548 if (di->ac_chg->max_out_curr_ua) in ab8500_chargalg_update_chg_curr()
549 iset_ua = min(iset_ua, di->ac_chg->max_out_curr_ua); in ab8500_chargalg_update_chg_curr()
553 return di->ac_chg->ops.update_curr(di->ac_chg, iset_ua); in ab8500_chargalg_update_chg_curr()
882 if (!di->ac_chg && in ab8500_chargalg_get_ext_psy_data()
884 di->ac_chg = psy_to_ux500_charger(ext); in ab8500_chargalg_get_ext_psy_data()