phy_lookup_setting — lookup a PHY setting
const struct phy_setting * phy_lookup_setting ( | int speed, |
int duplex, | |
u32 features, | |
bool exact) ; |
int speed
speed to match
int duplex
duplex to match
u32 features
allowed link modes
bool exact
an exact match is required
Search the settings array for a setting that matches the speed and duplex, and which is supported.
If exact
is unset, either an exact match or NULL
for no match will
be returned.
If exact
is set, an exact match, the fastest supported setting at
or below the specified speed, the slowest supported setting, or if
they all fail, NULL
will be returned.