Lines Matching refs:therm

43 	struct nvkm_therm *therm = nvxx_therm(&drm->device);  in nouveau_hwmon_show_temp()  local
44 int temp = therm->temp_get(therm); in nouveau_hwmon_show_temp()
69 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp() local
72 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp()
81 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp() local
87 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
102 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local
105 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
114 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local
120 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
134 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_max_temp() local
137 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK) * 1000); in nouveau_hwmon_max_temp()
145 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_max_temp() local
151 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK, value / 1000); in nouveau_hwmon_set_max_temp()
165 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_max_temp_hyst() local
168 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST) * 1000); in nouveau_hwmon_max_temp_hyst()
176 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_max_temp_hyst() local
182 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST, in nouveau_hwmon_set_max_temp_hyst()
197 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_critical_temp() local
200 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_CRITICAL) * 1000); in nouveau_hwmon_critical_temp()
209 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_critical_temp() local
215 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, value / 1000); in nouveau_hwmon_set_critical_temp()
230 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_critical_temp_hyst() local
233 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST) * 1000); in nouveau_hwmon_critical_temp_hyst()
243 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_critical_temp_hyst() local
249 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST, in nouveau_hwmon_set_critical_temp_hyst()
263 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_emergency_temp() local
266 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN) * 1000); in nouveau_hwmon_emergency_temp()
275 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_emergency_temp() local
281 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, value / 1000); in nouveau_hwmon_set_emergency_temp()
296 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_emergency_temp_hyst() local
299 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN_HYST) * 1000); in nouveau_hwmon_emergency_temp_hyst()
309 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_emergency_temp_hyst() local
315 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN_HYST, in nouveau_hwmon_set_emergency_temp_hyst()
349 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_show_fan1_input() local
351 return snprintf(buf, PAGE_SIZE, "%d\n", therm->fan_sense(therm)); in nouveau_hwmon_show_fan1_input()
362 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_get_pwm1_enable() local
365 ret = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MODE); in nouveau_hwmon_get_pwm1_enable()
378 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_pwm1_enable() local
386 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MODE, value); in nouveau_hwmon_set_pwm1_enable()
401 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_get_pwm1() local
404 ret = therm->fan_get(therm); in nouveau_hwmon_get_pwm1()
417 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_pwm1() local
424 ret = therm->fan_set(therm, value); in nouveau_hwmon_set_pwm1()
441 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_get_pwm1_min() local
444 ret = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY); in nouveau_hwmon_get_pwm1_min()
457 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_pwm1_min() local
464 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY, value); in nouveau_hwmon_set_pwm1_min()
481 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_get_pwm1_max() local
484 ret = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY); in nouveau_hwmon_get_pwm1_max()
497 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_pwm1_max() local
504 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY, value); in nouveau_hwmon_set_pwm1_max()
564 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_init() local
574 if (!therm || !therm->temp_get || !therm->attr_get || !therm->attr_set) in nouveau_hwmon_init()
591 if (therm->temp_get(therm) >= 0) { in nouveau_hwmon_init()
601 if (therm->fan_get && therm->fan_get(therm) >= 0) { in nouveau_hwmon_init()
609 if (therm->fan_sense(therm) >= 0) { in nouveau_hwmon_init()