Lines Matching refs:usb_chg
169 struct ab8500_charger, usb_chg)
300 struct ux500_charger usb_chg; member
457 if (di->usb_chg.psy) { in ab8500_charger_set_usb_connected()
458 sysfs_notify(&di->usb_chg.psy->dev.kobj, NULL, in ab8500_charger_set_usb_connected()
1726 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_en()
1770 ret = ab8500_charger_usb_en(&di->usb_chg, true, vset_uv, iset_ua); in ab8500_charger_usb_check_enable()
1820 ret = ab8500_charger_ac_en(&di->usb_chg, true, vset_uv, iset_ua); in ab8500_charger_ac_check_enable()
1905 struct ux500_charger *usb_chg; in ab8500_charger_get_ext_psy_data() local
1907 usb_chg = (struct ux500_charger *)data; in ab8500_charger_get_ext_psy_data()
1908 psy = usb_chg->psy; in ab8500_charger_get_ext_psy_data()
1910 di = to_ab8500_charger_usb_device_info(usb_chg); in ab8500_charger_get_ext_psy_data()
1964 power_supply_for_each_device(&di->usb_chg, ab8500_charger_get_ext_psy_data); in ab8500_charger_check_vbat_work()
1980 power_supply_changed(di->usb_chg.psy); in ab8500_charger_check_vbat_work()
2033 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_hw_failure_work()
2131 ab8500_charger_usb_en(&di->usb_chg, 0, 0, 0); in ab8500_charger_usb_attached_work()
2211 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2221 di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2238 di->usb_chg.psy); in ab8500_charger_detect_usb_type_work()
2266 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_attach_work()
2364 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_status_work()
2375 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_link_status_work()
2434 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_state_changed_work()
2457 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_usb_state_changed_work()
2501 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_usbchargernotok_work()
2561 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_check_usb_thermal_prot_work()
2847 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_chwdexp_handler()
2890 ab8500_power_supply_changed(di, di->usb_chg.psy); in ab8500_charger_vbusovv_handler()
3381 ab8500_charger_usb_en(&di->usb_chg, false, 0, 0); in ab8500_charger_unbind()
3505 usb_psy_cfg.drv_data = &di->usb_chg; in ab8500_charger_probe()
3529 di->usb_chg.ops.enable = &ab8500_charger_usb_en; in ab8500_charger_probe()
3530 di->usb_chg.ops.check_enable = &ab8500_charger_usb_check_enable; in ab8500_charger_probe()
3531 di->usb_chg.ops.kick_wd = &ab8500_charger_watchdog_kick; in ab8500_charger_probe()
3532 di->usb_chg.ops.update_curr = &ab8500_charger_update_charger_current; in ab8500_charger_probe()
3533 di->usb_chg.max_out_volt_uv = ab8500_charger_voltage_map[ in ab8500_charger_probe()
3535 di->usb_chg.max_out_curr_ua = in ab8500_charger_probe()
3537 di->usb_chg.wdt_refresh = CHG_WD_INTERVAL; in ab8500_charger_probe()
3610 di->usb_chg.psy = devm_power_supply_register(dev, in ab8500_charger_probe()
3613 if (IS_ERR(di->usb_chg.psy)) { in ab8500_charger_probe()
3615 return PTR_ERR(di->usb_chg.psy); in ab8500_charger_probe()
3622 ret = ab8500_bm_of_probe(di->usb_chg.psy, di->bm); in ab8500_charger_probe()
3689 ab8500_bm_of_remove(di->usb_chg.psy, di->bm); in ab8500_charger_probe()
3700 ab8500_bm_of_remove(di->usb_chg.psy, di->bm); in ab8500_charger_remove()