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