Lines Matching full:phys

37  * ahci_platform_enable_phys - Enable PHYs
40 * This function enables all the PHYs found in hpriv->phys, if any.
41 * If a PHY fails to be enabled, it disables all the PHYs already
55 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys()
59 rc = phy_set_mode(hpriv->phys[i], PHY_MODE_SATA); in ahci_platform_enable_phys()
61 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
65 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys()
67 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
79 phy_power_off(hpriv->phys[i]); in ahci_platform_enable_phys()
80 phy_exit(hpriv->phys[i]); in ahci_platform_enable_phys()
87 * ahci_platform_disable_phys - Disable PHYs
90 * This function disables all PHYs found in hpriv->phys.
100 phy_power_off(hpriv->phys[i]); in ahci_platform_disable_phys()
101 phy_exit(hpriv->phys[i]); in ahci_platform_disable_phys()
274 * 4) Phys
323 * 1) Phys
367 hpriv->phys[port] = devm_of_phy_get(dev, node, NULL); in ahci_platform_get_phy()
369 if (!IS_ERR(hpriv->phys[port])) in ahci_platform_get_phy()
372 rc = PTR_ERR(hpriv->phys[port]); in ahci_platform_get_phy()
376 if (of_property_present(node, "phys")) { in ahci_platform_get_phy()
385 hpriv->phys[port] = NULL; in ahci_platform_get_phy()
472 * 5) phys (optional)
584 * ahci_platform_[en|dis]able_[phys|regulators] functions. in ahci_platform_get_resources()
588 hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); in ahci_platform_get_resources()
589 if (!hpriv->phys) { in ahci_platform_get_resources()
692 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
833 * ahci-platform host, note any necessary resources (ie clks, phys, etc.)
874 * host, note any necessary resources (ie clks, phys, etc.) must be