Lines Matching +full:temp +full:- +full:sensor

32 	struct nvkm_device *device = therm->subdev.device;  in g84_temp_get()
34 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) in g84_temp_get()
37 return -ENODEV; in g84_temp_get()
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup()
46 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) { in g84_sensor_setup()
56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local
57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms()
58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms()
61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms()
68 nvkm_wr32(device, 0x20480, sensor->thrs_shutdown.temp); in g84_therm_program_alarms()
71 nvkm_wr32(device, 0x204c4, sensor->thrs_fan_boost.temp); in g84_therm_program_alarms()
74 nvkm_wr32(device, 0x204c0, sensor->thrs_critical.temp); in g84_therm_program_alarms()
77 nvkm_wr32(device, 0x20414, sensor->thrs_down_clock.temp); in g84_therm_program_alarms()
78 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
82 sensor->thrs_fan_boost.temp, in g84_therm_program_alarms()
83 sensor->thrs_fan_boost.hysteresis, in g84_therm_program_alarms()
84 sensor->thrs_down_clock.temp, in g84_therm_program_alarms()
85 sensor->thrs_down_clock.hysteresis, in g84_therm_program_alarms()
86 sensor->thrs_critical.temp, in g84_therm_program_alarms()
87 sensor->thrs_critical.hysteresis, in g84_therm_program_alarms()
88 sensor->thrs_shutdown.temp, in g84_therm_program_alarms()
89 sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms()
100 struct nvkm_device *device = therm->subdev.device; in g84_therm_threshold_hyst_emulation()
103 int temp, cur; in g84_therm_threshold_hyst_emulation() local
106 temp = nvkm_rd32(device, thrs_reg); in g84_therm_threshold_hyst_emulation()
109 if (temp == thrs->temp) { in g84_therm_threshold_hyst_emulation()
110 nvkm_wr32(device, thrs_reg, thrs->temp - thrs->hysteresis); in g84_therm_threshold_hyst_emulation()
113 nvkm_wr32(device, thrs_reg, thrs->temp); in g84_therm_threshold_hyst_emulation()
118 cur = therm->func->temp_get(therm); in g84_therm_threshold_hyst_emulation()
119 if (new_state == NVKM_THERM_THRS_LOWER && cur > thrs->temp) in g84_therm_threshold_hyst_emulation()
122 cur < thrs->temp - thrs->hysteresis) in g84_therm_threshold_hyst_emulation()
141 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_intr()
142 struct nvkm_device *device = subdev->device; in g84_therm_intr()
143 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_intr() local
147 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_intr()
154 &sensor->thrs_down_clock, in g84_therm_intr()
162 &sensor->thrs_shutdown, in g84_therm_intr()
170 &sensor->thrs_fan_boost, in g84_therm_intr()
178 &sensor->thrs_critical, in g84_therm_intr()
190 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_intr()
196 struct nvkm_device *device = therm->subdev.device; in g84_therm_fini()