Lines Matching refs:phy_count
91 int phy_count; /* DT phy-names count */ member
516 int phy_count = dra7xx->phy_count; in dra7xx_pcie_disable_phy() local
518 while (phy_count--) { in dra7xx_pcie_disable_phy()
519 phy_power_off(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
520 phy_exit(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
526 int phy_count = dra7xx->phy_count; in dra7xx_pcie_enable_phy() local
530 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_enable_phy()
690 int phy_count; in dra7xx_pcie_probe() local
730 phy_count = of_property_count_strings(np, "phy-names"); in dra7xx_pcie_probe()
731 if (phy_count < 0) { in dra7xx_pcie_probe()
733 return phy_count; in dra7xx_pcie_probe()
736 phy = devm_kcalloc(dev, phy_count, sizeof(*phy), GFP_KERNEL); in dra7xx_pcie_probe()
740 link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL); in dra7xx_pcie_probe()
753 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_probe()
769 dra7xx->phy_count = phy_count; in dra7xx_pcie_probe()
771 if (phy_count == 2) { in dra7xx_pcie_probe()
774 dra7xx->phy_count = 1; /* Fallback to x1 lane mode */ in dra7xx_pcie_probe()