Lines Matching refs:otg
115 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled)
117 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
125 static int omap_usb_start_srp(struct usb_otg *otg)
127 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
135 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host)
137 otg->host = host;
139 otg->state = OTG_STATE_UNDEFINED;
144 static int omap_usb_set_peripheral(struct usb_otg *otg,
147 otg->gadget = gadget;
149 otg->state = OTG_STATE_UNDEFINED;
371 struct usb_otg *otg;
389 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
390 if (!otg)
397 phy->phy.otg = otg;
479 otg->set_host = omap_usb_set_host;
480 otg->set_peripheral = omap_usb_set_peripheral;
482 otg->set_vbus = omap_usb_set_vbus;
484 otg->start_srp = omap_usb_start_srp;
485 otg->usb_phy = &phy->phy;