/linux-4.4.14/drivers/hwmon/ |
D | nct7904.c | 157 static ssize_t show_fan(struct device *dev, in show_fan() function 187 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 188 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 189 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 190 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3); 191 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4); 192 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 5); 193 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 6); 194 static SENSOR_DEVICE_ATTR(fan8_input, S_IRUGO, show_fan, NULL, 7); 195 static SENSOR_DEVICE_ATTR(fan9_input, S_IRUGO, show_fan, NULL, 8); [all …]
|
D | emc6w201.c | 267 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 375 static SENSOR_DEVICE_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, input); 376 static SENSOR_DEVICE_ATTR_2(fan1_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 378 static SENSOR_DEVICE_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 1, input); 379 static SENSOR_DEVICE_ATTR_2(fan2_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 381 static SENSOR_DEVICE_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 2, input); 382 static SENSOR_DEVICE_ATTR_2(fan3_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 384 static SENSOR_DEVICE_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 3, input); 385 static SENSOR_DEVICE_ATTR_2(fan4_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 387 static SENSOR_DEVICE_ATTR_2(fan5_input, S_IRUGO, show_fan, NULL, 4, input); [all …]
|
D | smsc47b397.c | 191 static ssize_t show_fan(struct device *dev, struct device_attribute in show_fan() function 198 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 199 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 200 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 201 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
|
D | adm1029.c | 181 show_fan(struct device *dev, struct device_attribute *devattr, char *buf) in show_fan() function 272 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 273 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 275 static SENSOR_DEVICE_ATTR(fan1_min, S_IRUGO, show_fan, NULL, 2); 276 static SENSOR_DEVICE_ATTR(fan2_min, S_IRUGO, show_fan, NULL, 3);
|
D | g760a.c | 110 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function 161 static DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL);
|
D | f75375s.c | 658 #define show_fan(thing) \ macro 667 show_fan(fan); 668 show_fan(fan_min); 669 show_fan(fan_max); 670 show_fan(fan_target); 702 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 708 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
|
D | sch5627.c | 262 static ssize_t show_fan(struct device *dev, struct device_attribute in show_fan() function 363 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 364 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 365 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 366 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
|
D | lm80.c | 306 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 490 show_fan, set_fan_min, f_min, 0); 492 show_fan, set_fan_min, f_min, 1); 493 static SENSOR_DEVICE_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, f_input, 0); 494 static SENSOR_DEVICE_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, f_input, 1);
|
D | it87.c | 854 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 1278 static SENSOR_DEVICE_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, 0); 1279 static SENSOR_DEVICE_ATTR_2(fan1_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1284 static SENSOR_DEVICE_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 1, 0); 1285 static SENSOR_DEVICE_ATTR_2(fan2_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1290 static SENSOR_DEVICE_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 2, 0); 1291 static SENSOR_DEVICE_ATTR_2(fan3_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1296 static SENSOR_DEVICE_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 3, 0); 1297 static SENSOR_DEVICE_ATTR_2(fan4_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1300 static SENSOR_DEVICE_ATTR_2(fan5_input, S_IRUGO, show_fan, NULL, 4, 0); [all …]
|
D | adt7462.c | 1060 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 1597 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 1598 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 1599 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 1600 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3); 1601 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4); 1602 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 5); 1603 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 6); 1604 static SENSOR_DEVICE_ATTR(fan8_input, S_IRUGO, show_fan, NULL, 7);
|
D | vt1211.c | 497 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 1015 show_fan, NULL, SHOW_FAN_INPUT, ix-1), \ 1017 show_fan, set_fan, SHOW_SET_FAN_MIN, ix-1), \ 1019 show_fan, set_fan, SHOW_SET_FAN_DIV, ix-1), \ 1021 show_fan, NULL, SHOW_FAN_ALARM, ix-1)
|
D | w83792d.c | 1153 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 1); 1154 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 2); 1155 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 3); 1156 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 4); 1157 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 5); 1158 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 6); 1159 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 7);
|
D | dme1737.c | 1089 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 1581 show_fan, NULL, SYS_FAN_INPUT, ix-1); \ 1583 show_fan, set_fan, SYS_FAN_MIN, ix-1); \ 1585 show_fan, NULL, SYS_FAN_ALARM, ix-1); \ 1587 show_fan, set_fan, SYS_FAN_TYPE, ix-1) 1598 show_fan, NULL, SYS_FAN_INPUT, ix-1); \ 1600 show_fan, set_fan, SYS_FAN_MIN, ix-1); \ 1602 show_fan, NULL, SYS_FAN_ALARM, ix-1); \ 1604 show_fan, set_fan, SYS_FAN_MAX, ix-1)
|
D | adt7470.c | 615 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 1019 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 1020 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 1021 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 1022 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
|
D | nct7802.c | 411 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 808 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0x10); 814 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 0x11); 820 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 0x12);
|
D | w83791d.c | 675 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0), 676 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1), 677 SENSOR_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2), 678 SENSOR_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3), 679 SENSOR_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4),
|
D | f71882fg.c | 320 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, 595 SENSOR_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, 0), 606 SENSOR_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 0, 1), 617 SENSOR_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 0, 2), 628 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3), 642 SENSOR_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 0, 2), 983 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3), 1384 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
|
D | emc2103.c | 287 show_fan(struct device *dev, struct device_attribute *da, char *buf) in show_fan() function 515 static DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL);
|
D | lm63.c | 343 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 751 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 752 static SENSOR_DEVICE_ATTR(fan1_min, S_IWUSR | S_IRUGO, show_fan,
|
D | adm9240.c | 392 static ssize_t show_fan(struct device *dev, in show_fan() function 491 show_fan, NULL, nr - 1); \
|
D | w83l786ng.c | 397 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0), 398 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1),
|
D | sis5595.c | 371 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function 485 show_fan, NULL, offset - 1); \
|
D | via686a.c | 507 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function 573 show_fan, NULL, offset - 1); \
|
D | f71805f.c | 570 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 1047 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 1052 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 1057 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
|
D | w83627ehf.c | 1039 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 1162 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0), 1163 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1), 1164 SENSOR_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2), 1165 SENSOR_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3), 1166 SENSOR_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4),
|
D | asb100.c | 300 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 404 show_fan, NULL, offset - 1); \
|
D | lm78.c | 303 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function 418 show_fan, NULL, offset - 1); \
|
D | vt8231.c | 496 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 596 show_fan, NULL, offset - 1); \
|
D | adm1031.c | 576 static ssize_t show_fan(struct device *dev, in show_fan() function 678 show_fan, NULL, offset - 1); \
|
D | nct6683.c | 712 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 761 SENSOR_TEMPLATE(fan_input, "fan%d_input", S_IRUGO, show_fan, NULL, 0);
|
D | w83781d.c | 349 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 352 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 355 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
|
D | w83793.c | 478 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 1047 SENSOR_ATTR_2(fan##index##_input, S_IRUGO, show_fan, \ 1050 show_fan, store_fan_min, FAN_MIN, index - 1)
|
D | w83795.c | 788 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 1640 SENSOR_ATTR_2(fan##index##_input, S_IRUGO, show_fan, \ 1643 show_fan, store_fan_min, FAN_MIN, index - 1), \
|
D | lm85.c | 557 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 595 show_fan, NULL, offset - 1); \
|
D | adm1026.c | 636 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 677 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, show_fan, NULL, \
|
D | nct6775.c | 1836 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 2023 SENSOR_TEMPLATE(fan_input, "fan%d_input", S_IRUGO, show_fan, NULL, 0);
|