Lines Matching refs:fan
66 MODULE_PARM_DESC(fan_speed,"Specify starting fan speed (0-255) "
93 static void write_fan_speed(struct thermostat *th, int speed, int fan);
195 /* "a value of 0xffff means that the fan has stopped" */
206 static void write_fan_speed(struct thermostat *th, int speed, int fan)
215 if (therm_type == ADT7467 && fan == 1)
218 if (th->last_speed[fan] != speed) {
222 "for %s fan.\n", sensor_location[fan+1]);
225 "for %s fan.\n", speed, sensor_location[fan+1]);
231 manual = read_reg(th, MANUAL_MODE[fan]);
232 write_reg(th, MANUAL_MODE[fan], manual|MANUAL_MASK);
233 write_reg(th, FAN_SPD_SET[fan], speed);
238 MANUAL_MODE[fan]) & (~MANUAL_MASK);
241 MANUAL_MODE[fan], manual|REM_CONTROL[fan]);
243 manual = read_reg(th, MANUAL_MODE[fan]);
244 write_reg(th, MANUAL_MODE[fan], manual&(~AUTO_MASK));
248 th->last_speed[fan] = speed;
268 " fan speed: %d RPM\n",
294 /* hysteresis : change fan speed only if variation is
315 /* don't stop fan if sensor2 is cold and sensor1 is not
329 return; /* we don't want to re-stop the fan
402 /* force manual control to start the fan quieter */
434 /* be sure to really write fan speed the first time */
500 printk(KERN_INFO "Setting specified fan speed to %d\n", val); \
552 np = of_find_node_by_name(NULL, "fan");