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