Lines Matching full:otg
22 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at
52 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
54 otg->host = host; in dm816x_usb_phy_set_host()
56 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
61 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
64 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
66 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
177 struct usb_otg *otg; in dm816x_usb_phy_probe() local
203 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in dm816x_usb_phy_probe()
204 if (!otg) in dm816x_usb_phy_probe()
210 phy->phy.otg = otg; in dm816x_usb_phy_probe()
212 otg->set_host = dm816x_usb_phy_set_host; in dm816x_usb_phy_probe()
213 otg->set_peripheral = dm816x_usb_phy_set_peripheral; in dm816x_usb_phy_probe()
214 otg->usb_phy = &phy->phy; in dm816x_usb_phy_probe()