Lines Matching refs:fan
40 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip,
48 for (i = 0; i < therm->fan->bios.nr_fan_trip; i++) {
78 return therm->fan->bios.min_duty;
80 return therm->fan->bios.max_duty;
84 duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty);
86 duty += therm->fan->bios.min_duty;
93 u8 min = therm->fan->bios.linear_min_temp;
94 u8 max = therm->fan->bios.linear_max_temp;
129 switch(therm->fan->bios.fan_mode) {
164 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir)
167 if (!dir || (dir < 0 && fan < therm->cstate) ||
168 (dir > 0 && fan > therm->cstate)) {
169 nvkm_debug(subdev, "default fan speed -> %d%%\n", fan);
170 therm->cstate = fan;
195 /* The default PPWR ucode on fermi interferes with fan management */
200 /* do not allow automatic fan management if the thermal sensor is
209 nvkm_debug(subdev, "fan management: %s\n", name[mode]);
219 return therm->fan->bios.min_duty;
221 return therm->fan->bios.max_duty;
253 if (value > therm->fan->bios.max_duty)
254 value = therm->fan->bios.max_duty;
255 therm->fan->bios.min_duty = value;
260 if (value < therm->fan->bios.min_duty)
261 value = therm->fan->bios.min_duty;
262 therm->fan->bios.max_duty = value;
386 nvkm_therm_fan_set(therm, true, therm->fan->percent);
410 kfree(therm->fan);