Lines Matching refs:mv_phy
152 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_init() local
153 struct platform_device *pdev = mv_phy->pdev; in mv_usb2_phy_28nm_init()
154 void __iomem *base = mv_phy->base; in mv_usb2_phy_28nm_init()
158 clk_prepare_enable(mv_phy->clk); in mv_usb2_phy_28nm_init()
231 clk_disable_unprepare(mv_phy->clk); in mv_usb2_phy_28nm_init()
237 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_power_on() local
238 void __iomem *base = mv_phy->base; in mv_usb2_phy_28nm_power_on()
250 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_power_off() local
251 void __iomem *base = mv_phy->base; in mv_usb2_phy_28nm_power_off()
263 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_exit() local
264 void __iomem *base = mv_phy->base; in mv_usb2_phy_28nm_exit()
281 clk_disable_unprepare(mv_phy->clk); in mv_usb2_phy_28nm_exit()
296 struct mv_usb2_phy *mv_phy; in mv_usb2_phy_probe() local
298 mv_phy = devm_kzalloc(&pdev->dev, sizeof(*mv_phy), GFP_KERNEL); in mv_usb2_phy_probe()
299 if (!mv_phy) in mv_usb2_phy_probe()
302 mv_phy->pdev = pdev; in mv_usb2_phy_probe()
304 mv_phy->clk = devm_clk_get(&pdev->dev, NULL); in mv_usb2_phy_probe()
305 if (IS_ERR(mv_phy->clk)) { in mv_usb2_phy_probe()
307 return PTR_ERR(mv_phy->clk); in mv_usb2_phy_probe()
310 mv_phy->base = devm_platform_ioremap_resource(pdev, 0); in mv_usb2_phy_probe()
311 if (IS_ERR(mv_phy->base)) in mv_usb2_phy_probe()
312 return PTR_ERR(mv_phy->base); in mv_usb2_phy_probe()
314 mv_phy->phy = devm_phy_create(&pdev->dev, pdev->dev.of_node, &usb_ops); in mv_usb2_phy_probe()
315 if (IS_ERR(mv_phy->phy)) in mv_usb2_phy_probe()
316 return PTR_ERR(mv_phy->phy); in mv_usb2_phy_probe()
318 phy_set_drvdata(mv_phy->phy, mv_phy); in mv_usb2_phy_probe()