Lines Matching refs:otg
107 struct usb_otg otg; member
114 static inline struct jz4770_phy *otg_to_jz4770_phy(struct usb_otg *otg) in otg_to_jz4770_phy() argument
116 return container_of(otg, struct jz4770_phy, otg); in otg_to_jz4770_phy()
124 static int ingenic_usb_phy_set_peripheral(struct usb_otg *otg, in ingenic_usb_phy_set_peripheral() argument
127 struct jz4770_phy *priv = otg_to_jz4770_phy(otg); in ingenic_usb_phy_set_peripheral()
144 static int ingenic_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in ingenic_usb_phy_set_host() argument
146 struct jz4770_phy *priv = otg_to_jz4770_phy(otg); in ingenic_usb_phy_set_host()
307 priv->phy.otg = &priv->otg; in jz4770_phy_probe()
312 priv->otg.state = OTG_STATE_UNDEFINED; in jz4770_phy_probe()
313 priv->otg.usb_phy = &priv->phy; in jz4770_phy_probe()
314 priv->otg.set_host = ingenic_usb_phy_set_host; in jz4770_phy_probe()
315 priv->otg.set_peripheral = ingenic_usb_phy_set_peripheral; in jz4770_phy_probe()