Lines Matching defs:phy
12 #include <linux/phy/phy.h>
44 * @phy: pointer to the kernel PHY device
49 struct phy *phy;
145 static bool pcie_core_is_for_rc(struct sr_pcie_phy *phy)
147 struct sr_pcie_phy_core *core = phy->core;
148 unsigned int core_idx = phy->index;
153 static int sr_pcie_phy_init(struct phy *p)
155 struct sr_pcie_phy *phy = phy_get_drvdata(p);
162 if (pcie_core_is_for_rc(phy))
168 static int sr_paxc_phy_init(struct phy *p)
170 struct sr_pcie_phy *phy = phy_get_drvdata(p);
171 struct sr_pcie_phy_core *core = phy->core;
172 unsigned int core_idx = phy->index;
197 static struct phy *sr_pcie_phy_xlate(struct device *dev,
212 return core->phys[phy_idx].phy;
264 p->phy = devm_phy_create(dev, NULL, ops);
265 if (IS_ERR(p->phy)) {
267 return PTR_ERR(p->phy);
272 phy_set_drvdata(p->phy, p);
289 { .compatible = "brcm,sr-pcie-phy" },
296 .name = "sr-pcie-phy",