Lines Matching refs:otg
53 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
55 otg->host = host; in dm816x_usb_phy_set_host()
57 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
62 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
65 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
67 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
180 struct usb_otg *otg; in dm816x_usb_phy_probe() local
212 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in dm816x_usb_phy_probe()
213 if (!otg) in dm816x_usb_phy_probe()
219 phy->phy.otg = otg; in dm816x_usb_phy_probe()
221 otg->set_host = dm816x_usb_phy_set_host; in dm816x_usb_phy_probe()
222 otg->set_peripheral = dm816x_usb_phy_set_peripheral; in dm816x_usb_phy_probe()
223 otg->usb_phy = &phy->phy; in dm816x_usb_phy_probe()