Lines Matching refs:rpm
48 #define RPM_TO_REG(rpm, sr) ((60 * (sr) * 8192) / ((rpm) * 2)) argument
145 static u8 bits_for_tach_period(int rpm) in bits_for_tach_period() argument
149 if (rpm < 500) in bits_for_tach_period()
151 else if (rpm < 1000) in bits_for_tach_period()
153 else if (rpm < 2000) in bits_for_tach_period()
155 else if (rpm < 4000) in bits_for_tach_period()
157 else if (rpm < 8000) in bits_for_tach_period()
169 int sr, rpm; in max31790_read_fan() local
178 rpm = 0; in max31790_read_fan()
180 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
181 *val = rpm; in max31790_read_fan()
185 rpm = RPM_FROM_REG(data->target_count[channel], sr); in max31790_read_fan()
186 *val = rpm; in max31790_read_fan()