Lines Matching +full:temp +full:- +full:sensor
40 nvkm_error(&bios->subdev, in therm_table()
69 struct nvbios_therm_sensor *sensor) in nvbios_therm_sensor_parse() argument
77 return -EINVAL; in nvbios_therm_sensor_parse()
81 sensor_section = -1; in nvbios_therm_sensor_parse()
96 sensor->offset_constant = offset; in nvbios_therm_sensor_parse()
102 sensor->thrs_critical.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse()
103 sensor->thrs_critical.hysteresis = value & 0xf; in nvbios_therm_sensor_parse()
109 sensor->thrs_down_clock.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse()
110 sensor->thrs_down_clock.hysteresis = value & 0xf; in nvbios_therm_sensor_parse()
116 sensor->thrs_fan_boost.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse()
117 sensor->thrs_fan_boost.hysteresis = value & 0xf; in nvbios_therm_sensor_parse()
123 sensor->offset_num = value; in nvbios_therm_sensor_parse()
128 sensor->offset_den = value; in nvbios_therm_sensor_parse()
133 sensor->slope_mult = value; in nvbios_therm_sensor_parse()
138 sensor->slope_div = value; in nvbios_therm_sensor_parse()
142 sensor->thrs_shutdown.temp = (value & 0xff0) >> 4; in nvbios_therm_sensor_parse()
143 sensor->thrs_shutdown.hysteresis = value & 0xf; in nvbios_therm_sensor_parse()
163 fan->nr_fan_trip = 0; in nvbios_therm_fan_parse()
164 fan->fan_mode = NVBIOS_THERM_FAN_OTHER; in nvbios_therm_fan_parse()
170 fan->min_duty = value & 0xff; in nvbios_therm_fan_parse()
171 fan->max_duty = (value & 0xff00) >> 8; in nvbios_therm_fan_parse()
174 fan->nr_fan_trip++; in nvbios_therm_fan_parse()
175 if (fan->fan_mode > NVBIOS_THERM_FAN_TRIP) in nvbios_therm_fan_parse()
176 fan->fan_mode = NVBIOS_THERM_FAN_TRIP; in nvbios_therm_fan_parse()
177 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
178 cur_trip->hysteresis = value & 0xf; in nvbios_therm_fan_parse()
179 cur_trip->temp = (value & 0xff0) >> 4; in nvbios_therm_fan_parse()
180 cur_trip->fan_duty = duty_lut[(value & 0xf000) >> 12]; in nvbios_therm_fan_parse()
183 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
184 cur_trip->fan_duty = value; in nvbios_therm_fan_parse()
187 if (!fan->pwm_freq) in nvbios_therm_fan_parse()
188 fan->pwm_freq = value; in nvbios_therm_fan_parse()
191 fan->bump_period = value; in nvbios_therm_fan_parse()
194 fan->slow_down_period = value; in nvbios_therm_fan_parse()
197 if (fan->fan_mode > NVBIOS_THERM_FAN_LINEAR) in nvbios_therm_fan_parse()
198 fan->fan_mode = NVBIOS_THERM_FAN_LINEAR; in nvbios_therm_fan_parse()
199 fan->linear_min_temp = nvbios_rd08(bios, entry + 1); in nvbios_therm_fan_parse()
200 fan->linear_max_temp = nvbios_rd08(bios, entry + 2); in nvbios_therm_fan_parse()
206 if (bios->subdev.device->card_type >= NV_C0 && in nvbios_therm_fan_parse()
207 fan->fan_mode == NVBIOS_THERM_FAN_OTHER) { in nvbios_therm_fan_parse()
208 fan->fan_mode = NVBIOS_THERM_FAN_LINEAR; in nvbios_therm_fan_parse()