'\" t .\" Title: phy_find_valid .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "PHY_FIND_VALID" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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 features mask .SH "SYNOPSIS" .HP \w'unsigned\ int\ phy_find_valid('u .BI "unsigned int phy_find_valid(unsigned\ int\ " "idx" ", u32\ " "features" ");" .SH "ARGUMENTS" .PP \fIunsigned int idx\fR .RS 4 The first index in settings[] to search .RE .PP \fIu32 features\fR .RS 4 A mask of the valid settings .RE .SH "DESCRIPTION" .PP Returns the index of the first valid setting less than or equal to the one pointed to by idx, as determined by the mask in features\&. Returns the index of the last setting if nothing else matches\&. .SH "COPYRIGHT" .br