Lines Matching refs:u_phy

216 static inline struct tegra_usb_phy *to_tegra_usb_phy(struct usb_phy *u_phy)  in to_tegra_usb_phy()  argument
218 return container_of(u_phy, struct tegra_usb_phy, u_phy); in to_tegra_usb_phy()
268 dev_err(phy->u_phy.dev, in utmip_pad_open()
277 dev_err(phy->u_phy.dev, in utmip_pad_open()
284 dev_err(phy->u_phy.dev, in utmip_pad_open()
293 dev_err(phy->u_phy.dev, in utmip_pad_open()
309 dev_err(phy->u_phy.dev, in utmip_pad_close()
316 dev_err(phy->u_phy.dev, in utmip_pad_close()
380 dev_err(phy->u_phy.dev, "UTMIP pad already powered off\n"); in utmip_pad_power_off()
445 dev_err(phy->u_phy.dev, in utmi_phy_clk_disable()
479 dev_err(phy->u_phy.dev, in utmi_phy_clk_enable()
813 dev_err(phy->u_phy.dev, "ULPI write failed: %d\n", err); in ulpi_phy_power_on()
819 dev_err(phy->u_phy.dev, "ULPI write failed: %d\n", err); in ulpi_phy_power_on()
899 static void tegra_usb_phy_shutdown(struct usb_phy *u_phy) in tegra_usb_phy_shutdown() argument
901 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_shutdown()
906 usb_phy_set_wakeup(u_phy, false); in tegra_usb_phy_shutdown()
935 static int tegra_usb_phy_set_wakeup(struct usb_phy *u_phy, bool enable) in tegra_usb_phy_set_wakeup() argument
937 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_set_wakeup()
959 dev_name(phy->u_phy.dev), phy); in tegra_usb_phy_set_wakeup()
974 dev_err(phy->u_phy.dev, in tegra_usb_phy_set_wakeup()
985 static int tegra_usb_phy_set_suspend(struct usb_phy *u_phy, int suspend) in tegra_usb_phy_set_suspend() argument
987 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_set_suspend()
1041 dev_err(phy->u_phy.dev, "Failed to disable PMC AO: %d\n", err); in tegra_usb_phy_configure_pmc()
1050 dev_err(phy->u_phy.dev, "Failed to enable PMC AO: %d\n", err); in tegra_usb_phy_configure_pmc()
1060 static int tegra_usb_phy_init(struct usb_phy *u_phy) in tegra_usb_phy_init() argument
1062 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_init()
1082 dev_err(phy->u_phy.dev, "Invalid pll_u parent rate %ld\n", in tegra_usb_phy_init()
1090 dev_err(phy->u_phy.dev, in tegra_usb_phy_init()
1126 void tegra_usb_phy_preresume(struct usb_phy *u_phy) in tegra_usb_phy_preresume() argument
1128 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_preresume()
1135 void tegra_usb_phy_postresume(struct usb_phy *u_phy) in tegra_usb_phy_postresume() argument
1137 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_usb_phy_postresume()
1144 void tegra_ehci_phy_restore_start(struct usb_phy *u_phy, in tegra_ehci_phy_restore_start() argument
1147 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_ehci_phy_restore_start()
1154 void tegra_ehci_phy_restore_end(struct usb_phy *u_phy) in tegra_ehci_phy_restore_end() argument
1156 struct tegra_usb_phy *phy = to_tegra_usb_phy(u_phy); in tegra_ehci_phy_restore_end()
1472 tegra_phy->u_phy.dev = &pdev->dev; in tegra_usb_phy_probe()
1473 tegra_phy->u_phy.init = tegra_usb_phy_init; in tegra_usb_phy_probe()
1474 tegra_phy->u_phy.shutdown = tegra_usb_phy_shutdown; in tegra_usb_phy_probe()
1475 tegra_phy->u_phy.set_wakeup = tegra_usb_phy_set_wakeup; in tegra_usb_phy_probe()
1476 tegra_phy->u_phy.set_suspend = tegra_usb_phy_set_suspend; in tegra_usb_phy_probe()
1480 return usb_add_phy_dev(&tegra_phy->u_phy); in tegra_usb_phy_probe()
1487 usb_remove_phy(&tegra_phy->u_phy); in tegra_usb_phy_remove()