Lines Matching refs:fan

40 	struct nvbios_therm_trip_point *trip = therm->fan->bios.trip,  in nvkm_therm_update_trip()
48 for (i = 0; i < therm->fan->bios.nr_fan_trip; i++) { in nvkm_therm_update_trip()
78 return therm->fan->bios.min_duty; in nvkm_therm_compute_linear_duty()
80 return therm->fan->bios.max_duty; in nvkm_therm_compute_linear_duty()
84 duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty); in nvkm_therm_compute_linear_duty()
86 duty += therm->fan->bios.min_duty; in nvkm_therm_compute_linear_duty()
93 u8 min = therm->fan->bios.linear_min_temp; in nvkm_therm_update_linear()
94 u8 max = therm->fan->bios.linear_max_temp; in nvkm_therm_update_linear()
129 switch(therm->fan->bios.fan_mode) { in nvkm_therm_update()
164 nvkm_therm_cstate(struct nvkm_therm *therm, int fan, int dir) in nvkm_therm_cstate() argument
167 if (!dir || (dir < 0 && fan < therm->cstate) || in nvkm_therm_cstate()
168 (dir > 0 && fan > therm->cstate)) { in nvkm_therm_cstate()
169 nvkm_debug(subdev, "default fan speed -> %d%%\n", fan); in nvkm_therm_cstate()
170 therm->cstate = fan; in nvkm_therm_cstate()
219 return therm->fan->bios.min_duty; in nvkm_therm_attr_get()
221 return therm->fan->bios.max_duty; in nvkm_therm_attr_get()
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()
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()
386 nvkm_therm_fan_set(therm, true, therm->fan->percent); in nvkm_therm_init()
410 kfree(therm->fan); in nvkm_therm_dtor()