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()
1110 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1114 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1151 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1155 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1177 *devattr, const char *buf, size_t count) in store_pwm_enable()
1180 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1233 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
1237 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
1245 struct device_attribute *devattr, in store_pwm_interpolate() argument
1249 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
1318 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1321 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1328 struct device_attribute *devattr, in store_simple_pwm() argument
1332 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1358 *devattr, char *buf) in show_fan_beep()
1361 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_beep()
1370 *devattr, const char *buf, size_t count) in store_fan_beep()
1373 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_beep()
1406 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
1411 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
1420 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
1424 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
1457 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1462 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1463 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1479 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
1483 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
1484 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
1512 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
1517 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
1518 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
1525 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
1529 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
1530 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
1553 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
1558 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
1559 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
1573 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
1577 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
1578 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()