Lines Matching refs:therm
30 g84_temp_get(struct nvkm_therm *therm) in g84_temp_get() argument
32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get()
41 g84_sensor_setup(struct nvkm_therm *therm) in g84_sensor_setup() argument
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup()
54 g84_therm_program_alarms(struct nvkm_therm *therm) in g84_therm_program_alarms() argument
56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms()
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms()
61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
78 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
95 g84_therm_threshold_hyst_emulation(struct nvkm_therm *therm, in g84_therm_threshold_hyst_emulation() argument
100 struct nvkm_device *device = therm->subdev.device; in g84_therm_threshold_hyst_emulation()
105 prev_state = nvkm_therm_sensor_get_threshold_state(therm, thrs_name); in g84_therm_threshold_hyst_emulation()
118 cur = therm->func->temp_get(therm); in g84_therm_threshold_hyst_emulation()
124 nvkm_therm_sensor_set_threshold_state(therm, thrs_name, new_state); in g84_therm_threshold_hyst_emulation()
135 nvkm_therm_sensor_event(therm, thrs_name, direction); in g84_therm_threshold_hyst_emulation()
139 g84_therm_intr(struct nvkm_therm *therm) in g84_therm_intr() argument
141 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_intr()
143 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_intr()
147 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_intr()
153 g84_therm_threshold_hyst_emulation(therm, 0x20414, 24, in g84_therm_intr()
161 g84_therm_threshold_hyst_emulation(therm, 0x20480, 20, in g84_therm_intr()
169 g84_therm_threshold_hyst_emulation(therm, 0x204c4, 21, in g84_therm_intr()
177 g84_therm_threshold_hyst_emulation(therm, 0x204c0, 22, in g84_therm_intr()
190 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_intr()
194 g84_therm_fini(struct nvkm_therm *therm) in g84_therm_fini() argument
196 struct nvkm_device *device = therm->subdev.device; in g84_therm_fini()
207 g84_therm_init(struct nvkm_therm *therm) in g84_therm_init() argument
209 g84_sensor_setup(therm); in g84_therm_init()
229 struct nvkm_therm *therm; in g84_therm_new() local
232 ret = nvkm_therm_new_(&g84_therm, device, type, inst, &therm); in g84_therm_new()
233 *ptherm = therm; in g84_therm_new()
238 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_SHUTDOWN, in g84_therm_new()
240 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_FANBOOST, in g84_therm_new()
242 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_CRITICAL, in g84_therm_new()
244 nvkm_therm_sensor_set_threshold_state(therm, NVKM_THERM_THRS_DOWNCLOCK, in g84_therm_new()