Lines Matching refs:devattr
294 static ssize_t show_in(struct device *dev, struct device_attribute *devattr,
297 *devattr, char *buf);
299 *devattr, const char *buf, size_t count);
301 *devattr, char *buf);
303 *devattr, const char *buf, size_t count);
305 *devattr, char *buf);
307 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr,
310 struct device_attribute *devattr, char *buf);
312 struct device_attribute *devattr, const char *buf, size_t count);
314 *devattr, char *buf);
316 *devattr, const char *buf, size_t count);
318 *devattr, char *buf);
321 *devattr, char *buf);
323 *devattr, char *buf);
325 *devattr, const char *buf, size_t count);
327 *devattr, char *buf);
329 *devattr, const char *buf, size_t count);
331 *devattr, char *buf);
333 *devattr, const char *buf, size_t count);
335 *devattr, char *buf);
337 *devattr, char *buf);
339 *devattr, char *buf);
341 *devattr, const char *buf, size_t count);
343 *devattr, char *buf);
345 *devattr, char *buf);
347 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr,
349 static ssize_t store_pwm(struct device *dev, struct device_attribute *devattr,
352 struct device_attribute *devattr, char *buf);
354 struct device_attribute *devattr, const char *buf, size_t count);
356 struct device_attribute *devattr, char *buf);
358 struct device_attribute *devattr, const char *buf, size_t count);
360 struct device_attribute *devattr, char *buf);
362 struct device_attribute *devattr, const char *buf, size_t count);
364 struct device_attribute *devattr, char *buf);
366 struct device_attribute *devattr, const char *buf, size_t count);
368 struct device_attribute *devattr, char *buf);
370 struct device_attribute *devattr, const char *buf, size_t count);
372 struct device_attribute *devattr, char *buf);
374 struct device_attribute *devattr, const char *buf, size_t count);
376 struct device_attribute *devattr, char *buf);
378 struct device_attribute *devattr, const char *buf, size_t count);
380 static ssize_t name_show(struct device *dev, struct device_attribute *devattr,
1371 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() argument
1375 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan()
1385 struct device_attribute *devattr, char *buf) in show_fan_full_speed() argument
1388 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_full_speed()
1394 struct device_attribute *devattr, in store_fan_full_speed() argument
1398 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_full_speed()
1417 *devattr, char *buf) in show_fan_beep()
1420 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_beep()
1429 *devattr, const char *buf, size_t count) in store_fan_beep()
1432 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_beep()
1453 *devattr, char *buf) in show_fan_alarm()
1456 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_alarm()
1464 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
1468 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in()
1474 *devattr, char *buf) in show_in_max()
1482 *devattr, const char *buf, size_t count) in store_in_max()
1507 *devattr, char *buf) in show_in_beep()
1510 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_beep()
1519 *devattr, const char *buf, size_t count) in store_in_beep()
1522 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_in_beep()
1550 *devattr, char *buf) in show_in_alarm()
1553 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_alarm()
1561 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
1565 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp()
1588 *devattr, char *buf) in show_temp_max()
1591 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max()
1597 *devattr, const char *buf, size_t count) in store_temp_max()
1600 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max()
1619 *devattr, char *buf) in show_temp_max_hyst()
1622 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max_hyst()
1637 *devattr, const char *buf, size_t count) in store_temp_max_hyst()
1640 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max_hyst()
1672 *devattr, char *buf) in show_temp_crit()
1675 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit()
1681 *devattr, const char *buf, size_t count) in store_temp_crit()
1684 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_crit()
1703 *devattr, char *buf) in show_temp_crit_hyst()
1706 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit_hyst()
1721 *devattr, char *buf) in show_temp_type()
1724 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_type()
1730 *devattr, char *buf) in show_temp_beep()
1733 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_beep()
1742 *devattr, const char *buf, size_t count) in store_temp_beep()
1745 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_beep()
1766 *devattr, char *buf) in show_temp_alarm()
1769 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_alarm()
1778 *devattr, char *buf) in show_temp_fault()
1781 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_fault()
1790 struct device_attribute *devattr, char *buf) in show_pwm() argument
1793 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm()
1808 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1812 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1849 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1852 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1859 struct device_attribute *devattr, in store_simple_pwm() argument
1863 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1881 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1885 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1907 *devattr, const char *buf, size_t count) in store_pwm_enable()
1910 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1963 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1968 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1969 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1985 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
1989 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
1990 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
2018 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
2023 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
2024 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
2038 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
2042 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
2043 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()
2074 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
2078 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
2086 struct device_attribute *devattr, in store_pwm_interpolate() argument
2090 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
2112 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
2117 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
2126 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
2130 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
2163 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
2168 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
2169 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
2176 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
2180 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
2181 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
2203 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument