Searched refs:tach (Results 1 – 7 of 7) sorted by relevance
/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
D | gt215.c | 32 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; in gt215_therm_fan_sense() local 35 return tach * 60 / 2; in gt215_therm_fan_sense() 43 struct dcb_gpio_func *tach = &therm->fan->tach; in gt215_therm_init() local 49 if (tach->func != DCB_GPIO_UNUSED) { in gt215_therm_init() 51 nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16); in gt215_therm_init()
|
D | fan.c | 130 u64 start, end, tach; in nvkm_therm_fan_sense() local 135 if (therm->fan->tach.func == DCB_GPIO_UNUSED) in nvkm_therm_fan_sense() 143 prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense() 144 therm->fan->tach.line); in nvkm_therm_fan_sense() 149 cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, in nvkm_therm_fan_sense() 150 therm->fan->tach.line); in nvkm_therm_fan_sense() 161 tach = (u64)60000000000ULL; in nvkm_therm_fan_sense() 162 do_div(tach, (end - start)); in nvkm_therm_fan_sense() 163 return tach; in nvkm_therm_fan_sense() 260 &therm->fan->tach); in nvkm_therm_fan_ctor() [all …]
|
D | gf119.c | 127 if (therm->fan->tach.func != DCB_GPIO_UNUSED) { in gf119_therm_init() 128 nvkm_mask(device, 0x00d79c, 0x000000ff, therm->fan->tach.line); in gf119_therm_init()
|
D | priv.h | 50 struct dcb_gpio_func tach; member
|
/drivers/hwmon/ |
D | max31790.c | 71 u16 tach[NR_CHANNEL * 2]; member 104 data->tach[i] = rv; in max31790_update_device() 113 data->tach[NR_CHANNEL + i] = rv; in max31790_update_device() 183 rpm = RPM_FROM_REG(data->tach[channel], sr); in max31790_read_fan()
|
D | adt7475.c | 182 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()
|
D | max6650.c | 124 u8 tach[4]; member 164 data->tach[i] = i2c_smbus_read_byte_data(client, in max6650_update_device() 228 rpm = ((data->tach[attr->index] * 120) / DIV_FROM_REG(data->count)); in get_fan()
|