/Linux-v4.19/drivers/hwmon/ |
D | emc6w201.c | 269 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 377 static SENSOR_DEVICE_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, input); 378 static SENSOR_DEVICE_ATTR_2(fan1_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 380 static SENSOR_DEVICE_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 1, input); 381 static SENSOR_DEVICE_ATTR_2(fan2_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 383 static SENSOR_DEVICE_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 2, input); 384 static SENSOR_DEVICE_ATTR_2(fan3_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 386 static SENSOR_DEVICE_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 3, input); 387 static SENSOR_DEVICE_ATTR_2(fan4_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 389 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 | 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 | tc654.c | 203 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function 426 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 427 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
|
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 | 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 | it87.c | 1118 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 1633 static SENSOR_DEVICE_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, 0); 1634 static SENSOR_DEVICE_ATTR_2(fan1_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1639 static SENSOR_DEVICE_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 1, 0); 1640 static SENSOR_DEVICE_ATTR_2(fan2_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1645 static SENSOR_DEVICE_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 2, 0); 1646 static SENSOR_DEVICE_ATTR_2(fan3_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1651 static SENSOR_DEVICE_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 3, 0); 1652 static SENSOR_DEVICE_ATTR_2(fan4_min, S_IRUGO | S_IWUSR, show_fan, set_fan, 1655 static SENSOR_DEVICE_ATTR_2(fan5_input, S_IRUGO, show_fan, NULL, 4, 0); [all …]
|
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 | 1151 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 1); 1152 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 2); 1153 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 3); 1154 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 4); 1155 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 5); 1156 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 6); 1157 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 7);
|
D | dme1737.c | 1093 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 1585 show_fan, NULL, SYS_FAN_INPUT, ix-1); \ 1587 show_fan, set_fan, SYS_FAN_MIN, ix-1); \ 1589 show_fan, NULL, SYS_FAN_ALARM, ix-1); \ 1591 show_fan, set_fan, SYS_FAN_TYPE, ix-1) 1602 show_fan, NULL, SYS_FAN_INPUT, ix-1); \ 1604 show_fan, set_fan, SYS_FAN_MIN, ix-1); \ 1606 show_fan, NULL, SYS_FAN_ALARM, ix-1); \ 1608 show_fan, set_fan, SYS_FAN_MAX, ix-1)
|
D | adt7470.c | 642 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 1108 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 1109 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1); 1110 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2); 1111 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
|
D | nct7802.c | 413 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function 810 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0x10); 816 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 0x11); 822 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 | lm63.c | 344 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function 753 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0); 754 static SENSOR_DEVICE_ATTR(fan1_min, S_IWUSR | S_IRUGO, show_fan,
|
D | adm9240.c | 395 static ssize_t show_fan(struct device *dev, in show_fan() function 494 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 | 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 | w83627ehf.c | 1045 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function 1168 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0), 1169 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1), 1170 SENSOR_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2), 1171 SENSOR_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3), 1172 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); \
|