Lines Matching refs:devattr
278 static ssize_t show_in(struct device *dev, struct device_attribute *devattr,
281 *devattr, char *buf);
283 *devattr, const char *buf, size_t count);
285 *devattr, char *buf);
287 *devattr, const char *buf, size_t count);
289 *devattr, char *buf);
291 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr,
294 struct device_attribute *devattr, char *buf);
296 struct device_attribute *devattr, const char *buf, size_t count);
298 *devattr, char *buf);
300 *devattr, const char *buf, size_t count);
302 *devattr, char *buf);
305 *devattr, char *buf);
307 *devattr, char *buf);
309 *devattr, const char *buf, size_t count);
311 *devattr, char *buf);
313 *devattr, const char *buf, size_t count);
315 *devattr, char *buf);
317 *devattr, const char *buf, size_t count);
319 *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, char *buf);
331 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr,
333 static ssize_t store_pwm(struct device *dev, struct device_attribute *devattr,
336 struct device_attribute *devattr, char *buf);
338 struct device_attribute *devattr, const char *buf, size_t count);
340 struct device_attribute *devattr, char *buf);
342 struct device_attribute *devattr, const char *buf, size_t count);
344 struct device_attribute *devattr, char *buf);
346 struct device_attribute *devattr, const char *buf, size_t count);
348 struct device_attribute *devattr, char *buf);
350 struct device_attribute *devattr, const char *buf, size_t count);
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 static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
1318 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() argument
1322 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan()
1332 struct device_attribute *devattr, char *buf) in show_fan_full_speed() argument
1335 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_full_speed()
1341 struct device_attribute *devattr, in store_fan_full_speed() argument
1345 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_full_speed()
1364 *devattr, char *buf) in show_fan_beep()
1367 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_beep()
1376 *devattr, const char *buf, size_t count) in store_fan_beep()
1379 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_beep()
1400 *devattr, char *buf) in show_fan_alarm()
1403 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_alarm()
1411 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
1415 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in()
1421 *devattr, char *buf) in show_in_max()
1429 *devattr, const char *buf, size_t count) in store_in_max()
1451 *devattr, char *buf) in show_in_beep()
1454 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_beep()
1463 *devattr, const char *buf, size_t count) in store_in_beep()
1466 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_in_beep()
1487 *devattr, char *buf) in show_in_alarm()
1490 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_alarm()
1498 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
1502 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp()
1524 *devattr, char *buf) in show_temp_max()
1527 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max()
1533 *devattr, const char *buf, size_t count) in store_temp_max()
1536 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max()
1555 *devattr, char *buf) in show_temp_max_hyst()
1558 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max_hyst()
1573 *devattr, const char *buf, size_t count) in store_temp_max_hyst()
1576 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max_hyst()
1608 *devattr, char *buf) in show_temp_crit()
1611 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit()
1617 *devattr, const char *buf, size_t count) in store_temp_crit()
1620 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_crit()
1639 *devattr, char *buf) in show_temp_crit_hyst()
1642 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit_hyst()
1657 *devattr, char *buf) in show_temp_type()
1660 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_type()
1666 *devattr, char *buf) in show_temp_beep()
1669 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_beep()
1678 *devattr, const char *buf, size_t count) in store_temp_beep()
1681 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_beep()
1702 *devattr, char *buf) in show_temp_alarm()
1705 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_alarm()
1714 *devattr, char *buf) in show_temp_fault()
1717 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_fault()
1726 struct device_attribute *devattr, char *buf) in show_pwm() argument
1729 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm()
1744 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1748 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1785 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1788 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1795 struct device_attribute *devattr, in store_simple_pwm() argument
1799 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1817 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1821 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1843 *devattr, const char *buf, size_t count) in store_pwm_enable()
1846 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1899 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1904 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1905 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1921 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
1925 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
1926 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
1954 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
1959 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
1960 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
1974 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
1978 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
1979 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()
2010 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
2014 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
2022 struct device_attribute *devattr, in store_pwm_interpolate() argument
2026 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
2048 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
2053 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
2062 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
2066 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
2099 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
2104 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
2105 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
2112 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
2116 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
2117 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
2139 static ssize_t show_name(struct device *dev, struct device_attribute *devattr, in show_name() argument