Lines Matching full:fan
62 &enable_pmac_thermal, 1, "Enable automatic fan management");
66 struct pmac_fan *fan; member
99 struct pmac_fan_le *fan; in pmac_therm_manage_fans() local
140 SLIST_FOREACH(fan, &fans, entries) { in pmac_therm_manage_fans()
151 if (sensor->sensor->zone == fan->fan->zone) { in pmac_therm_manage_fans()
166 fan->fan->set(fan->fan, fan->fan->default_rpm); in pmac_therm_manage_fans()
171 * Scale the fan linearly in the max temperature in its in pmac_therm_manage_fans()
176 (fan->fan->max_rpm - fan->fan->min_rpm)/100 + in pmac_therm_manage_fans()
177 fan->fan->min_rpm; in pmac_therm_manage_fans()
178 if (fan_speed >= fan->last_val) { in pmac_therm_manage_fans()
179 fan->timer = FAN_HYSTERESIS_TIMER; in pmac_therm_manage_fans()
180 fan->last_val = fan_speed; in pmac_therm_manage_fans()
182 fan->timer--; in pmac_therm_manage_fans()
183 if (fan->timer == 0) { in pmac_therm_manage_fans()
184 fan->last_val = fan_speed; in pmac_therm_manage_fans()
185 fan->timer = FAN_HYSTERESIS_TIMER; in pmac_therm_manage_fans()
188 fan->fan->set(fan->fan, fan->last_val); in pmac_therm_manage_fans()
193 pmac_thermal_fan_register(struct pmac_fan *fan) in pmac_thermal_fan_register() argument
199 list_entry->fan = fan; in pmac_thermal_fan_register()