tach 130 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c u64 start, end, tach; tach 135 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (therm->fan->tach.func == DCB_GPIO_UNUSED) tach 143 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, tach 144 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->tach.line); tach 149 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, tach 150 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->tach.line); tach 161 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c tach = (u64)60000000000ULL; tach 162 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c do_div(tach, (end - start)); tach 163 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c return tach; tach 260 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c &therm->fan->tach); tach 262 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c therm->fan->tach.func = DCB_GPIO_UNUSED; tach 127 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c if (therm->fan->tach.func != DCB_GPIO_UNUSED) { tach 128 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c nvkm_mask(device, 0x00d79c, 0x000000ff, therm->fan->tach.line); tach 32 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; tach 35 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c return tach * 60 / 2; tach 43 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c struct dcb_gpio_func *tach = &therm->fan->tach; tach 49 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c if (tach->func != DCB_GPIO_UNUSED) { tach 51 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gt215.c nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16); tach 52 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h struct dcb_gpio_func tach; tach 206 drivers/hwmon/adt7475.c u16 tach[2][4]; tach 256 drivers/hwmon/adt7475.c static inline int tach2rpm(u16 tach) tach 258 drivers/hwmon/adt7475.c if (tach == 0 || tach == 0xFFFF) tach 261 drivers/hwmon/adt7475.c return (90000 * 60) / tach; tach 704 drivers/hwmon/adt7475.c out = tach2rpm(data->tach[sattr->nr][sattr->index]); tach 723 drivers/hwmon/adt7475.c data->tach[MIN][sattr->index] = rpm2tach(val); tach 726 drivers/hwmon/adt7475.c data->tach[MIN][sattr->index]); tach 1136 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan1_input, tach, INPUT, 0); tach 1137 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RW(fan1_min, tach, MIN, 0); tach 1138 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan1_alarm, tach, ALARM, 0); tach 1139 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan2_input, tach, INPUT, 1); tach 1140 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RW(fan2_min, tach, MIN, 1); tach 1141 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan2_alarm, tach, ALARM, 1); tach 1142 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan3_input, tach, INPUT, 2); tach 1143 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RW(fan3_min, tach, MIN, 2); tach 1144 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan3_alarm, tach, ALARM, 2); tach 1145 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan4_input, tach, INPUT, 3); tach 1146 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RW(fan4_min, tach, MIN, 3); tach 1147 drivers/hwmon/adt7475.c static SENSOR_DEVICE_ATTR_2_RO(fan4_alarm, tach, ALARM, 3); tach 1424 drivers/hwmon/adt7475.c data->tach[MIN][i] = ret; tach 1788 drivers/hwmon/adt7475.c data->tach[INPUT][i] = ret; tach 62 drivers/hwmon/max31790.c u16 tach[NR_CHANNEL * 2]; tach 95 drivers/hwmon/max31790.c data->tach[i] = rv; tach 104 drivers/hwmon/max31790.c data->tach[NR_CHANNEL + i] = rv; tach 174 drivers/hwmon/max31790.c rpm = RPM_FROM_REG(data->tach[channel], sr); tach 112 drivers/hwmon/max6650.c u8 tach[4]; tach 172 drivers/hwmon/max6650.c data->tach[i] = reg; tach 563 drivers/hwmon/max6650.c *val = DIV_ROUND_CLOSEST(data->tach[channel] * 120,