Lines Matching refs:otg
14 #include <linux/usb/otg.h>
107 struct usb_otg otg;
114 static inline struct jz4770_phy *otg_to_jz4770_phy(struct usb_otg *otg)
116 return container_of(otg, struct jz4770_phy, otg);
124 static int ingenic_usb_phy_set_peripheral(struct usb_otg *otg,
127 struct jz4770_phy *priv = otg_to_jz4770_phy(otg);
144 static int ingenic_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host)
146 struct jz4770_phy *priv = otg_to_jz4770_phy(otg);
307 priv->phy.otg = &priv->otg;
312 priv->otg.state = OTG_STATE_UNDEFINED;
313 priv->otg.usb_phy = &priv->phy;
314 priv->otg.set_host = ingenic_usb_phy_set_host;
315 priv->otg.set_peripheral = ingenic_usb_phy_set_peripheral;