Lines Matching defs:phy
12 #include <linux/phy/phy.h>
23 struct phy *phy;
28 static void rcar_gen3_phy_pcie_modify_reg(struct phy *p, unsigned int reg,
31 struct rcar_gen3_phy *phy = phy_get_drvdata(p);
32 void __iomem *base = phy->base;
36 spin_lock_irqsave(&phy->lock, flags);
43 spin_unlock_irqrestore(&phy->lock, flags);
46 static int r8a77980_phy_pcie_power_on(struct phy *p)
54 static int r8a77980_phy_pcie_power_off(struct phy *p)
69 { .compatible = "renesas,r8a77980-pcie-phy" },
78 struct rcar_gen3_phy *phy;
94 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL);
95 if (!phy)
98 spin_lock_init(&phy->lock);
100 phy->base = base;
103 * devm_phy_create() will call pm_runtime_enable(&phy->dev);
104 * And then, phy-core will manage runtime PM for this device.
108 phy->phy = devm_phy_create(dev, NULL, &r8a77980_phy_pcie_ops);
109 if (IS_ERR(phy->phy)) {
111 error = PTR_ERR(phy->phy);
114 phy_set_drvdata(phy->phy, phy);