Searched refs:usb_chg (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/power/
H A Dabx500_chargalg.c258 struct ux500_charger *usb_chg; member in struct:abx500_chargalg
361 return di->usb_chg->ops.check_enable(di->usb_chg, abx500_chargalg_check_charger_enable()
528 di->usb_chg && di->usb_chg->ops.kick_wd) abx500_chargalg_kick_watchdog()
529 di->usb_chg->ops.kick_wd(di->usb_chg); abx500_chargalg_kick_watchdog()
533 else if (di->usb_chg && di->usb_chg->ops.kick_wd && abx500_chargalg_kick_watchdog()
535 return di->usb_chg->ops.kick_wd(di->usb_chg); abx500_chargalg_kick_watchdog()
591 if (!di->usb_chg || !di->usb_chg->ops.enable) abx500_chargalg_usb_en()
595 if (di->usb_chg->max_out_volt) abx500_chargalg_usb_en()
596 vset = min(vset, di->usb_chg->max_out_volt); abx500_chargalg_usb_en()
597 if (di->usb_chg->max_out_curr) abx500_chargalg_usb_en()
598 iset = min(iset, di->usb_chg->max_out_curr); abx500_chargalg_usb_en()
603 return di->usb_chg->ops.enable(di->usb_chg, enable, vset, iset); abx500_chargalg_usb_en()
615 if (!di->usb_chg || !di->usb_chg->ops.pp_enable) ab8540_chargalg_usb_pp_en()
618 return di->usb_chg->ops.pp_enable(di->usb_chg, enable); ab8540_chargalg_usb_pp_en()
631 if (!di->usb_chg || !di->usb_chg->ops.pre_chg_enable) ab8540_chargalg_usb_pre_chg_en()
634 return di->usb_chg->ops.pre_chg_enable(di->usb_chg, enable); ab8540_chargalg_usb_pre_chg_en()
661 } else if (di->usb_chg && di->usb_chg->ops.update_curr && abx500_chargalg_update_chg_curr()
667 if (di->usb_chg->max_out_curr) abx500_chargalg_update_chg_curr()
668 iset = min(iset, di->usb_chg->max_out_curr); abx500_chargalg_update_chg_curr()
672 return di->usb_chg->ops.update_curr(di->usb_chg, iset); abx500_chargalg_update_chg_curr()
837 (di->usb_chg->power_path)) abx500_chargalg_end_of_charge()
1017 else if (!di->usb_chg && abx500_chargalg_get_ext_psy_data()
1019 di->usb_chg = psy_to_ux500_charger(ext); abx500_chargalg_get_ext_psy_data()
1544 di->usb_chg->power_path) { abx500_chargalg_algorithm()
H A Dab8500_charger.c169 struct ab8500_charger, usb_chg)
244 * @usb_chg: USB charger power supply
294 struct ux500_charger usb_chg; member in struct:ab8500_charger
438 sysfs_notify(&di->usb_chg.psy->dev.kobj, NULL, "present"); ab8500_charger_set_usb_connected()
1675 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_en()
1742 ret = ab8500_charger_usb_en(&di->usb_chg, true, vset, iset); ab8500_charger_usb_check_enable()
1792 ret = ab8500_charger_ac_en(&di->usb_chg, true, vset, iset); ab8500_charger_ac_check_enable()
1937 struct ux500_charger *usb_chg; ab8500_charger_get_ext_psy_data() local
1939 usb_chg = (struct ux500_charger *)data; ab8500_charger_get_ext_psy_data()
1940 psy = usb_chg->psy; ab8500_charger_get_ext_psy_data()
1942 di = to_ab8500_charger_usb_device_info(usb_chg); ab8500_charger_get_ext_psy_data()
1996 di->usb_chg.psy, ab8500_charger_get_ext_psy_data); ab8500_charger_check_vbat_work()
2012 power_supply_changed(di->usb_chg.psy); ab8500_charger_check_vbat_work()
2065 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_check_hw_failure_work()
2163 ab8500_charger_usb_en(&di->usb_chg, 0, 0, 0); ab8500_charger_usb_attached_work()
2243 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_detect_usb_type_work()
2253 di->usb_chg.psy); ab8500_charger_detect_usb_type_work()
2270 di->usb_chg.psy); ab8500_charger_detect_usb_type_work()
2298 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_link_attach_work()
2396 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_link_status_work()
2407 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_link_status_work()
2466 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_state_changed_work()
2489 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_usb_state_changed_work()
2533 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_check_usbchargernotok_work()
2593 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_check_usb_thermal_prot_work()
2887 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_chwdexp_handler()
2930 ab8500_power_supply_changed(di, di->usb_chg.psy); ab8500_charger_vbusovv_handler()
3404 ab8500_charger_usb_en(&di->usb_chg, false, 0, 0); ab8500_charger_remove()
3430 if (di->usb_chg.enabled) ab8500_charger_remove()
3431 power_supply_unregister(di->usb_chg.psy); ab8500_charger_remove()
3509 usb_psy_cfg.drv_data = &di->usb_chg; ab8500_charger_probe()
3532 di->usb_chg.ops.enable = &ab8500_charger_usb_en; ab8500_charger_probe()
3533 di->usb_chg.ops.check_enable = &ab8500_charger_usb_check_enable; ab8500_charger_probe()
3534 di->usb_chg.ops.kick_wd = &ab8500_charger_watchdog_kick; ab8500_charger_probe()
3535 di->usb_chg.ops.update_curr = &ab8500_charger_update_charger_current; ab8500_charger_probe()
3536 di->usb_chg.ops.pp_enable = &ab8540_charger_power_path_enable; ab8500_charger_probe()
3537 di->usb_chg.ops.pre_chg_enable = &ab8540_charger_usb_pre_chg_enable; ab8500_charger_probe()
3538 di->usb_chg.max_out_volt = ab8500_charger_voltage_map[ ab8500_charger_probe()
3540 di->usb_chg.max_out_curr = ab8500_charger_probe()
3542 di->usb_chg.wdt_refresh = CHG_WD_INTERVAL; ab8500_charger_probe()
3543 di->usb_chg.enabled = di->bm->usb_enabled; ab8500_charger_probe()
3544 di->usb_chg.external = false; ab8500_charger_probe()
3545 di->usb_chg.power_path = di->bm->usb_power_path; ab8500_charger_probe()
3639 if (di->usb_chg.enabled) { ab8500_charger_probe()
3640 di->usb_chg.psy = power_supply_register(di->dev, ab8500_charger_probe()
3643 if (IS_ERR(di->usb_chg.psy)) { ab8500_charger_probe()
3645 ret = PTR_ERR(di->usb_chg.psy); ab8500_charger_probe()
3729 if (di->usb_chg.enabled) ab8500_charger_probe()
3730 power_supply_unregister(di->usb_chg.psy); ab8500_charger_probe()

Completed in 129 milliseconds