Lines Matching refs:therm

35 g84_temp_get(struct nvkm_therm *therm)
37 struct nvkm_device *device = therm->subdev.device;
46 g84_sensor_setup(struct nvkm_therm *therm)
48 struct nvkm_device *device = therm->subdev.device;
59 g84_therm_program_alarms(struct nvkm_therm *therm)
61 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
62 struct nvkm_subdev *subdev = &therm->subdev;
66 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
83 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags);
100 g84_therm_threshold_hyst_emulation(struct nvkm_therm *therm,
105 struct nvkm_device *device = therm->subdev.device;
110 prev_state = nvkm_therm_sensor_get_threshold_state(therm, thrs_name);
123 cur = therm->func->temp_get(therm);
129 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state);
140 nvkm_therm_sensor_event(therm, thrs_name, direction);
144 g84_therm_intr(struct nvkm_therm *therm)
146 struct nvkm_subdev *subdev = &therm->subdev;
148 struct nvbios_therm_sensor *sensor = &therm->bios_sensor;
152 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags);
158 g84_therm_threshold_hyst_emulation(therm, 0x20414, 24,
166 g84_therm_threshold_hyst_emulation(therm, 0x20480, 20,
174 g84_therm_threshold_hyst_emulation(therm, 0x204c4, 21,
182 g84_therm_threshold_hyst_emulation(therm, 0x204c0, 22,
195 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags);
199 g84_therm_fini(struct nvkm_therm *therm)
201 struct nvkm_device *device = therm->subdev.device;
212 g84_therm_init(struct nvkm_therm *therm)
214 g84_sensor_setup(therm);
233 struct nvkm_therm *therm;
236 ret = nvkm_therm_new_(&g84_therm, device, index, &therm);
237 *ptherm = therm;
242 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_SHUTDOWN,
244 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_FANBOOST,
246 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_CRITICAL,
248 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_DOWNCLOCK,