Lines Matching refs:otg
61 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
63 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
71 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
73 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
81 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
83 otg->host = host; in omap_usb_set_host()
85 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
90 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
93 otg->gadget = gadget; in omap_usb_set_peripheral()
95 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_peripheral()
194 struct usb_otg *otg; in omap_usb2_probe() local
212 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in omap_usb2_probe()
213 if (!otg) in omap_usb2_probe()
220 phy->phy.otg = otg; in omap_usb2_probe()
246 otg->set_host = omap_usb_set_host; in omap_usb2_probe()
247 otg->set_peripheral = omap_usb_set_peripheral; in omap_usb2_probe()
249 otg->set_vbus = omap_usb_set_vbus; in omap_usb2_probe()
251 otg->start_srp = omap_usb_start_srp; in omap_usb2_probe()
252 otg->usb_phy = &phy->phy; in omap_usb2_probe()