Lines Matching refs:settings
84 static const struct phy_setting settings[] = { variable
204 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in phy_lookup_setting()
236 for (i = 0, count = 0; i < ARRAY_SIZE(settings) && count < size; i++) in phy_speeds()
237 if (settings[i].bit < __ETHTOOL_LINK_MODE_MASK_NBITS && in phy_speeds()
238 test_bit(settings[i].bit, mask) && in phy_speeds()
239 (count == 0 || speeds[count - 1] != settings[i].speed)) in phy_speeds()
240 speeds[count++] = settings[i].speed; in phy_speeds()
250 for (i = 0, p = settings; i < ARRAY_SIZE(settings); i++, p++) { in __set_linkmode_max_speed()
368 for (i = 0; i < ARRAY_SIZE(settings); i++) in phy_resolve_aneg_linkmode()
369 if (test_bit(settings[i].bit, common)) { in phy_resolve_aneg_linkmode()
370 phydev->speed = settings[i].speed; in phy_resolve_aneg_linkmode()
371 phydev->duplex = settings[i].duplex; in phy_resolve_aneg_linkmode()
401 for (i = 0; i < ARRAY_SIZE(settings); i++) in phy_check_downshift()
402 if (test_bit(settings[i].bit, common)) { in phy_check_downshift()
403 speed = settings[i].speed; in phy_check_downshift()
420 int i = ARRAY_SIZE(settings); in phy_resolve_min_speed()
425 if (test_bit(settings[i].bit, common)) { in phy_resolve_min_speed()
426 if (fdx_only && settings[i].duplex != DUPLEX_FULL) in phy_resolve_min_speed()
428 return settings[i].speed; in phy_resolve_min_speed()