'\" t .\" Title: phy_find_valid .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "PHY_FIND_VALID" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" phy_find_valid \- find a PHY setting that matches the requested parameters .SH "SYNOPSIS" .HP \w'const\ struct\ phy_setting\ *\ phy_find_valid('u .BI "const struct phy_setting * phy_find_valid(int\ " "speed" ", int\ " "duplex" ", u32\ " "supported" ");" .SH "ARGUMENTS" .PP \fIint speed\fR .RS 4 desired speed .RE .PP \fIint duplex\fR .RS 4 desired duplex .RE .PP \fIu32 supported\fR .RS 4 mask of supported link modes .RE .SH "DESCRIPTION" .PP 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 \fBNULL\fR if no supported phy settings were found\&. .SH "COPYRIGHT" .br