Lines Matching refs:devattr

307 static ssize_t show_in(struct device *dev, struct device_attribute *devattr,
310 *devattr, char *buf);
312 *devattr, const char *buf, size_t count);
314 *devattr, char *buf);
316 *devattr, const char *buf, size_t count);
318 *devattr, char *buf);
320 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr,
323 struct device_attribute *devattr, char *buf);
325 struct device_attribute *devattr, const char *buf, size_t count);
327 *devattr, char *buf);
329 *devattr, const char *buf, size_t count);
331 *devattr, char *buf);
334 *devattr, char *buf);
336 *devattr, char *buf);
338 *devattr, const char *buf, size_t count);
340 *devattr, char *buf);
342 *devattr, const char *buf, size_t count);
344 *devattr, char *buf);
346 *devattr, const char *buf, size_t count);
348 *devattr, char *buf);
350 *devattr, char *buf);
352 *devattr, char *buf);
354 *devattr, const char *buf, size_t count);
356 *devattr, char *buf);
358 *devattr, char *buf);
360 static ssize_t show_pwm(struct device *dev, struct device_attribute *devattr,
362 static ssize_t store_pwm(struct device *dev, struct device_attribute *devattr,
365 struct device_attribute *devattr, char *buf);
367 struct device_attribute *devattr, const char *buf, size_t count);
369 struct device_attribute *devattr, char *buf);
371 struct device_attribute *devattr, const char *buf, size_t count);
373 struct device_attribute *devattr, char *buf);
375 struct device_attribute *devattr, const char *buf, size_t count);
377 struct device_attribute *devattr, char *buf);
379 struct device_attribute *devattr, const char *buf, size_t count);
381 struct device_attribute *devattr, char *buf);
383 struct device_attribute *devattr, const char *buf, size_t count);
385 struct device_attribute *devattr, char *buf);
387 struct device_attribute *devattr, const char *buf, size_t count);
389 struct device_attribute *devattr, char *buf);
391 struct device_attribute *devattr, const char *buf, size_t count);
393 static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
1384 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() argument
1388 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan()
1398 struct device_attribute *devattr, char *buf) in show_fan_full_speed() argument
1401 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_full_speed()
1407 struct device_attribute *devattr, in store_fan_full_speed() argument
1411 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_full_speed()
1430 *devattr, char *buf) in show_fan_beep()
1433 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_beep()
1442 *devattr, const char *buf, size_t count) in store_fan_beep()
1445 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_fan_beep()
1466 *devattr, char *buf) in show_fan_alarm()
1469 int nr = to_sensor_dev_attr_2(devattr)->index; in show_fan_alarm()
1477 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
1481 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in()
1487 *devattr, char *buf) in show_in_max()
1495 *devattr, const char *buf, size_t count) in store_in_max()
1520 *devattr, char *buf) in show_in_beep()
1523 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_beep()
1532 *devattr, const char *buf, size_t count) in store_in_beep()
1535 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_in_beep()
1563 *devattr, char *buf) in show_in_alarm()
1566 int nr = to_sensor_dev_attr_2(devattr)->index; in show_in_alarm()
1574 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
1578 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp()
1600 *devattr, char *buf) in show_temp_max()
1603 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max()
1609 *devattr, const char *buf, size_t count) in store_temp_max()
1612 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max()
1631 *devattr, char *buf) in show_temp_max_hyst()
1634 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_max_hyst()
1649 *devattr, const char *buf, size_t count) in store_temp_max_hyst()
1652 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_max_hyst()
1684 *devattr, char *buf) in show_temp_crit()
1687 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit()
1693 *devattr, const char *buf, size_t count) in store_temp_crit()
1696 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_crit()
1715 *devattr, char *buf) in show_temp_crit_hyst()
1718 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_crit_hyst()
1733 *devattr, char *buf) in show_temp_type()
1736 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_type()
1742 *devattr, char *buf) in show_temp_beep()
1745 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_beep()
1754 *devattr, const char *buf, size_t count) in store_temp_beep()
1757 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_temp_beep()
1778 *devattr, char *buf) in show_temp_alarm()
1781 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_alarm()
1790 *devattr, char *buf) in show_temp_fault()
1793 int nr = to_sensor_dev_attr_2(devattr)->index; in show_temp_fault()
1802 struct device_attribute *devattr, char *buf) in show_pwm() argument
1805 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm()
1820 struct device_attribute *devattr, const char *buf, in store_pwm() argument
1824 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm()
1861 struct device_attribute *devattr, char *buf) in show_simple_pwm() argument
1864 int val, nr = to_sensor_dev_attr_2(devattr)->index; in show_simple_pwm()
1871 struct device_attribute *devattr, in store_simple_pwm() argument
1875 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_simple_pwm()
1893 struct device_attribute *devattr, char *buf) in show_pwm_enable() argument
1897 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_enable()
1919 *devattr, const char *buf, size_t count) in store_pwm_enable()
1922 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_enable()
1975 struct device_attribute *devattr, in show_pwm_auto_point_pwm() argument
1980 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm()
1981 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_pwm()
1997 struct device_attribute *devattr, in store_pwm_auto_point_pwm() argument
2001 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm()
2002 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_pwm()
2030 struct device_attribute *devattr, in show_pwm_auto_point_temp_hyst() argument
2035 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp_hyst()
2036 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp_hyst()
2050 struct device_attribute *devattr, in store_pwm_auto_point_temp_hyst() argument
2054 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp_hyst()
2055 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp_hyst()
2086 struct device_attribute *devattr, char *buf) in show_pwm_interpolate() argument
2090 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_interpolate()
2098 struct device_attribute *devattr, in store_pwm_interpolate() argument
2102 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_interpolate()
2124 struct device_attribute *devattr, in show_pwm_auto_point_channel() argument
2129 int nr = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_channel()
2138 struct device_attribute *devattr, in store_pwm_auto_point_channel() argument
2142 int err, nr = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_channel()
2175 struct device_attribute *devattr, in show_pwm_auto_point_temp() argument
2180 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp()
2181 int point = to_sensor_dev_attr_2(devattr)->nr; in show_pwm_auto_point_temp()
2188 struct device_attribute *devattr, in store_pwm_auto_point_temp() argument
2192 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp()
2193 int point = to_sensor_dev_attr_2(devattr)->nr; in store_pwm_auto_point_temp()
2215 static ssize_t show_name(struct device *dev, struct device_attribute *devattr, in show_name() argument