Lines Matching refs:otg
132 } otg; member
426 if (info->otg.id_short) { in axp288_charger_usb_get_property()
434 if (info->otg.id_short) { in axp288_charger_usb_get_property()
687 container_of(work, struct axp288_chrg_info, otg.work); in axp288_charger_otg_evt_worker()
688 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
698 info->otg.id_short = usb_host; in axp288_charger_otg_evt_worker()
701 ret = axp288_charger_vbus_path_select(info, !info->otg.id_short); in axp288_charger_otg_evt_worker()
710 container_of(nb, struct axp288_chrg_info, otg.id_nb); in axp288_charger_handle_otg_evt()
712 schedule_work(&info->otg.work); in axp288_charger_handle_otg_evt()
828 cancel_work_sync(&info->otg.work); in axp288_charger_cancel_work()
887 info->otg.cable = extcon_get_extcon_dev(extcon_name); in axp288_charger_probe()
888 if (IS_ERR(info->otg.cable)) { in axp288_charger_probe()
889 dev_err_probe(dev, PTR_ERR(info->otg.cable), in axp288_charger_probe()
892 return PTR_ERR(info->otg.cable); in axp288_charger_probe()
930 INIT_WORK(&info->otg.work, axp288_charger_otg_evt_worker); in axp288_charger_probe()
931 info->otg.id_nb.notifier_call = axp288_charger_handle_otg_evt; in axp288_charger_probe()
932 if (info->otg.cable) { in axp288_charger_probe()
933 ret = devm_extcon_register_notifier(dev, info->otg.cable, in axp288_charger_probe()
934 EXTCON_USB_HOST, &info->otg.id_nb); in axp288_charger_probe()
939 schedule_work(&info->otg.work); in axp288_charger_probe()