Lines Matching +full:sensor +full:- +full:id
30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
48 return -ENODEV; in pwm_info()
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() local
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get() local
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()
79 return -EINVAL; in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set()
86 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); 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()
102 if (device->chipset > 0x50 && device->chipset < 0x94) { 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()
131 struct nvkm_device *device = therm->subdev.device; in nv50_temp_get()
132 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in nv50_temp_get() local
137 /* if the slope or the offset is unset, do no use the sensor */ in nv50_temp_get()
138 if (!sensor->slope_div || !sensor->slope_mult || in nv50_temp_get()
139 !sensor->offset_num || !sensor->offset_den) in nv50_temp_get()
140 return -ENODEV; in nv50_temp_get()
142 core_temp = core_temp * sensor->slope_mult / sensor->slope_div; in nv50_temp_get()
143 core_temp = core_temp + sensor->offset_num / sensor->offset_den; in nv50_temp_get()
144 core_temp = core_temp + sensor->offset_constant - 8; in nv50_temp_get()