Lines Matching refs:device

32 	switch (therm->subdev.device->chipset) {  in nv40_sensor_style()
55 struct nvkm_device *device = therm->subdev.device; in nv40_sensor_setup() local
60 nvkm_mask(device, 0x15b8, 0x80000000, 0); in nv40_sensor_setup()
61 nvkm_wr32(device, 0x15b0, 0x80003fff); in nv40_sensor_setup()
63 return nvkm_rd32(device, 0x15b4) & 0x3fff; in nv40_sensor_setup()
65 nvkm_wr32(device, 0x15b0, 0xff); in nv40_sensor_setup()
67 return nvkm_rd32(device, 0x15b4) & 0xff; in nv40_sensor_setup()
75 struct nvkm_device *device = therm->subdev.device; in nv40_temp_get() local
81 nvkm_wr32(device, 0x15b0, 0x80003fff); in nv40_temp_get()
82 core_temp = nvkm_rd32(device, 0x15b4) & 0x3fff; in nv40_temp_get()
84 nvkm_wr32(device, 0x15b0, 0xff); in nv40_temp_get()
85 core_temp = nvkm_rd32(device, 0x15b4) & 0xff; in nv40_temp_get()
109 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_ctrl() local
111 if (line == 2) nvkm_mask(device, 0x0010f0, 0x80000000, mask); in nv40_fan_pwm_ctrl()
112 else if (line == 9) nvkm_mask(device, 0x0015f4, 0x80000000, mask); in nv40_fan_pwm_ctrl()
124 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_get() local
126 u32 reg = nvkm_rd32(device, 0x0010f0); in nv40_fan_pwm_get()
134 u32 reg = nvkm_rd32(device, 0x0015f4); in nv40_fan_pwm_get()
136 *divs = nvkm_rd32(device, 0x0015f8); in nv40_fan_pwm_get()
152 struct nvkm_device *device = subdev->device; in nv40_fan_pwm_set() local
154 nvkm_mask(device, 0x0010f0, 0x7fff7fff, (duty << 16) | divs); in nv40_fan_pwm_set()
157 nvkm_wr32(device, 0x0015f8, divs); in nv40_fan_pwm_set()
158 nvkm_mask(device, 0x0015f4, 0x7fffffff, duty); in nv40_fan_pwm_set()
171 struct nvkm_device *device = subdev->device; in nv40_therm_intr() local
172 uint32_t stat = nvkm_rd32(device, 0x1100); in nv40_therm_intr()
177 nvkm_wr32(device, 0x1100, 0x70000); in nv40_therm_intr()
200 nv40_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in nv40_therm_new() argument
203 return nvkm_therm_new_(&nv40_therm, device, type, inst, ptherm); in nv40_therm_new()