Lines Matching refs:otg
128 } otg; member
402 if (info->otg.id_short) { in axp288_charger_usb_get_property()
413 if (info->otg.id_short) { in axp288_charger_usb_get_property()
662 container_of(work, struct axp288_chrg_info, otg.work); in axp288_charger_otg_evt_worker()
663 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
673 info->otg.id_short = usb_host; in axp288_charger_otg_evt_worker()
676 ret = axp288_charger_vbus_path_select(info, !info->otg.id_short); in axp288_charger_otg_evt_worker()
685 container_of(nb, struct axp288_chrg_info, otg.id_nb); in axp288_charger_handle_otg_evt()
687 schedule_work(&info->otg.work); in axp288_charger_handle_otg_evt()
803 cancel_work_sync(&info->otg.work); in axp288_charger_cancel_work()
842 info->otg.cable = extcon_get_extcon_dev(USB_HOST_EXTCON_NAME); in axp288_charger_probe()
843 if (info->otg.cable == NULL) { in axp288_charger_probe()
884 INIT_WORK(&info->otg.work, axp288_charger_otg_evt_worker); in axp288_charger_probe()
885 info->otg.id_nb.notifier_call = axp288_charger_handle_otg_evt; in axp288_charger_probe()
886 if (info->otg.cable) { in axp288_charger_probe()
887 ret = devm_extcon_register_notifier(&pdev->dev, info->otg.cable, in axp288_charger_probe()
888 EXTCON_USB_HOST, &info->otg.id_nb); in axp288_charger_probe()
893 schedule_work(&info->otg.work); in axp288_charger_probe()