Lines Matching refs:otg
341 ab->phy.otg->default_a = false; in ab8505_usb_link_status_update()
349 ab->phy.otg->state = OTG_STATE_B_IDLE; in ab8505_usb_link_status_update()
382 ab->phy.otg->default_a = true; in ab8505_usb_link_status_update()
451 ab->phy.otg->default_a = false; in ab8500_usb_link_status_update()
456 ab->phy.otg->state = OTG_STATE_B_IDLE; in ab8500_usb_link_status_update()
492 ab->phy.otg->default_a = true; in ab8500_usb_link_status_update()
569 ab->phy.otg->default_a = false; in ab8500_usb_disconnect_irq()
584 ab->phy.otg->default_a = false; in ab8500_usb_disconnect_irq()
620 if (!ab->phy.otg->host) in ab8500_usb_phy_disable_work()
623 if (!ab->phy.otg->gadget) in ab8500_usb_phy_disable_work()
633 static int ab8500_usb_set_peripheral(struct usb_otg *otg, in ab8500_usb_set_peripheral() argument
638 if (!otg) in ab8500_usb_set_peripheral()
641 ab = phy_to_ab(otg->usb_phy); in ab8500_usb_set_peripheral()
643 ab->phy.otg->gadget = gadget; in ab8500_usb_set_peripheral()
658 static int ab8500_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in ab8500_usb_set_host() argument
662 if (!otg) in ab8500_usb_set_host()
665 ab = phy_to_ab(otg->usb_phy); in ab8500_usb_set_host()
667 ab->phy.otg->host = host; in ab8500_usb_set_host()
872 struct usb_otg *otg; in ab8500_usb_probe() local
888 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in ab8500_usb_probe()
889 if (!otg) in ab8500_usb_probe()
895 ab->phy.otg = otg; in ab8500_usb_probe()
898 ab->phy.otg->state = OTG_STATE_UNDEFINED; in ab8500_usb_probe()
900 otg->usb_phy = &ab->phy; in ab8500_usb_probe()
901 otg->set_host = ab8500_usb_set_host; in ab8500_usb_probe()
902 otg->set_peripheral = ab8500_usb_set_peripheral; in ab8500_usb_probe()