Home
last modified time | relevance | path

Searched refs:tach (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dgt215.c36 u32 tach = nv_rd32(therm, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense() local
39 return tach * 60 / 2; in gt215_therm_fan_sense()
47 struct dcb_gpio_func *tach = &priv->base.fan->tach; in gt215_therm_init() local
58 if (tach->func != DCB_GPIO_UNUSED) { in gt215_therm_init()
60 nv_mask(priv, 0x00e720, 0x001f0000, tach->line << 16); in gt215_therm_init()
Dfan.c132 u64 start, end, tach; in nvkm_therm_fan_sense() local
134 if (priv->fan->tach.func == DCB_GPIO_UNUSED) in nvkm_therm_fan_sense()
142 prev = gpio->get(gpio, 0, priv->fan->tach.func, priv->fan->tach.line); in nvkm_therm_fan_sense()
147 cur = gpio->get(gpio, 0, priv->fan->tach.func, priv->fan->tach.line); in nvkm_therm_fan_sense()
158 tach = (u64)60000000000ULL; in nvkm_therm_fan_sense()
159 do_div(tach, (end - start)); in nvkm_therm_fan_sense()
160 return tach; in nvkm_therm_fan_sense()
263 ret = gpio->find(gpio, 0, DCB_GPIO_FAN_SENSE, 0xff, &priv->fan->tach); in nvkm_therm_fan_ctor()
265 priv->fan->tach.func = DCB_GPIO_UNUSED; in nvkm_therm_fan_ctor()
Dgf110.c130 if (priv->base.fan->tach.func != DCB_GPIO_UNUSED) { in gf110_therm_init()
131 nv_mask(priv, 0x00d79c, 0x000000ff, priv->base.fan->tach.line); in gf110_therm_init()
Dpriv.h48 struct dcb_gpio_func tach; member
/linux-4.1.27/Documentation/hwmon/
Dsmsc47b39756 Reading tach information.
66 Reading the tach LSB locks the tach MSB.
69 How to convert the tach reading to RPM.
70 The tach reading (TCount) is given by: (Tach MSB * 256) + (Tach LSB)
Dlm93122 achieved despite the signal corruption. In smart tach mode all
125 Smart tach mode is enabled by the driver by writing 1 or 2 (associating the
127 will disable the function for that fan. Note that Smart tach mode cannot be
255 four tach input pins. GPIO0-GPIO3 correspond to (fan) tach 1-4, respectively.
284 fan<n>_smart_tach enable or disable smart tach mode
Dasc762172 Finally, we have added a tach disable function that turns off the tach
/linux-4.1.27/drivers/hwmon/
Dadt7475.c182 u16 tach[2][4]; member
230 static inline int tach2rpm(u16 tach) in tach2rpm() argument
232 if (tach == 0 || tach == 0xFFFF) in tach2rpm()
235 return (90000 * 60) / tach; in tach2rpm()
607 out = tach2rpm(data->tach[sattr->nr][sattr->index]); in show_tach()
626 data->tach[MIN][sattr->index] = rpm2tach(val); in set_tach()
629 data->tach[MIN][sattr->index]); in set_tach()
1545 data->tach[INPUT][i] = in adt7475_update_device()
1601 data->tach[MIN][i] = in adt7475_update_device()
Dmax6650.c123 u8 tach[4]; member
150 data->tach[i] = i2c_smbus_read_byte_data(client, in max6650_update_device()
190 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count)); in get_fan()