Lines Matching refs:phy_count
90 int phy_count; /* DT phy-names count */ member
653 int phy_count = dra7xx->phy_count; in dra7xx_pcie_disable_phy() local
655 while (phy_count--) { in dra7xx_pcie_disable_phy()
656 phy_power_off(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
657 phy_exit(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
663 int phy_count = dra7xx->phy_count; in dra7xx_pcie_enable_phy() local
667 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_enable_phy()
826 int phy_count; in dra7xx_pcie_probe() local
868 phy_count = of_property_count_strings(np, "phy-names"); in dra7xx_pcie_probe()
869 if (phy_count < 0) { in dra7xx_pcie_probe()
871 return phy_count; in dra7xx_pcie_probe()
874 phy = devm_kcalloc(dev, phy_count, sizeof(*phy), GFP_KERNEL); in dra7xx_pcie_probe()
878 link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL); in dra7xx_pcie_probe()
882 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_probe()
898 dra7xx->phy_count = phy_count; in dra7xx_pcie_probe()
900 if (phy_count == 2) { in dra7xx_pcie_probe()
903 dra7xx->phy_count = 1; /* Fallback to x1 lane mode */ in dra7xx_pcie_probe()