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()
1587 *devattr, char *buf) in show_temp_max()
1590 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max()
1596 *devattr, const char *buf, size_t count) in store_temp_max()
1599 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max()
1618 *devattr, char *buf) in show_temp_max_hyst()
1621 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max_hyst()
1636 *devattr, const char *buf, size_t count) in store_temp_max_hyst()
1639 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max_hyst()
1671 *devattr, char *buf) in show_temp_crit()
1674 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit()
1680 *devattr, const char *buf, size_t count) in store_temp_crit()
1683 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_crit()
1702 *devattr, char *buf) in show_temp_crit_hyst()
1705 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit_hyst()
1720 *devattr, char *buf) in show_temp_type()
1723 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_type()
1729 *devattr, char *buf) in show_temp_beep()
1732 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_beep()
1741 *devattr, const char *buf, size_t count) in store_temp_beep()
1744 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_beep()
1765 *devattr, char *buf) in show_temp_alarm()
1768 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_alarm()
1777 *devattr, char *buf) in show_temp_fault()
1780 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_fault()
1789 struct device_attribute *devattr, char *buf) in show_pwm() argument
1792 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm()
1807 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1811 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1848 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1851 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1858 struct device_attribute *devattr, in store_simple_pwm() argument
1862 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1880 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1884 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1906 *devattr, const char *buf, size_t count) in store_pwm_enable()
1909 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1962 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1967 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1968 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1984 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
1988 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
1989 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
2017 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
2022 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
2023 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
2037 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
2041 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
2042 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()
2073 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
2077 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
2085 struct device_attribute *devattr, in store_pwm_interpolate() argument
2089 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
2111 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
2116 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
2125 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
2129 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
2162 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
2167 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
2168 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
2175 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
2179 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
2180 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
2202 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument