Lines Matching refs:otg
115 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
117 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
125 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
127 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
135 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
137 otg->host = host; in omap_usb_set_host()
139 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
144 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
147 otg->gadget = gadget; in omap_usb_set_peripheral()
149 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_peripheral()
370 struct usb_otg *otg; in omap_usb2_probe() local
388 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in omap_usb2_probe()
389 if (!otg) in omap_usb2_probe()
396 phy->phy.otg = otg; in omap_usb2_probe()
477 otg->set_host = omap_usb_set_host; in omap_usb2_probe()
478 otg->set_peripheral = omap_usb_set_peripheral; in omap_usb2_probe()
480 otg->set_vbus = omap_usb_set_vbus; in omap_usb2_probe()
482 otg->start_srp = omap_usb_start_srp; in omap_usb2_probe()
483 otg->usb_phy = &phy->phy; in omap_usb2_probe()