Lines Matching refs:settings
164 static const struct phy_setting settings[] = { variable
296 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in phy_lookup_setting()
328 for (i = 0, count = 0; i < ARRAY_SIZE(settings) && count < size; i++) in phy_speeds()
329 if (settings[i].bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_speeds()
330 test_bit(settings[i].bit, mask) && in phy_speeds()
331 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds()
332 speeds[count++] = settings[i].speed; in phy_speeds()
342 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in __set_linkmode_max_speed()
452 for (i = 0; i < ARRAY_SIZE(settings); i++) in phy_resolve_aneg_linkmode()
453 if (test_bit(settings[i].bit, common)) { in phy_resolve_aneg_linkmode()
454 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode()
455 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode()
485 for (i = 0; i < ARRAY_SIZE(settings); i++) in phy_check_downshift()
486 if (test_bit(settings[i].bit, common)) { in phy_check_downshift()
487 speed = settings[i].speed; in phy_check_downshift()
504 int i = ARRAY_SIZE(settings); in phy_resolve_min_speed()
509 if (test_bit(settings[i].bit, common)) { in phy_resolve_min_speed()
510 if (fdx_only && settings[i].duplex != DUPLEX_FULL) in phy_resolve_min_speed()
512 return settings[i].speed; in phy_resolve_min_speed()