Home
last modified time | relevance | path

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

12

/drivers/hwmon/
Dsmsc47b397.c187 static ssize_t show_fan(struct device *dev, struct device_attribute in show_fan() function
194 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
195 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
196 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
197 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
Dadm1029.c177 show_fan(struct device *dev, struct device_attribute *devattr, char *buf) in show_fan() function
261 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
262 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
264 static SENSOR_DEVICE_ATTR(fan1_min, S_IRUGO, show_fan, NULL, 2);
265 static SENSOR_DEVICE_ATTR(fan2_min, S_IRUGO, show_fan, NULL, 3);
Df75375s.c494 #define show_fan(thing) \ macro
503 show_fan(fan);
504 show_fan(fan_min);
505 show_fan(fan_full);
506 show_fan(fan_exp);
538 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
544 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
Dlm87.c403 #define show_fan(offset) \ macro
404 static ssize_t show_fan##offset##_input(struct device *dev, struct device_attribute *attr, char *bu…
410 static ssize_t show_fan##offset##_min(struct device *dev, struct device_attribute *attr, char *buf)…
416 static ssize_t show_fan##offset##_div(struct device *dev, struct device_attribute *attr, char *buf)…
422 show_fan##offset##_input, NULL);
423 show_fan(1);
424 show_fan(2);
498 show_fan##offset##_min, set_fan##offset##_min); \
500 show_fan##offset##_div, set_fan##offset##_div);
Dadt7462.c1088 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
1626 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
1627 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
1628 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
1629 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
1630 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4);
1631 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 5);
1632 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 6);
1633 static SENSOR_DEVICE_ATTR(fan8_input, S_IRUGO, show_fan, NULL, 7);
Dlm63.c193 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
355 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
356 static SENSOR_DEVICE_ATTR(fan1_min, S_IWUSR | S_IRUGO, show_fan,
Ddme1737.c1004 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
1471 show_fan, NULL, SYS_FAN_INPUT, ix-1); \
1473 show_fan, set_fan, SYS_FAN_MIN, ix-1); \
1475 show_fan, NULL, SYS_FAN_ALARM, ix-1); \
1477 show_fan, set_fan, SYS_FAN_TYPE, ix-1)
1488 show_fan, NULL, SYS_FAN_INPUT, ix-1); \
1490 show_fan, set_fan, SYS_FAN_MIN, ix-1); \
1492 show_fan, NULL, SYS_FAN_ALARM, ix-1); \
1494 show_fan, set_fan, SYS_FAN_MAX, ix-1)
Dadt7473.c555 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
960 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
961 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
962 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
963 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
Dvt1211.c479 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
977 show_fan, NULL, SHOW_FAN_INPUT, ix-1), \
979 show_fan, set_fan, SHOW_SET_FAN_MIN, ix-1), \
981 show_fan, set_fan, SHOW_SET_FAN_DIV, ix-1), \
983 show_fan, NULL, SHOW_FAN_ALARM, ix-1)
Dw83792d.c1086 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 1);
1087 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 2);
1088 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 3);
1089 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 4);
1090 static SENSOR_DEVICE_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 5);
1091 static SENSOR_DEVICE_ATTR(fan6_input, S_IRUGO, show_fan, NULL, 6);
1092 static SENSOR_DEVICE_ATTR(fan7_input, S_IRUGO, show_fan, NULL, 7);
Dlm80.c199 #define show_fan(suffix, value) \ macro
207 show_fan(min, fan_min)
208 show_fan(input, fan)
Dadt7470.c654 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
1058 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
1059 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
1060 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
1061 static SENSOR_DEVICE_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3);
Df71882fg.c169 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr,
364 SENSOR_ATTR_2(fan1_input, S_IRUGO, show_fan, NULL, 0, 0),
369 SENSOR_ATTR_2(fan2_input, S_IRUGO, show_fan, NULL, 0, 1),
374 SENSOR_ATTR_2(fan3_input, S_IRUGO, show_fan, NULL, 0, 2),
484 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3),
660 SENSOR_ATTR_2(fan4_input, S_IRUGO, show_fan, NULL, 0, 3),
1005 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
Dw83791d.c647 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0),
648 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1),
649 SENSOR_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2),
650 SENSOR_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3),
651 SENSOR_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4),
Dw83627ehf.c759 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0),
760 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1),
761 SENSOR_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2),
762 SENSOR_ATTR(fan4_input, S_IRUGO, show_fan, NULL, 3),
763 SENSOR_ATTR(fan5_input, S_IRUGO, show_fan, NULL, 4),
Dadm9240.c302 static ssize_t show_fan(struct device *dev, in show_fan() function
411 show_fan, NULL, nr - 1); \
Dw83l786ng.c333 SENSOR_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0),
334 SENSOR_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1),
Df71805f.c544 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() function
976 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
981 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
986 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
Dvia686a.c466 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
521 show_fan, NULL, offset - 1); \
Dsis5595.c329 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
422 show_fan, NULL, offset - 1); \
Dasb100.c287 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
379 show_fan, NULL, offset - 1); \
Dlm78.c315 static ssize_t show_fan(struct device *dev, struct device_attribute *da, in show_fan() function
409 show_fan, NULL, offset - 1); \
Dvt8231.c446 static ssize_t show_fan(struct device *dev, struct device_attribute *attr, in show_fan() function
527 show_fan, NULL, offset - 1); \
Dadm1031.c474 static ssize_t show_fan(struct device *dev, in show_fan() function
566 show_fan, NULL, offset - 1); \
Dw83793.c383 show_fan(struct device *dev, struct device_attribute *attr, char *buf) in show_fan() function
916 SENSOR_ATTR_2(fan##index##_input, S_IRUGO, show_fan, \
919 show_fan, store_fan_min, FAN_MIN, index - 1)

12