/Linux-v4.19/drivers/hwmon/ |
D | nct7802.c | 126 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function 835 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 837 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 839 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 919 show_pwm, store_pwm, 0x85); 921 show_pwm, store_pwm, 0x86); 923 show_pwm, store_pwm, 0x87); 925 show_pwm, store_pwm, 0x88); 926 static SENSOR_DEVICE_ATTR(pwm1_auto_point5_pwm, S_IRUGO, show_pwm, NULL, 0); 942 show_pwm, store_pwm, 0x95); [all …]
|
D | aspeed-pwm-tacho.c | 598 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 646 show_pwm, set_pwm, 0); 648 show_pwm, set_pwm, 1); 650 show_pwm, set_pwm, 2); 652 show_pwm, set_pwm, 3); 654 show_pwm, set_pwm, 4); 656 show_pwm, set_pwm, 5); 658 show_pwm, set_pwm, 6); 660 show_pwm, set_pwm, 7);
|
D | pwm-fan.c | 93 static ssize_t show_pwm(struct device *dev, in show_pwm() function 102 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0);
|
D | adt7475.c | 732 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 1185 static SENSOR_DEVICE_ATTR_2(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT, 1193 static SENSOR_DEVICE_ATTR_2(pwm1_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm, 1195 static SENSOR_DEVICE_ATTR_2(pwm1_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm, 1199 static SENSOR_DEVICE_ATTR_2(pwm2, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT, 1207 static SENSOR_DEVICE_ATTR_2(pwm2_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm, 1209 static SENSOR_DEVICE_ATTR_2(pwm2_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm, 1213 static SENSOR_DEVICE_ATTR_2(pwm3, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT, 1221 static SENSOR_DEVICE_ATTR_2(pwm3_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm, 1223 static SENSOR_DEVICE_ATTR_2(pwm3_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm,
|
D | dme1737.c | 1209 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 1617 show_pwm, set_pwm, SYS_PWM, ix-1); \ 1619 show_pwm, set_pwm, SYS_PWM_FREQ, ix-1); \ 1621 show_pwm, set_pwm, SYS_PWM_ENABLE, ix-1); \ 1623 show_pwm, set_pwm, SYS_PWM_RAMP_RATE, ix-1); \ 1625 show_pwm, set_pwm, SYS_PWM_AUTO_CHANNELS_ZONE, ix-1); \ 1627 show_pwm, set_pwm, SYS_PWM_AUTO_PWM_MIN, ix-1); \ 1629 show_pwm, set_pwm, SYS_PWM_AUTO_POINT1_PWM, ix-1); \ 1631 show_pwm, NULL, SYS_PWM_AUTO_POINT2_PWM, ix-1) 1641 show_pwm, set_pwm, SYS_PWM, ix-1); \ [all …]
|
D | vt1211.c | 603 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 1025 show_pwm, NULL, SHOW_PWM, ix-1), \ 1027 show_pwm, set_pwm, SHOW_SET_PWM_ENABLE, ix-1), \ 1029 show_pwm, set_pwm, SHOW_SET_PWM_AUTO_CHANNELS_TEMP, ix-1) 1033 show_pwm, set_pwm, SHOW_SET_PWM_FREQ, ix-1) 1037 show_pwm, NULL, SHOW_SET_PWM_FREQ, ix-1)
|
D | w83792d.c | 597 show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 1070 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0); 1071 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 1); 1072 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 2); 1073 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 3); 1074 static SENSOR_DEVICE_ATTR(pwm5, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 4); 1075 static SENSOR_DEVICE_ATTR(pwm6, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 5); 1076 static SENSOR_DEVICE_ATTR(pwm7, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 6);
|
D | max6639.c | 288 static ssize_t show_pwm(struct device *dev, in show_pwm() function 363 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0); 364 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1);
|
D | tc654.c | 374 static ssize_t show_pwm(struct device *dev, struct device_attribute *da, in show_pwm() function 440 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm,
|
D | adm1031.c | 484 static ssize_t show_pwm(struct device *dev, in show_pwm() function 520 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0); 521 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 1); 523 show_pwm, set_pwm, 0); 525 show_pwm, set_pwm, 1);
|
D | pc87427.c | 605 static ssize_t show_pwm(struct device *dev, struct device_attribute in show_pwm() function 669 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0); 670 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1); 671 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 2); 672 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 3);
|
D | w83791d.c | 725 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 755 show_pwm, store_pwm, 0), 757 show_pwm, store_pwm, 1), 759 show_pwm, store_pwm, 2), 761 show_pwm, store_pwm, 3), 763 show_pwm, store_pwm, 4),
|
D | adt7470.c | 689 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function 1125 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0); 1126 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1); 1127 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 2); 1128 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 3);
|
D | f75375s.c | 503 static ssize_t show_pwm(struct device *dev, struct device_attribute in show_pwm() function 715 show_pwm, set_pwm, 0); 721 show_pwm, set_pwm, 1);
|
D | w83795.c | 839 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) in show_pwm() function 1650 SENSOR_ATTR_2(pwm##index, S_IWUSR | S_IRUGO, show_pwm, \ 1657 show_pwm, store_pwm, PWM_FREQ, index - 1), \ 1659 show_pwm, store_pwm, PWM_NONSTOP, index - 1), \ 1661 show_pwm, store_pwm, PWM_START, index - 1), \ 1663 show_pwm, store_pwm, PWM_STOP_TIME, index - 1), \
|
D | w83781d.c | 702 show_pwm(struct device *dev, struct device_attribute *da, char *buf) in show_pwm() function 775 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 0); 776 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 1); 777 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 2); 778 static SENSOR_DEVICE_ATTR(pwm4, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 3);
|
D | adt7462.c | 1108 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function 1626 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0); 1627 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1); 1628 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 2); 1629 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 3);
|
D | w83l786ng.c | 568 SENSOR_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0), 569 SENSOR_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 1),
|
D | w83793.c | 523 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) in show_pwm() function 1053 SENSOR_ATTR_2(pwm##index, S_IWUSR | S_IRUGO, show_pwm, \ 1056 show_pwm, store_pwm, PWM_NONSTOP, index - 1), \ 1058 show_pwm, store_pwm, PWM_START, index - 1), \ 1060 show_pwm, store_pwm, PWM_STOP_TIME, index - 1)
|
D | f71805f.c | 643 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function 1086 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO, show_pwm, set_pwm, 0); 1092 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO, show_pwm, set_pwm, 1); 1098 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO, show_pwm, set_pwm, 2);
|
D | it87.c | 1154 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function 1665 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0); 1695 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 1); 1724 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 2); 1753 static SENSOR_DEVICE_ATTR(pwm4, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 3); 1772 static SENSOR_DEVICE_ATTR(pwm5, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 4); 1791 static SENSOR_DEVICE_ATTR(pwm6, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 5);
|
D | f71882fg.c | 360 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, 600 SENSOR_ATTR_2(pwm1, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 0), 611 SENSOR_ATTR_2(pwm2, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 1), 622 SENSOR_ATTR_2(pwm3, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 2), 633 SENSOR_ATTR_2(pwm4, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0, 3), 1801 static ssize_t show_pwm(struct device *dev, in show_pwm() function
|
D | nct6775.c | 2458 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) in show_pwm() function 2912 SENSOR_TEMPLATE_2(pwm, "pwm%d", S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 0); 2972 S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 5); 2974 S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 6); 3174 SENSOR_TEMPLATE_2(pwm_start, "pwm%d_start", S_IWUSR | S_IRUGO, show_pwm, 3176 SENSOR_TEMPLATE_2(pwm_floor, "pwm%d_floor", S_IWUSR | S_IRUGO, show_pwm, 3184 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", S_IWUSR | S_IRUGO, show_pwm, store_pwm, 3187 SENSOR_TEMPLATE_2(pwm_step, "pwm%d_step", S_IWUSR | S_IRUGO, show_pwm,
|
D | w83627hf.c | 1058 show_pwm(struct device *dev, struct device_attribute *devattr, char *buf) in show_pwm() function 1099 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0); 1100 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 1); 1101 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 2);
|
/Linux-v4.19/drivers/video/backlight/ |
D | lm3533_bl.c | 191 static ssize_t show_pwm(struct device *dev, in show_pwm() function
|