Lines Matching refs:tach
206 u16 tach[2][4]; member
256 static inline int tach2rpm(u16 tach) in tach2rpm() argument
258 if (tach == 0 || tach == 0xFFFF) in tach2rpm()
261 return (90000 * 60) / tach; in tach2rpm()
703 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in tach_show()
722 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store()
725 data->tach[MIN][sattr->index]); in tach_store()
1135 static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0);
1136 static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0);
1137 static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0);
1138 static SENSOR_DEVICE_ATTR_2_RO(fan2_input, tach, INPUT, 1);
1139 static SENSOR_DEVICE_ATTR_2_RW(fan2_min, tach, MIN, 1);
1140 static SENSOR_DEVICE_ATTR_2_RO(fan2_alarm, tach, ALARM, 1);
1141 static SENSOR_DEVICE_ATTR_2_RO(fan3_input, tach, INPUT, 2);
1142 static SENSOR_DEVICE_ATTR_2_RW(fan3_min, tach, MIN, 2);
1143 static SENSOR_DEVICE_ATTR_2_RO(fan3_alarm, tach, ALARM, 2);
1144 static SENSOR_DEVICE_ATTR_2_RO(fan4_input, tach, INPUT, 3);
1145 static SENSOR_DEVICE_ATTR_2_RW(fan4_min, tach, MIN, 3);
1146 static SENSOR_DEVICE_ATTR_2_RO(fan4_alarm, tach, ALARM, 3);
1423 data->tach[MIN][i] = ret; in adt7475_update_limits()
1787 data->tach[INPUT][i] = ret; in adt7475_update_measure()