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);
200 /* "a value of 0xffff means that the fan has stopped" */
211 static void write_fan_speed(struct thermostat *th, int speed, int fan)
220 if (therm_type == ADT7467 && fan == 1)
223 if (th->last_speed[fan] != speed) {
227 "for %s fan.\n", sensor_location[fan+1]);
230 "for %s fan.\n", speed, sensor_location[fan+1]);
236 manual = read_reg(th, MANUAL_MODE[fan]);
238 write_reg(th, MANUAL_MODE[fan],
239 manual | MANUAL_MASK | th->pwm_inv[fan]);
240 write_reg(th, FAN_SPD_SET[fan], speed);
245 MANUAL_MODE[fan]) & (~MANUAL_MASK);
247 manual |= th->pwm_inv[fan];
249 MANUAL_MODE[fan], manual|REM_CONTROL[fan]);
251 manual = read_reg(th, MANUAL_MODE[fan]);
253 manual |= th->pwm_inv[fan];
254 write_reg(th, MANUAL_MODE[fan], manual&(~AUTO_MASK));
258 th->last_speed[fan] = speed;
278 " fan speed: %d RPM\n",
304 /* hysteresis : change fan speed only if variation is
325 /* don't stop fan if sensor2 is cold and sensor1 is not
339 return; /* we don't want to re-stop the fan
406 /* force manual control to start the fan quieter */
434 /* be sure to really write fan speed the first time */
517 printk(KERN_INFO "Setting specified fan speed to %d\n", val); \
569 np = of_find_node_by_name(NULL, "fan");