Lines Matching refs:phy_count
90 int phy_count; /* DT phy-names count */ member
514 int phy_count = dra7xx->phy_count; in dra7xx_pcie_disable_phy() local
516 while (phy_count--) { in dra7xx_pcie_disable_phy()
517 phy_power_off(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
518 phy_exit(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
524 int phy_count = dra7xx->phy_count; in dra7xx_pcie_enable_phy() local
528 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_enable_phy()
687 int phy_count; in dra7xx_pcie_probe() local
729 phy_count = of_property_count_strings(np, "phy-names"); in dra7xx_pcie_probe()
730 if (phy_count < 0) { in dra7xx_pcie_probe()
732 return phy_count; in dra7xx_pcie_probe()
735 phy = devm_kcalloc(dev, phy_count, sizeof(*phy), GFP_KERNEL); in dra7xx_pcie_probe()
739 link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL); in dra7xx_pcie_probe()
743 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_probe()
759 dra7xx->phy_count = phy_count; in dra7xx_pcie_probe()
761 if (phy_count == 2) { in dra7xx_pcie_probe()
764 dra7xx->phy_count = 1; /* Fallback to x1 lane mode */ in dra7xx_pcie_probe()