Lines Matching refs:usb_chg

167 	struct ab8500_charger, usb_chg)
292 struct ux500_charger usb_chg; member
436 sysfs_notify(&di->usb_chg.psy->dev.kobj, NULL, "present"); in ab8500_charger_set_usb_connected()
1670 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_en()
1737 ret = ab8500_charger_usb_en(&di->usb_chg, true, vset, iset); in ab8500_charger_usb_check_enable()
1787 ret = ab8500_charger_ac_en(&di->usb_chg, true, vset, iset); in ab8500_charger_ac_check_enable()
1871 struct ux500_charger *usb_chg; in ab8500_charger_get_ext_psy_data() local
1873 usb_chg = (struct ux500_charger *)data; in ab8500_charger_get_ext_psy_data()
1874 psy = usb_chg->psy; in ab8500_charger_get_ext_psy_data()
1876 di = to_ab8500_charger_usb_device_info(usb_chg); in ab8500_charger_get_ext_psy_data()
1924 di->usb_chg.psy, ab8500_charger_get_ext_psy_data); in ab8500_charger_check_vbat_work()
1940 power_supply_changed(di->usb_chg.psy); in ab8500_charger_check_vbat_work()
1993 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_hw_failure_work()
2091 ab8500_charger_usb_en(&di->usb_chg, 0, 0, 0); in ab8500_charger_usb_attached_work()
2171 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2181 di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2198 di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2226 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_attach_work()
2324 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_status_work()
2335 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_status_work()
2394 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_state_changed_work()
2417 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_state_changed_work()
2461 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_usbchargernotok_work()
2521 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_usb_thermal_prot_work()
2807 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_chwdexp_handler()
2850 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_vbusovv_handler()
3290 ab8500_charger_usb_en(&di->usb_chg, false, 0, 0); in ab8500_charger_remove()
3316 if (di->usb_chg.enabled) in ab8500_charger_remove()
3317 power_supply_unregister(di->usb_chg.psy); in ab8500_charger_remove()
3395 usb_psy_cfg.drv_data = &di->usb_chg; in ab8500_charger_probe()
3418 di->usb_chg.ops.enable = &ab8500_charger_usb_en; in ab8500_charger_probe()
3419 di->usb_chg.ops.check_enable = &ab8500_charger_usb_check_enable; in ab8500_charger_probe()
3420 di->usb_chg.ops.kick_wd = &ab8500_charger_watchdog_kick; in ab8500_charger_probe()
3421 di->usb_chg.ops.update_curr = &ab8500_charger_update_charger_current; in ab8500_charger_probe()
3422 di->usb_chg.max_out_volt = ab8500_charger_voltage_map[ in ab8500_charger_probe()
3424 di->usb_chg.max_out_curr = in ab8500_charger_probe()
3426 di->usb_chg.wdt_refresh = CHG_WD_INTERVAL; in ab8500_charger_probe()
3427 di->usb_chg.enabled = di->bm->usb_enabled; in ab8500_charger_probe()
3428 di->usb_chg.external = false; in ab8500_charger_probe()
3522 if (di->usb_chg.enabled) { in ab8500_charger_probe()
3523 di->usb_chg.psy = power_supply_register(di->dev, in ab8500_charger_probe()
3526 if (IS_ERR(di->usb_chg.psy)) { in ab8500_charger_probe()
3528 ret = PTR_ERR(di->usb_chg.psy); in ab8500_charger_probe()
3612 if (di->usb_chg.enabled) in ab8500_charger_probe()
3613 power_supply_unregister(di->usb_chg.psy); in ab8500_charger_probe()