Searched refs:am_phy (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/usb/phy/
H A Dphy-am335x.c23 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); am335x_init() local
25 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, true); am335x_init()
31 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); am335x_shutdown() local
33 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_shutdown()
38 struct am335x_phy *am_phy; am335x_phy_probe() local
42 am_phy = devm_kzalloc(dev, sizeof(*am_phy), GFP_KERNEL); am335x_phy_probe()
43 if (!am_phy) am335x_phy_probe()
46 am_phy->phy_ctrl = am335x_get_phy_control(dev); am335x_phy_probe()
47 if (!am_phy->phy_ctrl) am335x_phy_probe()
49 am_phy->id = of_alias_get_id(pdev->dev.of_node, "phy"); am335x_phy_probe()
50 if (am_phy->id < 0) { am335x_phy_probe()
51 dev_err(&pdev->dev, "Missing PHY id: %d\n", am_phy->id); am335x_phy_probe()
52 return am_phy->id; am335x_phy_probe()
55 ret = usb_phy_gen_create_phy(dev, &am_phy->usb_phy_gen, NULL); am335x_phy_probe()
59 ret = usb_add_phy_dev(&am_phy->usb_phy_gen.phy); am335x_phy_probe()
62 am_phy->usb_phy_gen.phy.init = am335x_init; am335x_phy_probe()
63 am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; am335x_phy_probe()
65 platform_set_drvdata(pdev, am_phy); am335x_phy_probe()
78 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_probe()
85 struct am335x_phy *am_phy = platform_get_drvdata(pdev); am335x_phy_remove() local
87 usb_remove_phy(&am_phy->usb_phy_gen.phy); am335x_phy_remove()
95 struct am335x_phy *am_phy = platform_get_drvdata(pdev); am335x_phy_suspend() local
106 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, true); am335x_phy_suspend()
108 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_suspend()
116 struct am335x_phy *am_phy = platform_get_drvdata(pdev); am335x_phy_resume() local
118 phy_ctrl_power(am_phy->phy_ctrl, am_phy->id, true); am335x_phy_resume()
121 phy_ctrl_wkup(am_phy->phy_ctrl, am_phy->id, false); am335x_phy_resume()

Completed in 59 milliseconds