Lines Matching defs:phy
8 #include <linux/phy/phy.h>
27 * @phy: pointer to the kernel PHY device
32 struct phy *phy;
49 static int cygnus_pcie_power_config(struct cygnus_pcie_phy *phy, bool enable)
51 struct cygnus_pcie_phy_core *core = phy->core;
57 switch (phy->id) {
68 dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id);
88 dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id,
93 static int cygnus_pcie_phy_power_on(struct phy *p)
95 struct cygnus_pcie_phy *phy = phy_get_drvdata(p);
97 return cygnus_pcie_power_config(phy, true);
100 static int cygnus_pcie_phy_power_off(struct phy *p)
102 struct cygnus_pcie_phy *phy = phy_get_drvdata(p);
104 return cygnus_pcie_power_config(phy, false);
156 if (core->phys[id].phy) {
163 p->phy = devm_phy_create(dev, child, &cygnus_pcie_phy_ops);
164 if (IS_ERR(p->phy)) {
166 ret = PTR_ERR(p->phy);
172 phy_set_drvdata(p->phy, p);
193 { .compatible = "brcm,cygnus-pcie-phy" },
200 .name = "cygnus-pcie-phy",