Lines Matching refs:devattr
197 static ssize_t fan_show(struct device *dev, struct device_attribute *devattr, in fan_show() argument
200 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_show()
217 struct device_attribute *devattr, char *buf) in fan_min_show() argument
219 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_min_show()
228 struct device_attribute *devattr, char *buf) in fan_div_show() argument
230 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_div_show()
236 struct device_attribute *devattr, char *buf) in fan_alarm_show() argument
238 int bitnr = to_sensor_dev_attr(devattr)->index; in fan_alarm_show()
243 static ssize_t pwm_show(struct device *dev, struct device_attribute *devattr, in pwm_show() argument
246 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_show()
252 struct device_attribute *devattr, char *buf) in pwm_en_show() argument
254 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_en_show()
260 struct device_attribute *devattr, char *buf) in alarms_show() argument
267 struct device_attribute *devattr, in fan_min_store() argument
270 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_min_store()
304 struct device_attribute *devattr, in fan_div_store() argument
307 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_div_store()
369 static ssize_t pwm_store(struct device *dev, struct device_attribute *devattr, in pwm_store() argument
372 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_store()
396 struct device_attribute *devattr, const char *buf, in pwm_en_store() argument
399 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_en_store()
444 *devattr, char *buf) in name_show()