Home
last modified time | relevance | path

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

123

/drivers/hwmon/
Df71882fg.c278 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);
[all …]
Df71805f.c426 static ssize_t show_in0(struct device *dev, struct device_attribute *devattr, in show_in0() argument
430 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0()
437 *devattr, char *buf) in show_in0_max()
440 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_max()
447 *devattr, char *buf) in show_in0_min()
450 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in0_min()
457 *devattr, const char *buf, size_t count) in set_in0_max()
460 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_max()
478 *devattr, const char *buf, size_t count) in set_in0_min()
481 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_in0_min()
[all …]
Dpc87360.c259 struct device_attribute *devattr, char *buf) in show_fan_input() argument
261 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan_input()
267 struct device_attribute *devattr, char *buf) in show_fan_min() argument
269 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan_min()
275 struct device_attribute *devattr, char *buf) in show_fan_div() argument
277 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan_div()
283 struct device_attribute *devattr, char *buf) in show_fan_status() argument
285 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan_status()
291 struct device_attribute *devattr, const char *buf, in set_fan_min() argument
294 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_fan_min()
[all …]
Dadt7470.c436 struct device_attribute *devattr, in show_auto_update_interval() argument
444 struct device_attribute *devattr, in set_auto_update_interval() argument
465 struct device_attribute *devattr, in show_num_temp_sensors() argument
473 struct device_attribute *devattr, in set_num_temp_sensors() argument
496 struct device_attribute *devattr, in show_temp_min() argument
499 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_min()
505 struct device_attribute *devattr, in set_temp_min() argument
509 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_min()
530 struct device_attribute *devattr, in show_temp_max() argument
533 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max()
[all …]
Dtmp401.c240 struct device_attribute *devattr, char *buf) in show_temp_value() argument
242 int index = to_sensor_dev_attr(devattr)->index; in show_temp_value()
250 struct device_attribute *devattr, char *buf) in show_temp_min() argument
252 int index = to_sensor_dev_attr(devattr)->index; in show_temp_min()
260 struct device_attribute *devattr, char *buf) in show_temp_max() argument
262 int index = to_sensor_dev_attr(devattr)->index; in show_temp_max()
270 struct device_attribute *devattr, char *buf) in show_temp_crit() argument
272 int index = to_sensor_dev_attr(devattr)->index; in show_temp_crit()
281 struct device_attribute *devattr, char *buf) in show_temp_crit_hyst() argument
283 int temp, index = to_sensor_dev_attr(devattr)->index; in show_temp_crit_hyst()
[all …]
Dadt7462.c814 struct device_attribute *devattr, in show_temp_min() argument
817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_min()
827 struct device_attribute *devattr, in set_temp_min() argument
831 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_min()
852 struct device_attribute *devattr, in show_temp_max() argument
855 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max()
865 struct device_attribute *devattr, in set_temp_max() argument
869 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_temp_max()
889 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
892 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp()
[all …]
Dmax6650.c154 static ssize_t get_fan(struct device *dev, struct device_attribute *devattr, in get_fan() argument
157 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in get_fan()
215 static ssize_t get_target(struct device *dev, struct device_attribute *devattr, in get_target() argument
235 static ssize_t set_target(struct device *dev, struct device_attribute *devattr, in set_target() argument
283 static ssize_t get_pwm(struct device *dev, struct device_attribute *devattr, in get_pwm() argument
304 static ssize_t set_pwm(struct device *dev, struct device_attribute *devattr, in set_pwm() argument
340 static ssize_t get_enable(struct device *dev, struct device_attribute *devattr, in get_enable() argument
350 static ssize_t set_enable(struct device *dev, struct device_attribute *devattr, in set_enable() argument
392 static ssize_t get_div(struct device *dev, struct device_attribute *devattr, in get_div() argument
400 static ssize_t set_div(struct device *dev, struct device_attribute *devattr, in set_div() argument
[all …]
Di5k_amb.c119 static ssize_t show_name(struct device *dev, struct device_attribute *devattr, in show_name() argument
142 struct device_attribute *devattr, in show_amb_alarm() argument
145 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_amb_alarm()
156 struct device_attribute *devattr, in store_amb_min() argument
160 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_min()
176 struct device_attribute *devattr, in store_amb_mid() argument
180 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_mid()
196 struct device_attribute *devattr, in store_amb_max() argument
200 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in store_amb_max()
216 struct device_attribute *devattr, in show_amb_min() argument
[all …]
Dabituguru.c798 struct device_attribute *devattr, char *buf) in show_bank1_value() argument
800 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank1_value()
809 struct device_attribute *devattr, char *buf) in show_bank1_setting() argument
811 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank1_setting()
819 struct device_attribute *devattr, char *buf) in show_bank2_value() argument
821 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank2_value()
830 struct device_attribute *devattr, char *buf) in show_bank2_setting() argument
832 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in show_bank2_setting()
840 *devattr, const char *buf, size_t count) in store_bank1_setting()
842 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(devattr); in store_bank1_setting()
[all …]
Dpc87427.c388 *devattr, char *buf) in show_fan_input()
391 int nr = to_sensor_dev_attr(devattr)->index; in show_fan_input()
397 *devattr, char *buf) in show_fan_min()
400 int nr = to_sensor_dev_attr(devattr)->index; in show_fan_min()
406 *devattr, char *buf) in show_fan_alarm()
409 int nr = to_sensor_dev_attr(devattr)->index; in show_fan_alarm()
416 *devattr, char *buf) in show_fan_fault()
419 int nr = to_sensor_dev_attr(devattr)->index; in show_fan_fault()
426 *devattr, const char *buf, size_t count) in set_fan_min()
429 int nr = to_sensor_dev_attr(devattr)->index; in set_fan_min()
[all …]
Dsmsc47m1.c170 *devattr, char *buf) in get_fan()
172 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in get_fan()
189 *devattr, char *buf) in get_fan_min()
191 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in get_fan_min()
200 *devattr, char *buf) in get_fan_div()
202 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in get_fan_div()
208 *devattr, char *buf) in get_fan_alarm()
210 int bitnr = to_sensor_dev_attr(devattr)->index; in get_fan_alarm()
216 *devattr, char *buf) in get_pwm()
218 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in get_pwm()
[all …]
Demc6w201.c193 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
197 int sf = to_sensor_dev_attr_2(devattr)->index; in show_in()
198 int nr = to_sensor_dev_attr_2(devattr)->nr; in show_in()
204 static ssize_t set_in(struct device *dev, struct device_attribute *devattr, in set_in() argument
209 int sf = to_sensor_dev_attr_2(devattr)->index; in set_in()
210 int nr = to_sensor_dev_attr_2(devattr)->nr; in set_in()
231 static ssize_t show_temp(struct device *dev, struct device_attribute *devattr, in show_temp() argument
235 int sf = to_sensor_dev_attr_2(devattr)->index; in show_temp()
236 int nr = to_sensor_dev_attr_2(devattr)->nr; in show_temp()
241 static ssize_t set_temp(struct device *dev, struct device_attribute *devattr, in set_temp() argument
[all …]
Dw83627hf.c414 show_in_input(struct device *dev, struct device_attribute *devattr, char *buf) in show_in_input() argument
416 int nr = to_sensor_dev_attr(devattr)->index; in show_in_input()
421 show_in_min(struct device *dev, struct device_attribute *devattr, char *buf) in show_in_min() argument
423 int nr = to_sensor_dev_attr(devattr)->index; in show_in_min()
428 show_in_max(struct device *dev, struct device_attribute *devattr, char *buf) in show_in_max() argument
430 int nr = to_sensor_dev_attr(devattr)->index; in show_in_max()
435 store_in_min(struct device *dev, struct device_attribute *devattr, in store_in_min() argument
438 int nr = to_sensor_dev_attr(devattr)->index; in store_in_min()
454 store_in_max(struct device *dev, struct device_attribute *devattr, in store_in_max() argument
457 int nr = to_sensor_dev_attr(devattr)->index; in store_in_max()
[all …]
Dsch5627.c208 static ssize_t show_name(struct device *dev, struct device_attribute *devattr, in show_name() argument
215 *devattr, char *buf) in show_temp()
217 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp()
229 *devattr, char *buf) in show_temp_fault()
231 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_fault()
241 *devattr, char *buf) in show_temp_max()
243 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_max()
252 *devattr, char *buf) in show_temp_crit()
254 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_crit()
263 *devattr, char *buf) in show_fan()
[all …]
Dadm9240.c193 static ssize_t show_max(struct device *dev, struct device_attribute *devattr, in show_max() argument
196 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_max()
201 static ssize_t set_max(struct device *dev, struct device_attribute *devattr, in set_max() argument
204 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_max()
229 static ssize_t show_in(struct device *dev, struct device_attribute *devattr, in show_in() argument
232 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in()
239 struct device_attribute *devattr, char *buf) in show_in_min() argument
241 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in_min()
248 struct device_attribute *devattr, char *buf) in show_in_max() argument
250 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in_max()
[all …]
Dsch5636.c173 static ssize_t show_name(struct device *dev, struct device_attribute *devattr, in show_name() argument
180 *devattr, char *buf) in show_in_value()
182 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in_value()
196 *devattr, char *buf) in show_in_label()
198 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_in_label()
205 *devattr, char *buf) in show_temp_value()
207 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_value()
219 *devattr, char *buf) in show_temp_fault()
221 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_temp_fault()
233 *devattr, char *buf) in show_temp_alarm()
[all …]
Dfschmd.c335 struct device_attribute *devattr, char *buf) in show_in_value() argument
338 int index = to_sensor_dev_attr(devattr)->index; in show_in_value()
353 struct device_attribute *devattr, char *buf) in show_temp_value() argument
355 int index = to_sensor_dev_attr(devattr)->index; in show_temp_value()
362 struct device_attribute *devattr, char *buf) in show_temp_max() argument
364 int index = to_sensor_dev_attr(devattr)->index; in show_temp_max()
371 *devattr, const char *buf, size_t count) in store_temp_max()
373 int index = to_sensor_dev_attr(devattr)->index; in store_temp_max()
394 struct device_attribute *devattr, char *buf) in show_temp_fault() argument
396 int index = to_sensor_dev_attr(devattr)->index; in show_temp_fault()
[all …]
Dadm1021.c138 struct device_attribute *devattr, char *buf) in show_temp() argument
140 int index = to_sensor_dev_attr(devattr)->index; in show_temp()
147 struct device_attribute *devattr, char *buf) in show_temp_max() argument
149 int index = to_sensor_dev_attr(devattr)->index; in show_temp_max()
156 struct device_attribute *devattr, char *buf) in show_temp_min() argument
158 int index = to_sensor_dev_attr(devattr)->index; in show_temp_min()
181 struct device_attribute *devattr, in set_temp_max() argument
184 int index = to_sensor_dev_attr(devattr)->index; in set_temp_max()
206 struct device_attribute *devattr, in set_temp_min() argument
209 int index = to_sensor_dev_attr(devattr)->index; in set_temp_min()
[all …]
Dmax1668.c143 struct device_attribute *devattr, char *buf) in show_temp() argument
145 int index = to_sensor_dev_attr(devattr)->index; in show_temp()
155 struct device_attribute *devattr, char *buf) in show_temp_max() argument
157 int index = to_sensor_dev_attr(devattr)->index; in show_temp_max()
167 struct device_attribute *devattr, char *buf) in show_temp_min() argument
169 int index = to_sensor_dev_attr(devattr)->index; in show_temp_min()
191 struct device_attribute *devattr, char *buf) in show_fault() argument
193 int index = to_sensor_dev_attr(devattr)->index; in show_fault()
204 struct device_attribute *devattr, in set_temp_max() argument
207 int index = to_sensor_dev_attr(devattr)->index; in set_temp_max()
[all …]
Damc6821.c219 struct device_attribute *devattr, in get_temp() argument
223 int ix = to_sensor_dev_attr(devattr)->index; in get_temp()
261 struct device_attribute *devattr, in get_temp_alarm() argument
265 int ix = to_sensor_dev_attr(devattr)->index; in get_temp_alarm()
302 struct device_attribute *devattr, in get_temp2_fault() argument
314 struct device_attribute *devattr, in get_pwm1() argument
323 struct device_attribute *devattr, in set_pwm1() argument
343 struct device_attribute *devattr, in get_pwm1_enable() argument
399 struct device_attribute *devattr, in get_pwm1_auto_channels_temp() argument
409 struct device_attribute *devattr, in get_temp_auto_point_temp() argument
[all …]
Dmc13783-adc.c44 *devattr, char *buf) in mc13783_adc_show_name()
52 struct device_attribute *devattr, unsigned int *val) in mc13783_adc_read() argument
55 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in mc13783_adc_read()
74 struct device_attribute *devattr, char *buf) in mc13783_adc_read_bp() argument
79 int ret = mc13783_adc_read(dev, devattr, &val); in mc13783_adc_read_bp()
97 struct device_attribute *devattr, char *buf) in mc13783_adc_read_gp() argument
100 int ret = mc13783_adc_read(dev, devattr, &val); in mc13783_adc_read_gp()
Dtmp421.c128 struct device_attribute *devattr, char *buf) in show_temp_value() argument
130 int index = to_sensor_dev_attr(devattr)->index; in show_temp_value()
145 struct device_attribute *devattr, char *buf) in show_fault() argument
147 int index = to_sensor_dev_attr(devattr)->index; in show_fault()
165 struct device_attribute *devattr; in tmp421_is_visible() local
168 devattr = container_of(a, struct device_attribute, attr); in tmp421_is_visible()
169 index = to_sensor_dev_attr(devattr)->index; in tmp421_is_visible()
Dadcxx.c61 struct device_attribute *devattr, char *buf) in adcxx_read() argument
64 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in adcxx_read()
98 struct device_attribute *devattr, char *buf) in adcxx_show_min() argument
105 struct device_attribute *devattr, char *buf) in adcxx_show_max() argument
122 struct device_attribute *devattr, const char *buf, size_t count) in adcxx_set_max() argument
142 *devattr, char *buf) in adcxx_show_name()
Dlm63.c351 static ssize_t show_fan(struct device *dev, struct device_attribute *devattr, in show_fan() argument
354 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_fan()
381 static ssize_t show_pwm1(struct device *dev, struct device_attribute *devattr, in show_pwm1() argument
384 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_pwm1()
399 static ssize_t set_pwm1(struct device *dev, struct device_attribute *devattr, in set_pwm1() argument
402 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in set_pwm1()
477 struct device_attribute *devattr, in show_local_temp8() argument
480 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_local_temp8()
486 struct device_attribute *devattr, in show_remote_temp8() argument
489 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in show_remote_temp8()
[all …]
/drivers/misc/
Dics932s401.c161 struct device_attribute *devattr, in show_spread_enabled() argument
208 struct device_attribute *devattr, in show_cpu_clock() argument
217 struct device_attribute *devattr, in show_cpu_clock_sel() argument
264 struct device_attribute *devattr, in show_src_clock() argument
273 struct device_attribute *devattr, in show_src_clock_sel() argument
312 struct device_attribute *devattr, in show_pci_clock() argument
321 struct device_attribute *devattr, in show_pci_clock_sel() argument
336 struct device_attribute *devattr,
340 struct device_attribute *devattr,
372 struct device_attribute *devattr, in show_value() argument
[all …]

123