Lines Matching refs:fan
153 nvbios_therm_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan) in nvbios_therm_fan_parse() argument
163 fan->nr_fan_trip = 0; in nvbios_therm_fan_parse()
164 fan->fan_mode = NVBIOS_THERM_FAN_OTHER; in nvbios_therm_fan_parse()
170 fan->min_duty = value & 0xff; in nvbios_therm_fan_parse()
171 fan->max_duty = (value & 0xff00) >> 8; in nvbios_therm_fan_parse()
174 fan->nr_fan_trip++; in nvbios_therm_fan_parse()
175 if (fan->fan_mode > NVBIOS_THERM_FAN_TRIP) in nvbios_therm_fan_parse()
176 fan->fan_mode = NVBIOS_THERM_FAN_TRIP; in nvbios_therm_fan_parse()
177 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
183 cur_trip = &fan->trip[fan->nr_fan_trip - 1]; in nvbios_therm_fan_parse()
187 if (!fan->pwm_freq) in nvbios_therm_fan_parse()
188 fan->pwm_freq = value; in nvbios_therm_fan_parse()
191 fan->bump_period = value; in nvbios_therm_fan_parse()
194 fan->slow_down_period = value; in nvbios_therm_fan_parse()
197 if (fan->fan_mode > NVBIOS_THERM_FAN_LINEAR) in nvbios_therm_fan_parse()
198 fan->fan_mode = NVBIOS_THERM_FAN_LINEAR; in nvbios_therm_fan_parse()
199 fan->linear_min_temp = nvbios_rd08(bios, entry + 1); in nvbios_therm_fan_parse()
200 fan->linear_max_temp = nvbios_rd08(bios, entry + 2); in nvbios_therm_fan_parse()
207 fan->fan_mode == NVBIOS_THERM_FAN_OTHER) { in nvbios_therm_fan_parse()
208 fan->fan_mode = NVBIOS_THERM_FAN_LINEAR; in nvbios_therm_fan_parse()