Lines Matching defs:phy
12 #include <linux/phy/phy.h>
22 struct phy *phy;
27 static void rcar_gen3_phy_pcie_modify_reg(struct phy *p, unsigned int reg,
30 struct rcar_gen3_phy *phy = phy_get_drvdata(p);
31 void __iomem *base = phy->base;
35 spin_lock_irqsave(&phy->lock, flags);
42 spin_unlock_irqrestore(&phy->lock, flags);
45 static int r8a77980_phy_pcie_power_on(struct phy *p)
53 static int r8a77980_phy_pcie_power_off(struct phy *p)
68 { .compatible = "renesas,r8a77980-pcie-phy" },
77 struct rcar_gen3_phy *phy;
91 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL);
92 if (!phy)
95 spin_lock_init(&phy->lock);
97 phy->base = base;
100 * devm_phy_create() will call pm_runtime_enable(&phy->dev);
101 * And then, phy-core will manage runtime PM for this device.
105 phy->phy = devm_phy_create(dev, NULL, &r8a77980_phy_pcie_ops);
106 if (IS_ERR(phy->phy)) {
108 error = PTR_ERR(phy->phy);
111 phy_set_drvdata(phy->phy, phy);