• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/macintosh/

Lines Matching refs:thermostat

2  * Device driver for the i2c thermostat found on the iBook G4, Albook G4
58 MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
74 struct thermostat {
88 static struct thermostat* thermostat;
91 static void write_both_fan_speed(struct thermostat *th, int speed);
92 static void write_fan_speed(struct thermostat *th, int speed, int fan);
97 write_reg(struct thermostat* th, int reg, u8 data)
113 read_reg(struct thermostat* th, int reg)
163 struct thermostat *th = i2c_get_clientdata(client);
183 thermostat = NULL;
190 static int read_fan_speed(struct thermostat *th, u8 addr)
204 static void write_both_fan_speed(struct thermostat *th, int speed)
211 static void write_fan_speed(struct thermostat *th, int speed, int fan)
261 static void read_sensors(struct thermostat *th)
270 static void display_stats(struct thermostat *th)
289 static void update_fans_speed (struct thermostat *th)
346 struct thermostat* th = arg;
372 static void set_limit(struct thermostat *th, int i)
385 struct thermostat* th;
389 if (thermostat)
392 th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
428 thermostat = th;
492 thermostat->last_speed[data], \
493 read_fan_speed(thermostat, FAN_SPEED[data]) \
506 set_limit(thermostat, i); \
522 BUILD_SHOW_FUNC_INT(sensor1_temperature, (read_reg(thermostat, TEMP_REG[1])))
523 BUILD_SHOW_FUNC_INT(sensor2_temperature, (read_reg(thermostat, TEMP_REG[2])))
524 BUILD_SHOW_FUNC_INT(sensor1_limit, thermostat->limits[1])
525 BUILD_SHOW_FUNC_INT(sensor2_limit, thermostat->limits[2])
535 BUILD_STORE_FUNC_DEG(limit_adjust, thermostat)