Lines Matching refs:fan
37 struct nvbios_therm_trip_point *trip = therm->fan->bios.trip, in nvkm_therm_update_trip()
45 for (i = 0; i < therm->fan->bios.nr_fan_trip; i++) { in nvkm_therm_update_trip()
69 u8 linear_min_temp = therm->fan->bios.linear_min_temp; in nvkm_therm_update_linear()
70 u8 linear_max_temp = therm->fan->bios.linear_max_temp; in nvkm_therm_update_linear()
76 return therm->fan->bios.min_duty; in nvkm_therm_update_linear()
78 return therm->fan->bios.max_duty; in nvkm_therm_update_linear()
82 duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty); in nvkm_therm_update_linear()
84 duty += therm->fan->bios.min_duty; in nvkm_therm_update_linear()
112 switch(therm->fan->bios.fan_mode) { in nvkm_therm_update()
144 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) in nvkm_therm_cstate() argument
147 if (!dir || (dir < 0 && fan < therm->cstate) || in nvkm_therm_cstate()
148 (dir > 0 && fan > therm->cstate)) { in nvkm_therm_cstate()
149 nvkm_debug(subdev, "default fan speed -> %d%%\n", fan); in nvkm_therm_cstate()
150 therm->cstate = fan; in nvkm_therm_cstate()
200 return therm->fan->bios.min_duty; in nvkm_therm_attr_get()
202 return therm->fan->bios.max_duty; in nvkm_therm_attr_get()
234 if (value > therm->fan->bios.max_duty) in nvkm_therm_attr_set()
235 value = therm->fan->bios.max_duty; in nvkm_therm_attr_set()
236 therm->fan->bios.min_duty = value; in nvkm_therm_attr_set()
241 if (value < therm->fan->bios.min_duty) in nvkm_therm_attr_set()
242 value = therm->fan->bios.min_duty; in nvkm_therm_attr_set()
243 therm->fan->bios.max_duty = value; in nvkm_therm_attr_set()
333 nvkm_therm_fan_set(therm, true, therm->fan->percent); in nvkm_therm_init()
347 kfree(therm->fan); in nvkm_therm_dtor()