Lines Matching refs:device
32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get() local
34 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) in g84_temp_get()
35 return nvkm_rd32(device, 0x20400); in g84_temp_get()
43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup() local
46 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) { in g84_sensor_setup()
47 nvkm_mask(device, 0x20008, 0x80008000, 0x80000000); in g84_sensor_setup()
48 nvkm_mask(device, 0x2000c, 0x80000003, 0x00000000); in g84_sensor_setup()
58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms() local
64 nvkm_wr32(device, 0x20000, 0x000003ff); 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()
100 struct nvkm_device *device = therm->subdev.device; in g84_therm_threshold_hyst_emulation() local
106 temp = nvkm_rd32(device, thrs_reg); 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()
142 struct nvkm_device *device = subdev->device; in g84_therm_intr() local
149 intr = nvkm_rd32(device, 0x20100) & 0x3ff; in g84_therm_intr()
187 nvkm_wr32(device, 0x20100, 0xffffffff); in g84_therm_intr()
188 nvkm_wr32(device, 0x1100, 0x10000); /* PBUS */ in g84_therm_intr()
196 struct nvkm_device *device = therm->subdev.device; in g84_therm_fini() local
199 nvkm_wr32(device, 0x20000, 0x00000000); in g84_therm_fini()
202 nvkm_wr32(device, 0x20100, 0xffffffff); in g84_therm_fini()
203 nvkm_wr32(device, 0x1100, 0x10000); /* PBUS */ in g84_therm_fini()
226 g84_therm_new(struct nvkm_device *device, int index, struct nvkm_therm **ptherm) in g84_therm_new() argument
231 ret = nvkm_therm_new_(&g84_therm, device, index, &therm); in g84_therm_new()