/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/acpi/ |
H A D | fan.c | 38 #define ACPI_FAN_CLASS "fan" 42 ACPI_MODULE_NAME("fan"); 54 .name = "fan", 77 struct acpi_fan *fan = seq->private; local 81 if (fan) { 82 if (acpi_bus_get_power(fan->device->handle, &state)) 102 struct acpi_fan *fan = m->private; local 106 if (!fan || (count > sizeof(state_string) - 1)) 114 result = acpi_bus_set_power(fan->device->handle, 181 struct acpi_fan *fan local 224 struct acpi_fan *fan = NULL; local [all...] |
H A D | Makefile | 46 obj-$(CONFIG_ACPI_FAN) += fan.o
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/macintosh/ |
H A D | therm_windtunnel.c | 7 * The G4 "windtunnel" has a single fan controlled by an 8 * ADM1030 fan controller and a DS1775 thermostat. 10 * The fan controller is equipped with a temperature sensor 13 * behavior of the fan. It is based upon empirical observations 71 struct i2c_client *fan; member in struct:__anon4829 73 int overheat_temp; /* 100% fan at this temp */ 92 { 11, T(0,0), 11 }, /* min fan */ 171 /* write_reg( x.fan, 0x24, val, 1 ); */ 172 write_reg( x.fan, 0x25, val, 1 ); 173 write_reg( x.fan, [all...] |
H A D | windfarm_smu_controls.c | 65 /* The SMU has an "old" and a "new" way of setting the fan speed 101 printk(KERN_WARNING "windfarm: SMU failed new fan command " 190 !strcmp(l, "Rear fan 0") || !strcmp(l, "Rear fan") || 192 fct->ctrl.name = "cpu-rear-fan-0"; 193 else if (!strcmp(l, "Rear Fan 1") || !strcmp(l, "Rear fan 1") || 195 fct->ctrl.name = "cpu-rear-fan-1"; 197 !strcmp(l, "Front fan 0") || !strcmp(l, "Front fan") || 199 fct->ctrl.name = "cpu-front-fan 254 struct device_node *smu, *fans, *fan; local [all...] |
H A D | therm_adt746x.c | 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) argument 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 [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/ |
H A D | i8k.c | 74 MODULE_PARM_DESC(restricted, "Allow fan control if SYS_ADMIN capability set"); 196 * Read the fan status. 198 static int i8k_get_fan_status(int fan) argument 202 regs.ebx = fan & 0xff; 207 * Read the fan speed in RPM. 209 static int i8k_get_fan_speed(int fan) argument 213 regs.ebx = fan & 0xff; 218 * Set the fan speed (off, low, high). Returns the new fan status. 220 static int i8k_set_fan(int fan, in argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/hwmon/ |
H A D | lm63.c | 3 * with integrated fan control 9 * fan, those speed it can additionally control. Complete datasheet can be 13 * The LM63 is basically an LM86 with fan speed monitoring and control 164 u16 fan[2]; /* 0: input member in struct:lm63_data 187 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index])); 198 data->fan[1] = FAN_TO_REG(val); 200 data->fan[1] & 0xFF); 202 data->fan[1] >> 8); 585 data->fan[0] = i2c_smbus_read_byte_data(client, 587 data->fan[ [all...] |
H A D | smsc47b397.c | 105 u16 fan[4]; member in struct:smsc47b397_data 130 /* 4 temperature inputs, 4 fan inputs */ 136 data->fan[i] = smsc47b397_read_value(data, 138 data->fan[i] |= smsc47b397_read_value(data, 185 return sprintf(buf, "%d\n", fan_from_reg(data->fan[attr->index]));
|
H A D | adm1029.c | 8 * Give only processor, motherboard temperatures and fan tachs 151 u8 fan[ARRAY_SIZE(ADM1029_REG_FAN)]; member in struct:adm1029_data 173 if (data->fan[attr->index] == 0 || data->fan_div[attr->index] == 0 174 || data->fan[attr->index] == 255) { 179 / data->fan[attr->index]; 469 data->fan[nr] =
|
H A D | adm9240.c | 19 * Fans 2 fans, low speed alarm, automatic fan clock divider 110 /* two fans, each with low fan speed limit */ 162 u8 fan[2]; /* ro fan1_input */ member in struct:adm9240_data 296 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index], 317 /* write new fan div, callers must hold data->update_lock */ 328 dev_dbg(&client->dev, "fan%d clock divider changed from %u " 333 * set fan speed low limit: 335 * - value is zero: disable fan speed low limit alarm 337 * - value is below fan speed measurement range: enable fan spee 398 #define fan macro [all...] |
H A D | vt8231.c | 163 u8 fan[2]; /* Register value */ member in struct:vt8231_data 461 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], 525 /* Correct the fan minimum speed */ 537 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 539 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \ 541 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 842 data->fan[i] = vt8231_read_value(client, 870 if (!data->fan[0] && data->fan_min[0]) { 872 } else if (data->fan[0] && !data->fan_min[0]) { 876 if (!data->fan[ [all...] |
H A D | applesmc.c | 3 * sensors, fan control, keyboard backlight control) used in Intel-based Apple 90 /* List of keys used to read/write fan speeds */ 965 * Macro defining SENSOR_DEVICE_ATTR for a fan sysfs entries. 974 static SENSOR_DEVICE_ATTR_2(fan##offset##_input, S_IRUGO, \ 977 static SENSOR_DEVICE_ATTR_2(fan##offset##_min, S_IRUGO | S_IWUSR, \ 980 static SENSOR_DEVICE_ATTR_2(fan##offset##_max, S_IRUGO, \ 983 static SENSOR_DEVICE_ATTR_2(fan##offset##_safe, S_IRUGO, \ 986 static SENSOR_DEVICE_ATTR_2(fan##offset##_output, S_IRUGO | S_IWUSR, \ 989 static SENSOR_DEVICE_ATTR(fan##offset##_manual, S_IRUGO | S_IWUSR, \ 992 static SENSOR_DEVICE_ATTR(fan##offse [all...] |
H A D | adm1026.c | 64 MODULE_PARM_DESC(gpio_fan,"List of GPIO pins (0-7) to program as fan tachs"); 201 * and we assume a 2 pulse-per-rev fan tach signal 280 u8 fan[8]; /* Register value */ member in struct:adm1026_data 431 * so that enabling automatic pwm fan control 433 * will not result in potentially dangerous fan speed decrease. 575 data->fan[i] = 834 /* Now add fan read/write functions */ 842 return sprintf(buf,"%d\n", FAN_FROM_REG(data->fan[nr], 872 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_fan, NULL, \ 874 static SENSOR_DEVICE_ATTR(fan##offse 887 fixup_fan_min(struct device *dev, int fan, int old_div) argument [all...] |
H A D | lm85.c | 193 * Some chips filter the temp, others the fan. 281 #define PPR_MASK(fan) (0x03<<(fan *2)) 282 #define PPR_TO_REG(val,fan) (SENSORS_LIMIT((val)-1,0,3)<<(fan *2)) 283 #define PPR_FROM_REG(val,fan) ((((val)>>(fan * 2))&0x03)+1) 293 * given the automatic PWM fan control that is possible. There 301 /* LM85 can automatically adjust fan speeds based on temperature 346 u16 fan[ member in struct:lm85_data [all...] |
H A D | adm1031.c | 79 * auto fan control. 85 u8 fan[2]; member in struct:adm1031_data 184 /* The tables below contains the possible values for the auto fan 186 * MSb is the auto fan control enable bit, so the four first entries 187 * in the table disables auto fan control when both bitfields are zero. 444 * That function checks the cases where the fan reading is not 445 * relevant. It is used to provide 0 as fan reading when the fan is 491 value = trust_fan_readings(data, nr) ? FAN_FROM_REG(data->fan[nr], 550 data->fan[n [all...] |
H A D | vt1211.c | 99 /* In, temp & fan alarm bits */ 124 u8 fan[2]; member in struct:vt1211_data 277 /* fan & pwm registers */ 278 for (ix = 0; ix < ARRAY_SIZE(data->fan); ix++) { 279 data->fan[ix] = vt1211_read8(data, 486 res = RPM_FROM_REG(data->fan[ix], data->fan_div[ix]); 538 dev_warn(dev, "fan div value %ld not " 971 SENSOR_ATTR_2(fan##ix##_input, S_IRUGO, \ 973 SENSOR_ATTR_2(fan##ix##_min, S_IRUGO | S_IWUSR, \ 975 SENSOR_ATTR_2(fan##i [all...] |
H A D | asb100.c | 199 u8 fan[3]; /* Register value */ member in struct:asb100_data 305 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], 336 /* Note: we save and restore the fan minimum here, because its value is 337 determined in part by the fan divisor. This follows the principle of 338 least surprise; the user doesn't expect the fan minimum to change just 356 case 0: /* fan 1 */ 362 case 1: /* fan 2 */ 368 case 2: /* fan 3 */ 407 static DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 409 static DEVICE_ATTR(fan##offse [all...] |
H A D | lm87.c | 36 * control the speed of a fan. All new chips use pulse width modulation 197 u8 fan[2]; /* register value */ member in struct:lm87_data 390 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[offset-1], \ 404 static DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 422 /* Note: we save and restore the fan minimum here, because its value is 423 determined in part by the fan clock divider. This follows the principle 424 of least surprise; the user doesn't expect the fan minimum to change just 480 static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 482 static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \ 863 data->fan[ [all...] |
H A D | smsc47m1.c | 124 u8 fan[3]; /* Register value */ member in struct:smsc47m1_data 167 /* This chip (stupidly) stops monitoring fan speed if PWM is 169 and control concern the same fan, but troublesome if they are 172 FAN_FROM_REG(data->fan[nr], 244 /* Note: we save and restore the fan minimum here, because its value is 245 determined in part by the fan clock divider. This follows the principle 246 of least surprise; the user doesn't expect the fan minimum to change just 286 /* Preserve fan min */ 340 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, get_fan, \ 342 static SENSOR_DEVICE_ATTR(fan##offse [all...] |
H A D | via686a.c | 158 /* Higher register values = slower fans (the fan's strobe gates a counter). 307 u8 fan[2]; /* Register value */ member in struct:via686a_data 494 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], 557 static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_fan_##offset, NULL);\ 558 static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 560 static DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \ 768 data->fan[i - 1] =
|
H A D | it87.c | 50 #define PME 0x04 /* The device with the fan registers in it */ 143 /* Monitors: 9 voltage (0 to 7, battery), 3 temp (1 to 3), 3 fan (1 to 3) */ 232 u16 fan[3]; /* Register values, possibly combined */ member in struct:it87_data 491 return sprintf(buf,"%d\n", FAN_FROM_REG(data->fan[nr], 578 /* Save fan min limit */ 599 /* Restore fan min limit */ 620 /* make sure the fan is on when in on/off mode */ 684 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 686 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 688 static SENSOR_DEVICE_ATTR(fan##offse [all...] |
H A D | w83793.c | 196 u16 fan[12]; /* Register value combine */ member in struct:w83793_data 203 u8 temp_critical; /* If reached all fan will be at full speed */ 204 u8 temp_fan_map[6]; /* Temp controls which pwm fan, bit field */ 212 u8 pwm_default; /* All fan default pwm, next poweron valid */ 381 val = data->fan[index] & 0x0fff; 650 Temp channel control which pwm fan, bitfield, bit 0 indicate pwm1... 651 It's possible two or more temp channels control the same fan, w83793 654 It's possible one fan is not in any mapping of 6 temp channels, this 655 means the fan is manual mode 665 fan spee [all...] |
H A D | lm78.c | 145 u8 fan[3]; /* Register value */ member in struct:lm78_data 320 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], 357 /* Note: we save and restore the fan minimum here, because its value is 358 determined in part by the fan divisor. This follows the principle of 359 least surprise; the user doesn't expect the fan minimum to change just 407 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 409 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 775 data->fan[i] =
|
H A D | lm80.c | 119 u8 fan[2]; /* Register value */ member in struct:lm80_data 225 show_fan(input1, fan[0], fan_div[0]); 226 show_fan(input2, fan[1], fan_div[1]); 254 /* Note: we save and restore the fan minimum here, because its value is 255 determined in part by the fan divisor. This follows the principle of 256 least surprise; the user doesn't expect the fan minimum to change just 546 This sets fan-divs to 2, among others. This makes most other 574 data->fan[0] = lm80_read_value(client, LM80_REG_FAN1); 577 data->fan[1] = lm80_read_value(client, LM80_REG_FAN2);
|
H A D | sis5595.c | 181 u8 fan[2]; /* Register value */ member in struct:sis5595_data 350 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr], 381 /* Note: we save and restore the fan minimum here, because its value is 382 determined in part by the fan divisor. This follows the principle of 383 least surprise; the user doesn't expect the fan minimum to change just 445 static DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_fan_##offset, NULL);\ 446 static DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 727 data->fan[i] =
|