Lines Matching full:otg
116 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
118 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
126 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
128 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
136 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
138 otg->host = host; in omap_usb_set_host()
140 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
145 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
148 otg->gadget = gadget; in omap_usb_set_peripheral()
150 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_peripheral()
378 struct usb_otg *otg; in omap_usb2_probe() local
393 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in omap_usb2_probe()
394 if (!otg) in omap_usb2_probe()
401 phy->phy.otg = otg; in omap_usb2_probe()
485 otg->set_host = omap_usb_set_host; in omap_usb2_probe()
486 otg->set_peripheral = omap_usb_set_peripheral; in omap_usb2_probe()
488 otg->set_vbus = omap_usb_set_vbus; in omap_usb2_probe()
490 otg->start_srp = omap_usb_start_srp; in omap_usb2_probe()
491 otg->usb_phy = &phy->phy; in omap_usb2_probe()