Lines Matching defs:otg
116 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled)
118 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
126 static int omap_usb_start_srp(struct usb_otg *otg)
128 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
136 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host)
138 otg->host = host;
140 otg->state = OTG_STATE_UNDEFINED;
145 static int omap_usb_set_peripheral(struct usb_otg *otg,
148 otg->gadget = gadget;
150 otg->state = OTG_STATE_UNDEFINED;
371 struct usb_otg *otg;
385 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
386 if (!otg)
393 phy->phy.otg = otg;
472 otg->set_host = omap_usb_set_host;
473 otg->set_peripheral = omap_usb_set_peripheral;
475 otg->set_vbus = omap_usb_set_vbus;
477 otg->start_srp = omap_usb_start_srp;
478 otg->usb_phy = &phy->phy;