/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/therm/ |
nouveau_nvkm_subdev_therm_gt215.c | 37 u32 tach = nvkm_rd32(device, 0x00e728) & 0x0000ffff; local in function:gt215_therm_fan_sense 40 return tach * 60 / 2; 48 struct dcb_gpio_func *tach = &therm->fan->tach; local in function:gt215_therm_init 52 /* enable fan tach, count revolutions per-second */ 54 if (tach->func != DCB_GPIO_UNUSED) { 56 nvkm_mask(device, 0x00e720, 0x001f0000, tach->line << 16);
|
priv.h | 55 struct dcb_gpio_func tach; member in struct:nvkm_fan
|
nouveau_nvkm_subdev_therm_fan.c | 139 u64 start, end, tach; local in function:nvkm_therm_fan_sense 144 if (therm->fan->tach.func == DCB_GPIO_UNUSED) 152 prev = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, 153 therm->fan->tach.line); 158 cur = nvkm_gpio_get(gpio, 0, therm->fan->tach.func, 159 therm->fan->tach.line); 170 tach = (u64)60000000000ULL; 171 do_div(tach, (end - start)); 172 return tach; 277 &therm->fan->tach); [all...] |