Lines Matching refs:usb_chg
253 struct ux500_charger *usb_chg; member
356 return di->usb_chg->ops.check_enable(di->usb_chg, in abx500_chargalg_check_charger_enable()
523 di->usb_chg && di->usb_chg->ops.kick_wd) in abx500_chargalg_kick_watchdog()
524 di->usb_chg->ops.kick_wd(di->usb_chg); in abx500_chargalg_kick_watchdog()
528 else if (di->usb_chg && di->usb_chg->ops.kick_wd && in abx500_chargalg_kick_watchdog()
530 return di->usb_chg->ops.kick_wd(di->usb_chg); in abx500_chargalg_kick_watchdog()
586 if (!di->usb_chg || !di->usb_chg->ops.enable) in abx500_chargalg_usb_en()
590 if (di->usb_chg->max_out_volt) in abx500_chargalg_usb_en()
591 vset = min(vset, di->usb_chg->max_out_volt); in abx500_chargalg_usb_en()
592 if (di->usb_chg->max_out_curr) in abx500_chargalg_usb_en()
593 iset = min(iset, di->usb_chg->max_out_curr); in abx500_chargalg_usb_en()
598 return di->usb_chg->ops.enable(di->usb_chg, enable, vset, iset); in abx500_chargalg_usb_en()
625 } else if (di->usb_chg && di->usb_chg->ops.update_curr && in abx500_chargalg_update_chg_curr()
631 if (di->usb_chg->max_out_curr) in abx500_chargalg_update_chg_curr()
632 iset = min(iset, di->usb_chg->max_out_curr); in abx500_chargalg_update_chg_curr()
636 return di->usb_chg->ops.update_curr(di->usb_chg, iset); in abx500_chargalg_update_chg_curr()
974 else if (!di->usb_chg && in abx500_chargalg_get_ext_psy_data()
976 di->usb_chg = psy_to_ux500_charger(ext); in abx500_chargalg_get_ext_psy_data()