Lines Matching defs:fan
68 MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) "
93 static void write_fan_speed(struct thermostat *th, int speed, int fan);
139 /* "a value of 0xffff means that the fan has stopped" */
150 static void write_fan_speed(struct thermostat *th, int speed, int fan)
159 if (th->type == ADT7467 && fan == 1)
162 if (th->last_speed[fan] != speed) {
166 "for %s fan.\n", sensor_location[fan+1]);
169 "for %s fan.\n", speed, sensor_location[fan+1]);
175 manual = read_reg(th, MANUAL_MODE[fan]);
177 write_reg(th, MANUAL_MODE[fan],
178 manual | MANUAL_MASK | th->pwm_inv[fan]);
179 write_reg(th, FAN_SPD_SET[fan], speed);
184 MANUAL_MODE[fan]) & (~MANUAL_MASK);
186 manual |= th->pwm_inv[fan];
188 MANUAL_MODE[fan], manual|REM_CONTROL[fan]);
190 manual = read_reg(th, MANUAL_MODE[fan]);
192 manual |= th->pwm_inv[fan];
193 write_reg(th, MANUAL_MODE[fan], manual&(~AUTO_MASK));
197 th->last_speed[fan] = speed;
217 " fan speed: %d RPM\n",
243 /* hysteresis : change fan speed only if variation is
264 /* don't stop fan if sensor2 is cold and sensor1 is not
278 return; /* we don't want to re-stop the fan
371 printk(KERN_INFO "Setting specified fan speed to %d\n", val); \
516 /* force manual control to start the fan quieter */
542 /* be sure to really write fan speed the first time */