Searched refs:slopes (Results 1 – 2 of 2) sorted by relevance
860 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale() argument866 if (val > slopes[i].range) in slopes_to_scale()867 rest = slopes[i].range; in slopes_to_scale()870 ret += (rest * slopes[i].slope) / slopes[i].range; in slopes_to_scale()
192 slope is expressed in the adapter's registers. It can only represent idle slopes