Lines Matching refs:exynos_ehci

50 				struct exynos_ehci_hcd *exynos_ehci)  in exynos_ehci_get_phy()  argument
64 exynos_ehci->phy[phy_number] = phy; in exynos_ehci_get_phy()
85 exynos_ehci->phy[phy_number] = phy; in exynos_ehci_get_phy()
100 exynos_ehci->legacy_phy = true; in exynos_ehci_get_phy()
107 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_enable() local
112 if (!IS_ERR(exynos_ehci->phy[i])) in exynos_ehci_phy_enable()
113 ret = phy_power_on(exynos_ehci->phy[i]); in exynos_ehci_phy_enable()
116 if (!IS_ERR(exynos_ehci->phy[i])) in exynos_ehci_phy_enable()
117 phy_power_off(exynos_ehci->phy[i]); in exynos_ehci_phy_enable()
125 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_phy_disable() local
129 if (!IS_ERR(exynos_ehci->phy[i])) in exynos_ehci_phy_disable()
130 phy_power_off(exynos_ehci->phy[i]); in exynos_ehci_phy_disable()
153 struct exynos_ehci_hcd *exynos_ehci; in exynos_ehci_probe() local
177 exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_probe()
179 err = exynos_ehci_get_phy(&pdev->dev, exynos_ehci); in exynos_ehci_probe()
183 exynos_ehci->clk = devm_clk_get(&pdev->dev, "usbhost"); in exynos_ehci_probe()
185 if (IS_ERR(exynos_ehci->clk)) { in exynos_ehci_probe()
187 err = PTR_ERR(exynos_ehci->clk); in exynos_ehci_probe()
191 err = clk_prepare_enable(exynos_ehci->clk); in exynos_ehci_probe()
224 exynos_ehci->of_node = pdev->dev.of_node; in exynos_ehci_probe()
225 if (exynos_ehci->legacy_phy) in exynos_ehci_probe()
244 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_probe()
246 clk_disable_unprepare(exynos_ehci->clk); in exynos_ehci_probe()
255 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_remove() local
257 pdev->dev.of_node = exynos_ehci->of_node; in exynos_ehci_remove()
263 clk_disable_unprepare(exynos_ehci->clk); in exynos_ehci_remove()
274 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_suspend() local
285 clk_disable_unprepare(exynos_ehci->clk); in exynos_ehci_suspend()
293 struct exynos_ehci_hcd *exynos_ehci = to_exynos_ehci(hcd); in exynos_ehci_resume() local
296 ret = clk_prepare_enable(exynos_ehci->clk); in exynos_ehci_resume()
303 clk_disable_unprepare(exynos_ehci->clk); in exynos_ehci_resume()