Lines Matching refs:tach
210 u16 tach[2][4]; member
260 static inline int tach2rpm(u16 tach) in tach2rpm() argument
262 if (tach == 0 || tach == 0xFFFF) in tach2rpm()
265 return (90000 * 60) / tach; in tach2rpm()
708 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in tach_show()
727 data->tach[MIN][sattr->index] = rpm2tach(val); in tach_store()
730 data->tach[MIN][sattr->index]); in tach_store()
1140 static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0);
1141 static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0);
1142 static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0);
1143 static SENSOR_DEVICE_ATTR_2_RO(fan2_input, tach, INPUT, 1);
1144 static SENSOR_DEVICE_ATTR_2_RW(fan2_min, tach, MIN, 1);
1145 static SENSOR_DEVICE_ATTR_2_RO(fan2_alarm, tach, ALARM, 1);
1146 static SENSOR_DEVICE_ATTR_2_RO(fan3_input, tach, INPUT, 2);
1147 static SENSOR_DEVICE_ATTR_2_RW(fan3_min, tach, MIN, 2);
1148 static SENSOR_DEVICE_ATTR_2_RO(fan3_alarm, tach, ALARM, 2);
1149 static SENSOR_DEVICE_ATTR_2_RO(fan4_input, tach, INPUT, 3);
1150 static SENSOR_DEVICE_ATTR_2_RW(fan4_min, tach, MIN, 3);
1151 static SENSOR_DEVICE_ATTR_2_RO(fan4_alarm, tach, ALARM, 3);
1428 data->tach[MIN][i] = ret; in adt7475_update_limits()
1970 data->tach[INPUT][i] = ret; in adt7475_update_measure()