Lines Matching refs:exynos_ohci

39 				struct exynos_ohci_hcd *exynos_ohci)  in exynos_ohci_get_phy()  argument
53 exynos_ohci->phy[phy_number] = phy; in exynos_ohci_get_phy()
74 exynos_ohci->phy[phy_number] = phy; in exynos_ohci_get_phy()
89 exynos_ohci->legacy_phy = true; in exynos_ohci_get_phy()
96 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_enable() local
101 if (!IS_ERR(exynos_ohci->phy[i])) in exynos_ohci_phy_enable()
102 ret = phy_power_on(exynos_ohci->phy[i]); in exynos_ohci_phy_enable()
105 if (!IS_ERR(exynos_ohci->phy[i])) in exynos_ohci_phy_enable()
106 phy_power_off(exynos_ohci->phy[i]); in exynos_ohci_phy_enable()
114 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_phy_disable() local
118 if (!IS_ERR(exynos_ohci->phy[i])) in exynos_ohci_phy_disable()
119 phy_power_off(exynos_ohci->phy[i]); in exynos_ohci_phy_disable()
124 struct exynos_ohci_hcd *exynos_ohci; in exynos_ohci_probe() local
146 exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_probe()
148 err = exynos_ohci_get_phy(&pdev->dev, exynos_ohci); in exynos_ohci_probe()
152 exynos_ohci->clk = devm_clk_get(&pdev->dev, "usbhost"); in exynos_ohci_probe()
154 if (IS_ERR(exynos_ohci->clk)) { in exynos_ohci_probe()
156 err = PTR_ERR(exynos_ohci->clk); in exynos_ohci_probe()
160 err = clk_prepare_enable(exynos_ohci->clk); in exynos_ohci_probe()
191 exynos_ohci->of_node = pdev->dev.of_node; in exynos_ohci_probe()
192 if (exynos_ohci->legacy_phy) in exynos_ohci_probe()
205 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_probe()
207 clk_disable_unprepare(exynos_ohci->clk); in exynos_ohci_probe()
216 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_remove() local
218 pdev->dev.of_node = exynos_ohci->of_node; in exynos_ohci_remove()
224 clk_disable_unprepare(exynos_ohci->clk); in exynos_ohci_remove()
243 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_suspend() local
252 clk_disable_unprepare(exynos_ohci->clk); in exynos_ohci_suspend()
260 struct exynos_ohci_hcd *exynos_ohci = to_exynos_ohci(hcd); in exynos_ohci_resume() local
263 clk_prepare_enable(exynos_ohci->clk); in exynos_ohci_resume()
268 clk_disable_unprepare(exynos_ohci->clk); in exynos_ohci_resume()