Lines Matching refs:value
247 enum nvkm_therm_attr_type type, int value) in nvkm_therm_attr_set() argument
251 if (value < 0) in nvkm_therm_attr_set()
252 value = 0; in nvkm_therm_attr_set()
253 if (value > therm->fan->bios.max_duty) in nvkm_therm_attr_set()
254 value = therm->fan->bios.max_duty; in nvkm_therm_attr_set()
255 therm->fan->bios.min_duty = value; in nvkm_therm_attr_set()
258 if (value < 0) in nvkm_therm_attr_set()
259 value = 0; in nvkm_therm_attr_set()
260 if (value < therm->fan->bios.min_duty) in nvkm_therm_attr_set()
261 value = therm->fan->bios.min_duty; in nvkm_therm_attr_set()
262 therm->fan->bios.max_duty = value; in nvkm_therm_attr_set()
265 return nvkm_therm_fan_mode(therm, value); in nvkm_therm_attr_set()
267 therm->bios_sensor.thrs_fan_boost.temp = value; in nvkm_therm_attr_set()
271 therm->bios_sensor.thrs_fan_boost.hysteresis = value; in nvkm_therm_attr_set()
275 therm->bios_sensor.thrs_down_clock.temp = value; in nvkm_therm_attr_set()
279 therm->bios_sensor.thrs_down_clock.hysteresis = value; in nvkm_therm_attr_set()
283 therm->bios_sensor.thrs_critical.temp = value; in nvkm_therm_attr_set()
287 therm->bios_sensor.thrs_critical.hysteresis = value; in nvkm_therm_attr_set()
291 therm->bios_sensor.thrs_shutdown.temp = value; in nvkm_therm_attr_set()
295 therm->bios_sensor.thrs_shutdown.hysteresis = value; in nvkm_therm_attr_set()