Lines Matching refs:otg
340 ab->phy.otg->default_a = false; in ab8505_usb_link_status_update()
348 ab->phy.otg->state = OTG_STATE_B_IDLE; in ab8505_usb_link_status_update()
381 ab->phy.otg->default_a = true; in ab8505_usb_link_status_update()
432 ab->phy.otg->default_a = false; in ab8500_usb_link_status_update()
437 ab->phy.otg->state = OTG_STATE_B_IDLE; in ab8500_usb_link_status_update()
473 ab->phy.otg->default_a = true; in ab8500_usb_link_status_update()
550 ab->phy.otg->default_a = false; in ab8500_usb_disconnect_irq()
565 ab->phy.otg->default_a = false; in ab8500_usb_disconnect_irq()
596 if (!ab->phy.otg->host) in ab8500_usb_phy_disable_work()
599 if (!ab->phy.otg->gadget) in ab8500_usb_phy_disable_work()
609 static int ab8500_usb_set_peripheral(struct usb_otg *otg, in ab8500_usb_set_peripheral() argument
614 if (!otg) in ab8500_usb_set_peripheral()
617 ab = phy_to_ab(otg->usb_phy); in ab8500_usb_set_peripheral()
619 ab->phy.otg->gadget = gadget; in ab8500_usb_set_peripheral()
634 static int ab8500_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in ab8500_usb_set_host() argument
638 if (!otg) in ab8500_usb_set_host()
641 ab = phy_to_ab(otg->usb_phy); in ab8500_usb_set_host()
643 ab->phy.otg->host = host; in ab8500_usb_set_host()
848 struct usb_otg *otg; in ab8500_usb_probe() local
864 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in ab8500_usb_probe()
865 if (!otg) in ab8500_usb_probe()
871 ab->phy.otg = otg; in ab8500_usb_probe()
874 ab->phy.otg->state = OTG_STATE_UNDEFINED; in ab8500_usb_probe()
876 otg->usb_phy = &ab->phy; in ab8500_usb_probe()
877 otg->set_host = ab8500_usb_set_host; in ab8500_usb_probe()
878 otg->set_peripheral = ab8500_usb_set_peripheral; in ab8500_usb_probe()