Name

phy_find_valid — find a PHY setting that matches the requested parameters

Synopsis

const struct phy_setting * phy_find_valid (int speed,
 int duplex,
 u32 supported);
 

Arguments

int speed

desired speed

int duplex

desired duplex

u32 supported

mask of supported link modes

Description

Locate a supported phy setting that is, in priority order: - an exact match for the specified speed and duplex mode - a match for the specified speed, or slower speed - the slowest supported speed Returns the matched phy_setting entry, or NULL if no supported phy settings were found.