Lines Matching refs:otg
57 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
59 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
67 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
69 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
77 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
79 otg->host = host; in omap_usb_set_host()
81 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
86 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
89 otg->gadget = gadget; in omap_usb_set_peripheral()
91 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_peripheral()
286 struct usb_otg *otg; in omap_usb2_probe() local
304 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in omap_usb2_probe()
305 if (!otg) in omap_usb2_probe()
312 phy->phy.otg = otg; in omap_usb2_probe()
395 otg->set_host = omap_usb_set_host; in omap_usb2_probe()
396 otg->set_peripheral = omap_usb_set_peripheral; in omap_usb2_probe()
398 otg->set_vbus = omap_usb_set_vbus; in omap_usb2_probe()
400 otg->start_srp = omap_usb_start_srp; in omap_usb2_probe()
401 otg->usb_phy = &phy->phy; in omap_usb2_probe()