Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/hwmon/
Demc6w201.c269 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 …]
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);
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);
Dtc654.c203 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);
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);
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);
Dit87.c1118 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 …]
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.c1151 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);
Ddme1737.c1093 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)
Dadt7470.c642 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);
Dnct7802.c413 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);
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
Dlm63.c344 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,
Dadm9240.c395 static ssize_t show_fan(struct device *dev, in show_fan() function
494 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);
Dlm78.c303 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
418 show_fan, NULL, offset - 1); \
Dw83627ehf.c1045 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),
Dasb100.c300 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
404 show_fan, NULL, offset - 1); \

12