Lines Matching refs:usb_chg
238 struct ux500_charger *usb_chg; member
334 return di->usb_chg->ops.check_enable(di->usb_chg, in ab8500_chargalg_check_charger_enable()
467 } else if (di->usb_chg && di->usb_chg->ops.kick_wd && in ab8500_chargalg_kick_watchdog()
469 return di->usb_chg->ops.kick_wd(di->usb_chg); in ab8500_chargalg_kick_watchdog()
515 if (!di->usb_chg || !di->usb_chg->ops.enable) in ab8500_chargalg_usb_en()
519 if (di->usb_chg->max_out_volt_uv) in ab8500_chargalg_usb_en()
520 vset_uv = min(vset_uv, di->usb_chg->max_out_volt_uv); in ab8500_chargalg_usb_en()
521 if (di->usb_chg->max_out_curr_ua) in ab8500_chargalg_usb_en()
522 iset_ua = min(iset_ua, di->usb_chg->max_out_curr_ua); in ab8500_chargalg_usb_en()
527 return di->usb_chg->ops.enable(di->usb_chg, enable, vset_uv, iset_ua); in ab8500_chargalg_usb_en()
554 } else if (di->usb_chg && di->usb_chg->ops.update_curr && in ab8500_chargalg_update_chg_curr()
560 if (di->usb_chg->max_out_curr_ua) in ab8500_chargalg_update_chg_curr()
561 iset_ua = min(iset_ua, di->usb_chg->max_out_curr_ua); in ab8500_chargalg_update_chg_curr()
565 return di->usb_chg->ops.update_curr(di->usb_chg, iset_ua); in ab8500_chargalg_update_chg_curr()
885 else if (!di->usb_chg && in ab8500_chargalg_get_ext_psy_data()
887 di->usb_chg = psy_to_ux500_charger(ext); in ab8500_chargalg_get_ext_psy_data()