Searched refs:fan (Results 1 - 25 of 40) sorted by path

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/acpi/
H A DMakefile46 obj-$(CONFIG_ACPI_FAN) += fan.o
H A Dfan.c38 #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...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/
H A Di8k.c74 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 Dabituguru.c57 #define ABIT_UGURU_FAN_LOW_ALARM_ENABLE 0x01 /* fan under min */
61 /* uGuru fan PWM (speed control) flags */
97 /* sum of strlen of: fan?_input\0, fan?_min\0, fan?_alarm\0,
98 fan?_alarm_enable\0, fan?_beep\0, fan?_shutdown\0 */
129 /* Min / Max allowed values for sensor2 (fan) alarm threshold, these values
136 /* Min / Max allowed values for pwm_settings. Note: pwm1 (CPU fan) i
[all...]
H A Dadm1026.c64 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 Dadm1029.c8 * 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 Dadm1031.c79 * 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 Dadm9240.c19 * 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 Dapplesmc.c3 * 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 Dasb100.c199 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 Df71805f.c7 * complete hardware monitoring features: voltage, fan and temperature
8 * sensors, and manual and automatic fan speed control.
118 /* fan nr from 0 to 2 (12-bit values, two registers) */
162 u16 fan[3]; member in struct:f71805f_data
359 data->fan[nr] = f71805f_read16(data,
518 return sprintf(buf, "%ld\n", fan_from_reg(data->fan[nr]));
1115 /* Clear latch full bit, else "speed mode" fan speed control
H A Dfscher.c70 /* fan 0 */
76 /* fan 1 */
82 /* fan 2 */
151 u8 fan_status[3]; /* fan status */
152 u8 fan_min[3]; /* fan min value for rps */
199 sysfs_rw_n(fan, _status, offset, reg_status) \
200 sysfs_rw_n(fan, _div , offset, reg_ripple) \
201 sysfs_ro_n(fan, _input , offset, reg_act)
H A Dfscpos.c134 u8 fan_status[3]; /* fan status */
135 u8 pwm[2]; /* fan min value for rps */
404 sysfs_ro_n(fan, _input, offset); \
405 sysfs_ro_n(fan, _status, offset); \
406 sysfs_rw_n(fan, _ripple, offset, reg_ripple);
623 /* reset fan status if speed is back to > 0 */
H A Dgl520sm.c200 sysfs_ro_n(fan, n, _input, GL520_REG_FAN_INPUT) \
201 sysfs_rw_n(fan, n, _min, GL520_REG_FAN_MIN) \
202 sysfs_rw_n(fan, n, _div, GL520_REG_FAN_DIV)
205 sysfs_rw_n(fan, n, _off, GL520_REG_FAN_OFF) \
H A Dit87.c50 #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 Dlm63.c3 * 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 Dlm78.c145 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 Dlm80.c119 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 Dlm85.c193 * 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 Dlm87.c36 * 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 Dpc87360.c25 * Chip #vin #fan #pwm #temp devid
196 u8 fan[3]; /* Register value */ member in struct:pc87360_data
256 return sprintf(buf, "%u\n", FAN_FROM_REG(data->fan[attr->index],
295 data->fan[attr->index] >>= 1;
1278 || (data->fan[nr] >= 224)) { /* next to overflow */
1282 data->fan[nr] >>= 1;
1284 "clock divider to %d for fan %d\n",
1290 && data->fan[nr] < 85 /* bad accuracy */
1294 data->fan[nr] <<= 1;
1296 "clock divider to %d for fan
[all...]
H A Dpc87427.c17 * Chip #vin #fan #pwm #temp devid
21 * Only fan inputs are supported so far, although the chip can do much more.
52 u16 fan[8]; /* register values */ member in struct:pc87427_data
131 /* fan data registers are 16-bit wide */
140 /* Dedicated function to read all registers related to a given fan input.
149 data->fan[nr] = inw(iobase + PC87427_REG_FAN);
152 /* Clear fan alarm bits */
156 /* The 2 LSB of fan speed registers are used for something different.
166 /* The 2 LSB of the fan speed limit registers are not significant. */
210 return sprintf(buf, "%lu\n", fan_from_reg(data->fan[n
[all...]
H A Dsis5595.c181 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] =
H A Dsmsc47b397.c105 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 Dsmsc47m1.c124 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...]

Completed in 163 milliseconds

12