Lines Matching refs:therm
55 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp() local
58 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp()
67 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_temp1_auto_point1_temp() local
73 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST, in nouveau_hwmon_set_temp1_auto_point1_temp()
88 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_temp1_auto_point1_temp_hyst() local
91 therm->attr_get(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST) * 1000); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
100 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() local
106 therm->attr_set(therm, NVKM_THERM_ATTR_THRS_FAN_BOOST_HYST, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
121 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_get_pwm1_max() local
124 ret = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY); in nouveau_hwmon_get_pwm1_max()
137 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_get_pwm1_min() local
140 ret = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY); in nouveau_hwmon_get_pwm1_min()
153 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_pwm1_min() local
160 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MIN_DUTY, value); in nouveau_hwmon_set_pwm1_min()
176 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_set_pwm1_max() local
183 ret = therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MAX_DUTY, value); in nouveau_hwmon_set_pwm1_max()
275 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_temp_is_visible() local
277 if (!therm || !therm->attr_get || nvkm_therm_temp_get(therm) < 0) in nouveau_temp_is_visible()
299 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_pwm_is_visible() local
301 if (!therm || !therm->attr_get || !therm->fan_get || in nouveau_pwm_is_visible()
302 therm->fan_get(therm) < 0) in nouveau_pwm_is_visible()
338 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_fan_is_visible() local
340 if (!therm || !therm->attr_get || nvkm_therm_fan_sense(therm) < 0) in nouveau_fan_is_visible()
370 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_temp_read() local
373 if (!therm || !therm->attr_get) in nouveau_temp_read()
380 ret = nvkm_therm_temp_get(therm); in nouveau_temp_read()
384 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK) in nouveau_temp_read()
388 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST) in nouveau_temp_read()
392 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_CRITICAL) in nouveau_temp_read()
396 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST) in nouveau_temp_read()
400 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN) in nouveau_temp_read()
404 *val = therm->attr_get(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN_HYST) in nouveau_temp_read()
419 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_fan_read() local
421 if (!therm) in nouveau_fan_read()
428 *val = nvkm_therm_fan_sense(therm); in nouveau_fan_read()
473 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_pwm_read() local
475 if (!therm || !therm->attr_get || !therm->fan_get) in nouveau_pwm_read()
480 *val = therm->attr_get(therm, NVKM_THERM_ATTR_FAN_MODE); in nouveau_pwm_read()
485 *val = therm->fan_get(therm); in nouveau_pwm_read()
528 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_temp_write() local
530 if (!therm || !therm->attr_set) in nouveau_temp_write()
535 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK, in nouveau_temp_write()
538 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_DOWN_CLK_HYST, in nouveau_temp_write()
541 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL, in nouveau_temp_write()
544 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_CRITICAL_HYST, in nouveau_temp_write()
547 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN, in nouveau_temp_write()
550 return therm->attr_set(therm, NVKM_THERM_ATTR_THRS_SHUTDOWN_HYST, in nouveau_temp_write()
562 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_pwm_write() local
564 if (!therm || !therm->attr_set) in nouveau_pwm_write()
569 return therm->fan_set(therm, val); in nouveau_pwm_write()
571 return therm->attr_set(therm, NVKM_THERM_ATTR_FAN_MODE, val); in nouveau_pwm_write()
668 struct nvkm_therm *therm = nvxx_therm(&drm->client.device); in nouveau_hwmon_init() local
676 if (!iccsense && !therm && !volt) { in nouveau_hwmon_init()
686 if (therm && therm->attr_get && therm->attr_set) { in nouveau_hwmon_init()
687 if (nvkm_therm_temp_get(therm) >= 0) in nouveau_hwmon_init()
689 if (therm->fan_get && therm->fan_get(therm) >= 0) in nouveau_hwmon_init()