Lines Matching defs:fan
67 MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) "
92 static void write_fan_speed(struct thermostat *th, int speed, int fan);
138 /* "a value of 0xffff means that the fan has stopped" */
149 static void write_fan_speed(struct thermostat *th, int speed, int fan)
158 if (th->type == ADT7467 && fan == 1)
161 if (th->last_speed[fan] != speed) {
165 "for %s fan.\n", sensor_location[fan+1]);
168 "for %s fan.\n", speed, sensor_location[fan+1]);
174 manual = read_reg(th, MANUAL_MODE[fan]);
176 write_reg(th, MANUAL_MODE[fan],
177 manual | MANUAL_MASK | th->pwm_inv[fan]);
178 write_reg(th, FAN_SPD_SET[fan], speed);
183 MANUAL_MODE[fan]) & (~MANUAL_MASK);
185 manual |= th->pwm_inv[fan];
187 MANUAL_MODE[fan], manual|REM_CONTROL[fan]);
189 manual = read_reg(th, MANUAL_MODE[fan]);
191 manual |= th->pwm_inv[fan];
192 write_reg(th, MANUAL_MODE[fan], manual&(~AUTO_MASK));
196 th->last_speed[fan] = speed;
216 " fan speed: %d RPM\n",
242 /* hysteresis : change fan speed only if variation is
263 /* don't stop fan if sensor2 is cold and sensor1 is not
277 return; /* we don't want to re-stop the fan
370 printk(KERN_INFO "Setting specified fan speed to %d\n", val); \
515 /* force manual control to start the fan quieter */
541 /* be sure to really write fan speed the first time */