Lines Matching refs:devattr
513 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
522 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
526 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp()
549 *devattr, char *buf) in show_temp_max()
552 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max()
558 *devattr, const char *buf, size_t count) in store_temp_max()
561 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max()
580 *devattr, char *buf) in show_temp_max_hyst()
583 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max_hyst()
598 *devattr, const char *buf, size_t count) in store_temp_max_hyst()
601 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max_hyst()
633 *devattr, char *buf) in show_temp_alarm()
636 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_alarm()
645 *devattr, char *buf) in show_temp_crit()
648 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit()
654 *devattr, const char *buf, size_t count) in store_temp_crit()
657 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_crit()
676 *devattr, char *buf) in show_temp_crit_hyst()
679 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit_hyst()
694 *devattr, char *buf) in show_temp_fault()
697 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_fault()
749 *devattr, char *buf) in show_temp_type()
752 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_type()
810 *devattr, char *buf) in show_temp_beep()
813 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_beep()
822 *devattr, const char *buf, size_t count) in store_temp_beep()
825 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_beep()
910 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
914 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in()
935 *devattr, char *buf) in show_in_max()
943 *devattr, const char *buf, size_t count) in store_in_max()
968 *devattr, char *buf) in show_in_beep()
971 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_beep()
980 *devattr, const char *buf, size_t count) in store_in_beep()
983 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_in_beep()
1011 *devattr, char *buf) in show_in_alarm()
1014 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_alarm()
1031 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() argument
1035 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan()
1045 struct device_attribute *devattr, char *buf) in show_fan_full_speed() argument
1048 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_full_speed()
1054 struct device_attribute *devattr, in store_fan_full_speed() argument
1058 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_full_speed()
1077 *devattr, char *buf) in show_fan_alarm()
1080 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_alarm()
1089 struct device_attribute *devattr, char *buf) in show_pwm() argument
1092 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm()
1107 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1111 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1148 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1152 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1174 *devattr, const char *buf, size_t count) in store_pwm_enable()
1177 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1230 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
1234 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
1242 struct device_attribute *devattr, in store_pwm_interpolate() argument
1246 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
1315 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1318 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1325 struct device_attribute *devattr, in store_simple_pwm() argument
1329 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1355 *devattr, char *buf) in show_fan_beep()
1358 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_beep()
1367 *devattr, const char *buf, size_t count) in store_fan_beep()
1370 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_beep()
1403 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
1408 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
1417 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
1421 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
1454 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1459 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1460 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1476 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
1480 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
1481 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
1509 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
1514 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
1515 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
1522 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
1526 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
1527 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
1550 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
1555 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
1556 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
1570 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
1574 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
1575 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()