Lines Matching defs:phy
34 #include <linux/phy/phy.h>
342 struct phy *phy;
370 struct phy **phys;
1033 if (pcie->phy)
1034 err = phy_power_on(pcie->phy);
1064 if (pcie->phy)
1065 err = phy_power_off(pcie->phy);
1095 if (pcie->phy) {
1303 pcie->phy = devm_phy_optional_get(dev, "pcie");
1304 if (IS_ERR(pcie->phy)) {
1305 err = PTR_ERR(pcie->phy);
1310 err = phy_init(pcie->phy);
1321 static struct phy *devm_of_phy_optional_get_index(struct device *dev,
1326 struct phy *phy;
1333 phy = devm_of_phy_optional_get(dev, np, name);
1336 return phy;
1342 struct phy *phy;
1346 port->phys = devm_kcalloc(dev, sizeof(phy), port->lanes, GFP_KERNEL);
1351 phy = devm_of_phy_optional_get_index(dev, port->np, "pcie", i);
1352 if (IS_ERR(phy)) {
1354 PTR_ERR(phy));
1355 return PTR_ERR(phy);
1358 err = phy_init(phy);
1365 port->phys[i] = phy;
1397 err = phy_exit(pcie->phy);