Lines Matching full:rpm
45 #define RPM_TO_REG(rpm, sr) ((60 * (sr) * 8192) / ((rpm) * 2)) argument
142 static u8 bits_for_tach_period(int rpm) in bits_for_tach_period() argument
146 if (rpm < 500) in bits_for_tach_period()
148 else if (rpm < 1000) in bits_for_tach_period()
150 else if (rpm < 2000) in bits_for_tach_period()
152 else if (rpm < 4000) in bits_for_tach_period()
154 else if (rpm < 8000) in bits_for_tach_period()
166 int sr, rpm; in max31790_read_fan() local
174 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
175 *val = rpm; in max31790_read_fan()
179 rpm = RPM_FROM_REG(data->target_count[channel], sr); in max31790_read_fan()
180 *val = rpm; in max31790_read_fan()