Lines Matching defs:settings
122 /* A mapping of all SUPPORTED settings to speed/duplex */
123 static const struct phy_setting settings[] = {
161 #define MAX_NUM_SETTINGS ARRAY_SIZE(settings)
164 * phy_find_setting - find a PHY settings array entry that matches speed & duplex
168 * Description: Searches the settings array for the setting which
177 while (idx < ARRAY_SIZE(settings) &&
178 (settings[idx].speed != speed ||
179 settings[idx].duplex != duplex))
187 * @idx: The first index in settings[] to search
188 * @features: A mask of the valid settings
197 while (idx < MAX_NUM_SETTINGS && !(settings[idx].setting & features))
216 /* Sanitize settings based on PHY capabilities */
223 phydev->speed = settings[idx].speed;
224 phydev->duplex = settings[idx].duplex;
235 * - phy_start_aneg() will make sure forced settings are sane, and
250 /* Verify the settings we care about. */
384 * Description: Sanitizes the settings (if we're not autonegotiating
464 * phy_force_reduction - reduce PHY speed/duplex settings by one step
467 * Description: Reduces the speed/duplex settings by one notch,
482 phydev->speed = settings[idx].speed;
483 phydev->duplex = settings[idx].duplex;
836 phydev->speed = settings[idx].speed;
837 phydev->duplex = settings[idx].duplex;