- unsigned int phy_find_valid(unsigned int idx, u32 features);
- The first index in settings to search
- A mask of the valid settings
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.