Lines Matching refs:phy
42 struct phy *phy; member
59 static int cygnus_pcie_power_config(struct cygnus_pcie_phy *phy, bool enable) in cygnus_pcie_power_config() argument
61 struct cygnus_pcie_phy_core *core = phy->core; in cygnus_pcie_power_config()
67 switch (phy->id) { in cygnus_pcie_power_config()
78 dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id); in cygnus_pcie_power_config()
98 dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id, in cygnus_pcie_power_config()
103 static int cygnus_pcie_phy_power_on(struct phy *p) in cygnus_pcie_phy_power_on()
105 struct cygnus_pcie_phy *phy = phy_get_drvdata(p); in cygnus_pcie_phy_power_on() local
107 return cygnus_pcie_power_config(phy, true); in cygnus_pcie_phy_power_on()
110 static int cygnus_pcie_phy_power_off(struct phy *p) in cygnus_pcie_phy_power_off()
112 struct cygnus_pcie_phy *phy = phy_get_drvdata(p); in cygnus_pcie_phy_power_off() local
114 return cygnus_pcie_power_config(phy, false); in cygnus_pcie_phy_power_off()
168 if (core->phys[id].phy) { in cygnus_pcie_phy_probe()
175 p->phy = devm_phy_create(dev, child, &cygnus_pcie_phy_ops); in cygnus_pcie_phy_probe()
176 if (IS_ERR(p->phy)) { in cygnus_pcie_phy_probe()
178 ret = PTR_ERR(p->phy); in cygnus_pcie_phy_probe()
184 phy_set_drvdata(p->phy, p); in cygnus_pcie_phy_probe()