Lines Matching refs:phy_count
92 int phy_count; /* DT phy-names count */ member
507 int phy_count = dra7xx->phy_count; in dra7xx_pcie_disable_phy() local
509 while (phy_count--) { in dra7xx_pcie_disable_phy()
510 phy_power_off(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
511 phy_exit(dra7xx->phy[phy_count]); in dra7xx_pcie_disable_phy()
517 int phy_count = dra7xx->phy_count; in dra7xx_pcie_enable_phy() local
521 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_enable_phy()
680 int phy_count; in dra7xx_pcie_probe() local
726 phy_count = of_property_count_strings(np, "phy-names"); in dra7xx_pcie_probe()
727 if (phy_count < 0) { in dra7xx_pcie_probe()
729 return phy_count; in dra7xx_pcie_probe()
732 phy = devm_kcalloc(dev, phy_count, sizeof(*phy), GFP_KERNEL); in dra7xx_pcie_probe()
736 link = devm_kcalloc(dev, phy_count, sizeof(*link), GFP_KERNEL); in dra7xx_pcie_probe()
740 for (i = 0; i < phy_count; i++) { in dra7xx_pcie_probe()
756 dra7xx->phy_count = phy_count; in dra7xx_pcie_probe()
758 if (phy_count == 2) { in dra7xx_pcie_probe()
761 dra7xx->phy_count = 1; /* Fallback to x1 lane mode */ in dra7xx_pcie_probe()