Lines Matching full:phys
36 * ahci_platform_enable_phys - Enable PHYs
39 * This function enables all the PHYs found in hpriv->phys, if any.
40 * If a PHY fails to be enabled, it disables all the PHYs already
51 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys()
55 rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA); in ahci_platform_enable_phys()
57 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
61 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys()
63 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
72 phy_power_off(hpriv->phys[i]); in ahci_platform_enable_phys()
73 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
80 * ahci_platform_disable_phys - Disable PHYs
83 * This function disables all PHYs found in hpriv->phys.
90 phy_power_off(hpriv->phys[i]); in ahci_platform_disable_phys()
91 phy_exit(hpriv->phys[i]); in ahci_platform_disable_phys()
219 * 4) Phys
268 * 1) Phys
314 hpriv->phys[port] = devm_of_phy_get(dev, node, NULL); in ahci_platform_get_phy()
316 if (!IS_ERR(hpriv->phys[port])) in ahci_platform_get_phy()
319 rc = PTR_ERR(hpriv->phys[port]); in ahci_platform_get_phy()
323 if (of_find_property(node, "phys", NULL)) { in ahci_platform_get_phy()
332 hpriv->phys[port] = NULL; in ahci_platform_get_phy()
380 * 5) phys (optional)
462 * ahci_platform_[en|dis]able_[phys|regulators] functions. in ahci_platform_get_resources()
467 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources()
468 if (!hpriv->phys) { in ahci_platform_get_resources()
567 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
714 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
754 * host, note any necessary resources (ie clks, phys, etc.) must be