Lines Matching defs:phy
15 #include <linux/phy/phy.h>
19 #include <dt-bindings/phy/phy.h>
60 struct phy *phy;
196 static int phy_g12a_usb3_init(struct phy *phy)
198 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
281 static int phy_g12a_usb3_pcie_power_on(struct phy *phy)
283 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
295 static int phy_g12a_usb3_pcie_power_off(struct phy *phy)
297 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
309 static int phy_g12a_usb3_pcie_reset(struct phy *phy)
311 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
332 static int phy_g12a_usb3_pcie_init(struct phy *phy)
334 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
337 return phy_g12a_usb3_init(phy);
342 static int phy_g12a_usb3_pcie_exit(struct phy *phy)
344 struct phy_g12a_usb3_pcie_priv *priv = phy_get_drvdata(phy);
352 static struct phy *phy_g12a_usb3_pcie_xlate(struct device *dev,
366 dev_err(dev, "invalid phy mode select argument\n");
372 return priv->phy;
425 priv->phy = devm_phy_create(dev, np, &phy_g12a_usb3_pcie_ops);
426 if (IS_ERR(priv->phy)) {
427 ret = PTR_ERR(priv->phy);
434 phy_set_drvdata(priv->phy, priv);
449 { .compatible = "amlogic,g12a-usb3-pcie-phy", },
457 .name = "phy-g12a-usb3-pcie",