'\" t .\" Title: phy_find_setting .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PHY_FIND_SETTING" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_setting \- find a PHY settings array entry that matches speed & duplex .SH "SYNOPSIS" .HP \w'unsigned\ int\ phy_find_setting('u .BI "unsigned int phy_find_setting(int\ " "speed" ", int\ " "duplex" ");" .SH "ARGUMENTS" .PP \fIspeed\fR .RS 4 speed to match .RE .PP \fIduplex\fR .RS 4 duplex to match .RE .SH "DESCRIPTION" .PP Searches the settings array for the setting which matches the desired speed and duplex, and returns the index of that setting\&. Returns the index of the last setting if none of the others match\&. .SH "COPYRIGHT" .br