Home
last modified time | relevance | path

Searched refs:show_fan (Results 1 – 36 of 36) sorted by relevance

/linux-4.4.14/drivers/hwmon/
Dnct7904.c157 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 …]
Demc6w201.c267 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 …]
Dsmsc47b397.c191 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);
Dadm1029.c181 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);
Dg760a.c110 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);
Df75375s.c658 #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);
Dsch5627.c262 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);
Dlm80.c306 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);
Dit87.c854 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 …]
Dadt7462.c1060 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);
Dvt1211.c497 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)
Dw83792d.c1153 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);
Ddme1737.c1089 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)
Dadt7470.c615 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);
Dnct7802.c411 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);
Dw83791d.c675 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),
Df71882fg.c320 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
Demc2103.c287 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);
Dlm63.c343 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,
Dadm9240.c392 static ssize_t show_fan(struct device *dev, in show_fan() function
491 show_fan, NULL, nr - 1); \
Dw83l786ng.c397 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0),
398 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1),
Dsis5595.c371 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
485 show_fan, NULL, offset - 1); \
Dvia686a.c507 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
573 show_fan, NULL, offset - 1); \
Df71805f.c570 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);
Dw83627ehf.c1039 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),
Dasb100.c300 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
404 show_fan, NULL, offset - 1); \
Dlm78.c303 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
418 show_fan, NULL, offset - 1); \
Dvt8231.c496 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
596 show_fan, NULL, offset - 1); \
Dadm1031.c576 static ssize_t show_fan(struct device *dev, in show_fan() function
678 show_fan, NULL, offset - 1); \
Dnct6683.c712 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);
Dw83781d.c349 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);
Dw83793.c478 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)
Dw83795.c788 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), \
Dlm85.c557 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
595 show_fan, NULL, offset - 1); \
Dadm1026.c636 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, \
Dnct6775.c1836 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);