Lines Matching full:duty
44 u16 duty, i; in nvkm_therm_update_trip() local
59 duty = cur_trip->fan_duty; in nvkm_therm_update_trip()
62 duty = 0; in nvkm_therm_update_trip()
66 return duty; in nvkm_therm_update_trip()
74 u16 duty; in nvkm_therm_compute_linear_duty() local
83 duty = (temp - linear_min_temp); in nvkm_therm_compute_linear_duty()
84 duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty); in nvkm_therm_compute_linear_duty()
85 duty /= (linear_max_temp - linear_min_temp); in nvkm_therm_compute_linear_duty()
86 duty += therm->fan->bios.min_duty; in nvkm_therm_compute_linear_duty()
87 return duty; in nvkm_therm_compute_linear_duty()
113 int duty = -1; in nvkm_therm_update() local
123 duty = nvkm_therm_fan_get(therm); in nvkm_therm_update()
124 if (duty < 0) in nvkm_therm_update()
125 duty = 100; in nvkm_therm_update()
131 duty = nvkm_therm_update_trip(therm); in nvkm_therm_update()
134 duty = nvkm_therm_update_linear(therm); in nvkm_therm_update()
138 duty = therm->cstate; in nvkm_therm_update()
141 duty = nvkm_therm_update_linear_fallback(therm); in nvkm_therm_update()
157 if (duty >= 0) { in nvkm_therm_update()
158 nvkm_debug(subdev, "FAN target request: %d%%\n", duty); in nvkm_therm_update()
159 nvkm_therm_fan_set(therm, immd, duty); in nvkm_therm_update()