Lines Matching refs:device

57 	struct nvkm_device *device = therm->subdev.device;  in nv50_fan_pwm_ctrl()  local
61 nvkm_mask(device, ctrl, 0x00010001 << line, data << line); in nv50_fan_pwm_ctrl()
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get() local
73 if (nvkm_rd32(device, ctrl) & (1 << line)) { in nv50_fan_pwm_get()
74 *divs = nvkm_rd32(device, 0x00e114 + (id * 8)); in nv50_fan_pwm_get()
75 *duty = nvkm_rd32(device, 0x00e118 + (id * 8)); in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set() local
90 nvkm_wr32(device, 0x00e114 + (id * 8), divs); in nv50_fan_pwm_set()
91 nvkm_wr32(device, 0x00e118 + (id * 8), duty | 0x80000000); in nv50_fan_pwm_set()
98 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_clock() local
102 if (device->chipset > 0x50 && device->chipset < 0x94) { in nv50_fan_pwm_clock()
103 u8 pwm_div = nvkm_rd32(device, 0x410c); in nv50_fan_pwm_clock()
104 if (nvkm_rd32(device, 0xc040) & 0x800000) { in nv50_fan_pwm_clock()
110 pwm_clock = (device->crystal * 1000) >> pwm_div; in nv50_fan_pwm_clock()
114 pwm_clock = (device->crystal * 1000) / 20; in nv50_fan_pwm_clock()
123 struct nvkm_device *device = therm->subdev.device; in nv50_sensor_setup() local
124 nvkm_mask(device, 0x20010, 0x40000000, 0x0); in nv50_sensor_setup()
131 struct nvkm_device *device = therm->subdev.device; in nv50_temp_get() local
135 core_temp = nvkm_rd32(device, 0x20014) & 0x3fff; in nv50_temp_get()
172 nv50_therm_new(struct nvkm_device *device, int index, in nv50_therm_new() argument
175 return nvkm_therm_new_(&nv50_therm, device, index, ptherm); in nv50_therm_new()