Lines Matching refs:therm
29 nvkm_therm_update_trip(struct nvkm_therm *therm) in nvkm_therm_update_trip() argument
31 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update_trip()
35 u8 temp = therm->temp_get(therm); in nvkm_therm_update_trip()
62 nvkm_therm_update_linear(struct nvkm_therm *therm) in nvkm_therm_update_linear() argument
64 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update_linear()
67 u8 temp = therm->temp_get(therm); in nvkm_therm_update_linear()
85 nvkm_therm_update(struct nvkm_therm *therm, int mode) in nvkm_therm_update() argument
87 struct nvkm_timer *ptimer = nvkm_timer(therm); in nvkm_therm_update()
88 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_update()
102 duty = nvkm_therm_fan_get(therm); in nvkm_therm_update()
110 duty = nvkm_therm_update_trip(therm); in nvkm_therm_update()
113 duty = nvkm_therm_update_linear(therm); in nvkm_therm_update()
134 nv_debug(therm, "FAN target request: %d%%\n", duty); in nvkm_therm_update()
135 nvkm_therm_fan_set(therm, immd, duty); in nvkm_therm_update()
161 nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) in nvkm_therm_fan_mode() argument
163 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_fan_mode()
164 struct nvkm_device *device = nv_device(therm); in nvkm_therm_fan_mode()
179 if (mode == NVKM_THERM_CTRL_AUTO && therm->temp_get(therm) < 0) in nvkm_therm_fan_mode()
185 nv_info(therm, "fan management: %s\n", name[mode]); in nvkm_therm_fan_mode()
186 nvkm_therm_update(therm, mode); in nvkm_therm_fan_mode()
191 nvkm_therm_attr_get(struct nvkm_therm *therm, in nvkm_therm_attr_get() argument
194 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_attr_get()
225 nvkm_therm_attr_set(struct nvkm_therm *therm, in nvkm_therm_attr_set() argument
228 struct nvkm_therm_priv *priv = (void *)therm; in nvkm_therm_attr_set()
246 return nvkm_therm_fan_mode(therm, value); in nvkm_therm_attr_set()
249 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
253 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
257 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
261 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
265 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
269 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
273 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
277 priv->sensor.program_alarms(therm); in nvkm_therm_attr_set()
287 struct nvkm_therm *therm = (void *)object; in _nvkm_therm_init() local
288 struct nvkm_therm_priv *priv = (void *)therm; in _nvkm_therm_init()
291 ret = nvkm_subdev_init(&therm->base); in _nvkm_therm_init()
298 nvkm_therm_fan_set(therm, true, priv->fan->percent); in _nvkm_therm_init()
300 nvkm_therm_fan_mode(therm, priv->suspend); in _nvkm_therm_init()
302 nvkm_therm_sensor_init(therm); in _nvkm_therm_init()
303 nvkm_therm_fan_init(therm); in _nvkm_therm_init()
310 struct nvkm_therm *therm = (void *)object; in _nvkm_therm_fini() local
311 struct nvkm_therm_priv *priv = (void *)therm; in _nvkm_therm_fini()
313 nvkm_therm_fan_fini(therm, suspend); in _nvkm_therm_fini()
314 nvkm_therm_sensor_fini(therm, suspend); in _nvkm_therm_fini()
320 return nvkm_subdev_fini(&therm->base, suspend); in _nvkm_therm_fini()
350 nvkm_therm_preinit(struct nvkm_therm *therm) in nvkm_therm_preinit() argument
352 nvkm_therm_sensor_ctor(therm); in nvkm_therm_preinit()
353 nvkm_therm_ic_ctor(therm); in nvkm_therm_preinit()
354 nvkm_therm_fan_ctor(therm); in nvkm_therm_preinit()
356 nvkm_therm_fan_mode(therm, NVKM_THERM_CTRL_AUTO); in nvkm_therm_preinit()
357 nvkm_therm_sensor_preinit(therm); in nvkm_therm_preinit()