Lines Matching full:tach
141 u16 tach[4]; member
155 static int max6620_fan_tach_to_rpm(u8 div, u16 tach) in max6620_fan_tach_to_rpm() argument
157 return (60 * div * MAX6620_CLOCK_FREQ) / (tach * MAX6620_PULSE_PER_REV); in max6620_fan_tach_to_rpm()
184 data->tach[i] = (ret << 3) & 0x7f8; in max6620_update_device()
188 data->tach[i] |= (ret >> 5) & 0x7; in max6620_update_device()
267 /* Setting TACH count to re-enable fan fault detection */ in max6620_read()
293 if (data->tach[channel] == 0) { in max6620_read()
297 *val = max6620_fan_tach_to_rpm(div, data->tach[channel]); in max6620_read()
328 u16 tach; in max6620_write() local
374 tach = max6620_fan_rpm_to_tach(div, val); in max6620_write()
375 val1 = (tach >> 3) & 0xff; in max6620_write()
376 val2 = (tach << 5) & 0xe0; in max6620_write()
384 /* Setting TACH count re-enables fan fault detection */ in max6620_write()