'\" t .\" Title: phy_find_valid .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PHY_FIND_VALID" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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 \fIidx\fR .RS 4 The first index in settings[] to search .RE .PP \fIfeatures\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