Home
last modified time | relevance | path

Searched refs:devattr (Results 1 – 25 of 75) sorted by relevance

123

/drivers/hwmon/
Df71882fg.c294 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);
[all …]
Dpc87360.c245 struct device_attribute *devattr, char *buf) in fan_input_show() argument
247 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_input_show()
253 struct device_attribute *devattr, char *buf) in fan_min_show() argument
255 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_min_show()
261 struct device_attribute *devattr, char *buf) in fan_div_show() argument
263 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_div_show()
269 struct device_attribute *devattr, char *buf) in fan_status_show() argument
271 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_status_show()
277 struct device_attribute *devattr, in fan_min_store() argument
280 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in fan_min_store()
[all …]
Dadt7470.c394 struct device_attribute *devattr, in auto_update_interval_show() argument
402 struct device_attribute *devattr, in auto_update_interval_store() argument
421 struct device_attribute *devattr, in num_temp_sensors_show() argument
429 struct device_attribute *devattr, in num_temp_sensors_store() argument
450 struct device_attribute *devattr, char *buf) in temp_min_show() argument
452 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_show()
458 struct device_attribute *devattr, in temp_min_store() argument
461 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_store()
482 struct device_attribute *devattr, char *buf) in temp_max_show() argument
484 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show()
[all …]
Df71805f.c419 static ssize_t show_in0(struct device *dev, struct device_attribute *devattr, in show_in0() argument
423 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0()
430 *devattr, char *buf) in show_in0_max()
433 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_max()
440 *devattr, char *buf) in show_in0_min()
443 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_min()
450 *devattr, const char *buf, size_t count) in set_in0_max()
453 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_max()
471 *devattr, const char *buf, size_t count) in set_in0_min()
474 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_min()
[all …]
Dabx500.c124 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
129 return data->ops.show_name(dev, devattr, buf); in name_show()
133 struct device_attribute *devattr, char *buf) in label_show() argument
137 return data->ops.show_label(dev, devattr, buf); in label_show()
141 struct device_attribute *devattr, char *buf) in input_show() argument
145 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in input_show()
156 static ssize_t min_store(struct device *dev, struct device_attribute *devattr, in min_store() argument
161 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in min_store()
176 static ssize_t max_store(struct device *dev, struct device_attribute *devattr, in max_store() argument
181 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max_store()
[all …]
Dadt7462.c779 struct device_attribute *devattr, char *buf) in temp_min_show() argument
781 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_show()
791 struct device_attribute *devattr, in temp_min_store() argument
794 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_store()
815 struct device_attribute *devattr, char *buf) in temp_max_show() argument
817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show()
827 struct device_attribute *devattr, in temp_max_store() argument
830 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_store()
850 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() argument
853 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_show()
[all …]
Dpc87427.c388 struct device_attribute *devattr, char *buf) in fan_input_show() argument
391 int nr = to_sensor_dev_attr(devattr)->index; in fan_input_show()
397 struct device_attribute *devattr, char *buf) in fan_min_show() argument
400 int nr = to_sensor_dev_attr(devattr)->index; in fan_min_show()
406 struct device_attribute *devattr, char *buf) in fan_alarm_show() argument
409 int nr = to_sensor_dev_attr(devattr)->index; in fan_alarm_show()
416 struct device_attribute *devattr, char *buf) in fan_fault_show() argument
419 int nr = to_sensor_dev_attr(devattr)->index; in fan_fault_show()
426 struct device_attribute *devattr, in fan_min_store() argument
430 int nr = to_sensor_dev_attr(devattr)->index; in fan_min_store()
[all …]
Di5k_amb.c104 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
127 struct device_attribute *devattr, in show_amb_alarm() argument
130 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_amb_alarm()
141 struct device_attribute *devattr, in store_amb_min() argument
145 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_min()
161 struct device_attribute *devattr, in store_amb_mid() argument
165 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_mid()
181 struct device_attribute *devattr, in store_amb_max() argument
185 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_max()
201 struct device_attribute *devattr, in show_amb_min() argument
[all …]
Demc6w201.c179 static ssize_t in_show(struct device *dev, struct device_attribute *devattr, in in_show() argument
183 int sf = to_sensor_dev_attr_2(devattr)->index; in in_show()
184 int nr = to_sensor_dev_attr_2(devattr)->nr; in in_show()
190 static ssize_t in_store(struct device *dev, struct device_attribute *devattr, in in_store() argument
195 int sf = to_sensor_dev_attr_2(devattr)->index; in in_store()
196 int nr = to_sensor_dev_attr_2(devattr)->nr; in in_store()
218 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() argument
222 int sf = to_sensor_dev_attr_2(devattr)->index; in temp_show()
223 int nr = to_sensor_dev_attr_2(devattr)->nr; in temp_show()
229 struct device_attribute *devattr, const char *buf, in temp_store() argument
[all …]
Dmc13783-adc.c32 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
41 struct device_attribute *devattr, unsigned int *val) in mc13783_adc_read() argument
44 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in mc13783_adc_read()
67 struct device_attribute *devattr, in mc13783_adc_bp_show() argument
73 int ret = mc13783_adc_read(dev, devattr, &val); in mc13783_adc_bp_show()
91 struct device_attribute *devattr, in mc13783_adc_gp_show() argument
95 int ret = mc13783_adc_read(dev, devattr, &val); in mc13783_adc_gp_show()
110 struct device_attribute *devattr, in mc13783_adc_uid_show() argument
116 int ret = mc13783_adc_read(dev, devattr, &val); in mc13783_adc_uid_show()
132 struct device_attribute *devattr, in mc13783_adc_temp_show() argument
[all …]
Dsch5627.c195 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
201 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() argument
204 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_show()
216 struct device_attribute *devattr, char *buf) in temp_fault_show() argument
218 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_fault_show()
228 struct device_attribute *devattr, char *buf) in temp_max_show() argument
230 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show()
239 struct device_attribute *devattr, char *buf) in temp_crit_show() argument
241 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_crit_show()
249 static ssize_t fan_show(struct device *dev, struct device_attribute *devattr, in fan_show() argument
[all …]
Dabituguru.c788 struct device_attribute *devattr, char *buf) in show_bank1_value() argument
790 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank1_value()
799 struct device_attribute *devattr, char *buf) in show_bank1_setting() argument
801 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank1_setting()
809 struct device_attribute *devattr, char *buf) in show_bank2_value() argument
811 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank2_value()
820 struct device_attribute *devattr, char *buf) in show_bank2_setting() argument
822 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank2_setting()
830 *devattr, const char *buf, size_t count) in store_bank1_setting()
832 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in store_bank1_setting()
[all …]
Dsch5636.c160 static ssize_t name_show(struct device *dev, struct device_attribute *devattr, in name_show() argument
167 struct device_attribute *devattr, char *buf) in in_value_show() argument
169 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_value_show()
183 struct device_attribute *devattr, char *buf) in in_label_show() argument
185 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_label_show()
192 struct device_attribute *devattr, char *buf) in temp_value_show() argument
194 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_value_show()
206 struct device_attribute *devattr, char *buf) in temp_fault_show() argument
208 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_fault_show()
220 struct device_attribute *devattr, char *buf) in temp_alarm_show() argument
[all …]
Dsmsc47m1.c197 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()
[all …]
Dw83627hf.c477 in_input_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_input_show() argument
479 int nr = to_sensor_dev_attr(devattr)->index; in in_input_show()
484 in_min_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_min_show() argument
486 int nr = to_sensor_dev_attr(devattr)->index; in in_min_show()
491 in_max_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_max_show() argument
493 int nr = to_sensor_dev_attr(devattr)->index; in in_max_show()
498 in_min_store(struct device *dev, struct device_attribute *devattr, in in_min_store() argument
501 int nr = to_sensor_dev_attr(devattr)->index; in in_min_store()
517 in_max_store(struct device *dev, struct device_attribute *devattr, in in_max_store() argument
520 int nr = to_sensor_dev_attr(devattr)->index; in in_max_store()
[all …]
Dadm9240.c317 static ssize_t max_show(struct device *dev, struct device_attribute *devattr, in max_show() argument
320 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max_show()
329 static ssize_t max_store(struct device *dev, struct device_attribute *devattr, in max_store() argument
332 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max_store()
354 static ssize_t in_show(struct device *dev, struct device_attribute *devattr, in in_show() argument
357 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_show()
368 struct device_attribute *devattr, char *buf) in in_min_show() argument
370 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_min_show()
381 struct device_attribute *devattr, char *buf) in in_max_show() argument
383 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_max_show()
[all …]
Dfschmd.c321 struct device_attribute *devattr, char *buf) in in_value_show() argument
324 int index = to_sensor_dev_attr(devattr)->index; in in_value_show()
339 struct device_attribute *devattr, char *buf) in temp_value_show() argument
341 int index = to_sensor_dev_attr(devattr)->index; in temp_value_show()
348 struct device_attribute *devattr, char *buf) in temp_max_show() argument
350 int index = to_sensor_dev_attr(devattr)->index; in temp_max_show()
357 struct device_attribute *devattr, in temp_max_store() argument
360 int index = to_sensor_dev_attr(devattr)->index; in temp_max_store()
381 struct device_attribute *devattr, char *buf) in temp_fault_show() argument
383 int index = to_sensor_dev_attr(devattr)->index; in temp_fault_show()
[all …]
Dmenf21bmc_hwmon.c100 label_show(struct device *dev, struct device_attribute *devattr, char *buf) in label_show() argument
102 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in label_show()
108 in_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_show() argument
110 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in in_show()
120 min_show(struct device *dev, struct device_attribute *devattr, char *buf) in min_show() argument
122 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in min_show()
129 max_show(struct device *dev, struct device_attribute *devattr, char *buf) in max_show() argument
131 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in max_show()
Dadm1021.c146 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() argument
149 int index = to_sensor_dev_attr(devattr)->index; in temp_show()
156 struct device_attribute *devattr, char *buf) in temp_max_show() argument
158 int index = to_sensor_dev_attr(devattr)->index; in temp_max_show()
165 struct device_attribute *devattr, char *buf) in temp_min_show() argument
167 int index = to_sensor_dev_attr(devattr)->index; in temp_min_show()
190 struct device_attribute *devattr, in temp_max_store() argument
193 int index = to_sensor_dev_attr(devattr)->index; in temp_max_store()
216 struct device_attribute *devattr, in temp_min_store() argument
219 int index = to_sensor_dev_attr(devattr)->index; in temp_min_store()
[all …]
Dmax1668.c131 struct device_attribute *devattr, char *buf) in show_temp() argument
133 int index = to_sensor_dev_attr(devattr)->index; in show_temp()
143 struct device_attribute *devattr, char *buf) in show_temp_max() argument
145 int index = to_sensor_dev_attr(devattr)->index; in show_temp_max()
155 struct device_attribute *devattr, char *buf) in show_temp_min() argument
157 int index = to_sensor_dev_attr(devattr)->index; in show_temp_min()
179 struct device_attribute *devattr, char *buf) in show_fault() argument
181 int index = to_sensor_dev_attr(devattr)->index; in show_fault()
192 struct device_attribute *devattr, in set_temp_max() argument
195 int index = to_sensor_dev_attr(devattr)->index; in set_temp_max()
[all …]
Dda9052-hwmon.c86 struct device_attribute *devattr, char *buf) in da9052_vddout_show() argument
118 struct device_attribute *devattr, char *buf) in da9052_ich_show() argument
132 struct device_attribute *devattr, char *buf) in da9052_tbat_show() argument
140 struct device_attribute *devattr, char *buf) in da9052_vbat_show() argument
153 struct device_attribute *devattr, in da9052_misc_channel_show() argument
157 int channel = to_sensor_dev_attr(devattr)->index; in da9052_misc_channel_show()
241 struct device_attribute *devattr, char *buf) in da9052_tsi_show() argument
244 int channel = to_sensor_dev_attr(devattr)->index; in da9052_tsi_show()
258 struct device_attribute *devattr, char *buf) in da9052_tjunc_show() argument
280 struct device_attribute *devattr, char *buf) in da9052_vbbat_show() argument
[all …]
Di5500_temp.c38 struct device_attribute *devattr, char *buf) in temp1_input_show() argument
53 struct device_attribute *devattr, char *buf) in thresh_show() argument
56 int reg = to_sensor_dev_attr(devattr)->index; in thresh_show()
67 struct device_attribute *devattr, char *buf) in alarm_show() argument
70 int nr = to_sensor_dev_attr(devattr)->index; in alarm_show()
/drivers/misc/
Dics932s401.c150 struct device_attribute *devattr, in show_spread_enabled() argument
197 struct device_attribute *devattr, in show_cpu_clock() argument
206 struct device_attribute *devattr, in show_cpu_clock_sel() argument
254 struct device_attribute *devattr, in show_src_clock() argument
263 struct device_attribute *devattr, in show_src_clock_sel() argument
302 struct device_attribute *devattr, in show_pci_clock() argument
311 struct device_attribute *devattr, in show_pci_clock_sel() argument
326 struct device_attribute *devattr,
330 struct device_attribute *devattr,
361 struct device_attribute *devattr, in show_value() argument
[all …]
/drivers/hwmon/pmbus/
Dinspur-ipsps.c54 struct device_attribute *devattr, in ipsps_string_show() argument
62 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in ipsps_string_show()
77 struct device_attribute *devattr, in ipsps_fw_version_show() argument
84 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in ipsps_fw_version_show()
100 struct device_attribute *devattr, char *buf) in ipsps_mode_show() argument
105 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in ipsps_mode_show()
131 struct device_attribute *devattr, in ipsps_mode_store() argument
137 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in ipsps_mode_store()
/drivers/counter/
Dcounter.c301 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_signal_show() local
302 const struct counter_signal_unit *const component = devattr->component; in counter_signal_show()
371 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_signal_ext_show() local
372 const struct counter_signal_ext_unit *const comp = devattr->component; in counter_signal_ext_show()
382 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_signal_ext_store() local
383 const struct counter_signal_ext_unit *const comp = devattr->component; in counter_signal_ext_store()
547 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_action_show() local
550 const struct counter_action_unit *const component = devattr->component; in counter_action_show()
570 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_action_store() local
571 const struct counter_action_unit *const component = devattr->component; in counter_action_store()
[all …]

123