Home
last modified time | relevance | path

Searched refs:show_pwm (Results 1 – 31 of 31) sorted by relevance

/linux-4.4.14/drivers/hwmon/
Dnct7802.c126 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function
833 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, store_pwm,
835 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, store_pwm,
837 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, store_pwm,
917 show_pwm, store_pwm, 0x85);
919 show_pwm, store_pwm, 0x86);
921 show_pwm, store_pwm, 0x87);
923 show_pwm, store_pwm, 0x88);
924 static SENSOR_DEVICE_ATTR(pwm1_auto_point5_pwm, S_IRUGO, show_pwm, NULL, 0);
940 show_pwm, store_pwm, 0x95);
[all …]
Dnct7904.c401 static ssize_t show_pwm(struct device *dev, in show_pwm() function
452 show_pwm, store_pwm, 0);
456 show_pwm, store_pwm, 1);
460 show_pwm, store_pwm, 2);
464 show_pwm, store_pwm, 3);
Dadt7475.c635 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
1022 static SENSOR_DEVICE_ATTR_2(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT,
1030 static SENSOR_DEVICE_ATTR_2(pwm1_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm,
1032 static SENSOR_DEVICE_ATTR_2(pwm1_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm,
1034 static SENSOR_DEVICE_ATTR_2(pwm2, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT,
1042 static SENSOR_DEVICE_ATTR_2(pwm2_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm,
1044 static SENSOR_DEVICE_ATTR_2(pwm2_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm,
1046 static SENSOR_DEVICE_ATTR_2(pwm3, S_IRUGO | S_IWUSR, show_pwm, set_pwm, INPUT,
1054 static SENSOR_DEVICE_ATTR_2(pwm3_auto_point1_pwm, S_IRUGO | S_IWUSR, show_pwm,
1056 static SENSOR_DEVICE_ATTR_2(pwm3_auto_point2_pwm, S_IRUGO | S_IWUSR, show_pwm,
Dpwm-fan.c99 static ssize_t show_pwm(struct device *dev, in show_pwm() function
108 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0);
Ddme1737.c1205 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
1613 show_pwm, set_pwm, SYS_PWM, ix-1); \
1615 show_pwm, set_pwm, SYS_PWM_FREQ, ix-1); \
1617 show_pwm, set_pwm, SYS_PWM_ENABLE, ix-1); \
1619 show_pwm, set_pwm, SYS_PWM_RAMP_RATE, ix-1); \
1621 show_pwm, set_pwm, SYS_PWM_AUTO_CHANNELS_ZONE, ix-1); \
1623 show_pwm, set_pwm, SYS_PWM_AUTO_PWM_MIN, ix-1); \
1625 show_pwm, set_pwm, SYS_PWM_AUTO_POINT1_PWM, ix-1); \
1627 show_pwm, NULL, SYS_PWM_AUTO_POINT2_PWM, ix-1)
1637 show_pwm, set_pwm, SYS_PWM, ix-1); \
[all …]
Dvt1211.c603 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)
Dw83792d.c597 show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
1072 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0);
1073 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 1);
1074 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 2);
1075 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 3);
1076 static SENSOR_DEVICE_ATTR(pwm5, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 4);
1077 static SENSOR_DEVICE_ATTR(pwm6, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 5);
1078 static SENSOR_DEVICE_ATTR(pwm7, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 6);
Dmax6639.c288 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);
Dadm1031.c484 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);
Dpc87427.c605 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);
Dadt7470.c662 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function
1036 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0);
1037 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1);
1038 static SENSOR_DEVICE_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 2);
1039 static SENSOR_DEVICE_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 3);
Dw83791d.c725 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),
Dgpio-fan.c191 static ssize_t show_pwm(struct device *dev, in show_pwm() function
316 static DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm);
Df75375s.c503 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);
Dw83795.c839 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), \
Dw83781d.c703 show_pwm(struct device *dev, struct device_attribute *da, char *buf) in show_pwm() function
776 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 0);
777 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 1);
778 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 2);
779 static SENSOR_DEVICE_ATTR(pwm4, S_IRUGO | S_IWUSR, show_pwm, store_pwm, 3);
Dadt7462.c1108 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);
Dw83l786ng.c568 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),
Dw83793.c523 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)
Df71805f.c643 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);
Df71882fg.c360 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
Dnct6775.c2310 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) in show_pwm() function
2763 SENSOR_TEMPLATE_2(pwm, "pwm%d", S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 0);
2823 S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 5);
2825 S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0, 6);
3023 SENSOR_TEMPLATE_2(pwm_start, "pwm%d_start", S_IWUSR | S_IRUGO, show_pwm,
3025 SENSOR_TEMPLATE_2(pwm_floor, "pwm%d_floor", S_IWUSR | S_IRUGO, show_pwm,
3033 SENSOR_TEMPLATE_2(pwm_max, "pwm%d_max", S_IWUSR | S_IRUGO, show_pwm, store_pwm,
3036 SENSOR_TEMPLATE_2(pwm_step, "pwm%d_step", S_IWUSR | S_IRUGO, show_pwm,
Dpc87360.c356 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr, in show_pwm() function
388 SENSOR_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 0),
389 SENSOR_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 1),
390 SENSOR_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, set_pwm, 2),
Dw83627hf.c1055 show_pwm(struct device *dev, struct device_attribute *devattr, char *buf) in show_pwm() function
1096 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 0);
1097 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 1);
1098 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO|S_IWUSR, show_pwm, store_pwm, 2);
Dnct6683.c912 show_pwm(struct device *dev, struct device_attribute *attr, char *buf) in show_pwm() function
921 SENSOR_TEMPLATE(pwm, "pwm%d", S_IRUGO, show_pwm, NULL, 0);
Dit87.c888 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
1310 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0);
1335 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 1);
1360 static SENSOR_DEVICE_ATTR(pwm3, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 2);
Dw83627ehf.c1566 SENSOR_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0),
1567 SENSOR_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 1),
1568 SENSOR_ATTR(pwm3, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 2),
1569 SENSOR_ATTR(pwm4, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 3),
Dlm85.c689 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
836 show_pwm, set_pwm, offset - 1); \
Dlm93.c1861 static ssize_t show_pwm(struct device *dev, struct device_attribute *attr, in show_pwm() function
1907 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 0);
1908 static SENSOR_DEVICE_ATTR(pwm2, S_IWUSR | S_IRUGO, show_pwm, store_pwm, 1);
/linux-4.4.14/drivers/video/backlight/
Dlm3533_bl.c191 static ssize_t show_pwm(struct device *dev, in show_pwm() function
/linux-4.4.14/drivers/leds/
Dleds-lm3533.c572 static ssize_t show_pwm(struct device *dev, in show_pwm() function