Home
last modified time | relevance | path

Searched refs:sensor_attr (Results 1 – 12 of 12) sorted by relevance

/drivers/hwmon/
Dw83792d.c358 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in() local
359 int nr = sensor_attr->index; in show_in()
368 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \
369 int nr = sensor_attr->index; \
382 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \
383 int nr = sensor_attr->index; \
403 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \
404 int nr = sensor_attr->index - 1; \
417 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in store_fan_min() local
418 int nr = sensor_attr->index - 1; in store_fan_min()
[all …]
Dw83793.c269 struct sensor_device_attribute_2 *sensor_attr = in show_vid() local
271 int index = sensor_attr->index; in show_vid()
291 struct sensor_device_attribute_2 *sensor_attr = in show_alarm_beep() local
293 int nr = sensor_attr->nr; in show_alarm_beep()
294 int index = sensor_attr->index >> 3; in show_alarm_beep()
295 int bit = sensor_attr->index & 0x07; in show_alarm_beep()
313 struct sensor_device_attribute_2 *sensor_attr = in store_beep() local
315 int index = sensor_attr->index >> 3; in store_beep()
316 int shift = sensor_attr->index & 0x07; in store_beep()
385 struct sensor_device_attribute_2 *sensor_attr = in show_fan() local
[all …]
Dsmsc47m192.c145 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in() local
146 int nr = sensor_attr->index; in show_in()
154 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min() local
155 int nr = sensor_attr->index; in show_in_min()
163 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max() local
164 int nr = sensor_attr->index; in show_in_max()
172 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min() local
173 int nr = sensor_attr->index; in set_in_min()
189 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max() local
190 int nr = sensor_attr->index; in set_in_max()
[all …]
Dit87.c317 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in() local
318 int nr = sensor_attr->index; in show_in()
327 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min() local
328 int nr = sensor_attr->index; in show_in_min()
337 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max() local
338 int nr = sensor_attr->index; in show_in_max()
347 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min() local
348 int nr = sensor_attr->index; in set_in_min()
363 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max() local
364 int nr = sensor_attr->index; in set_in_max()
[all …]
Dvt8231.c190 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in() local
191 int nr = sensor_attr->index; in show_in()
200 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min() local
201 int nr = sensor_attr->index; in show_in_min()
210 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max() local
211 int nr = sensor_attr->index; in show_in_max()
220 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min() local
221 int nr = sensor_attr->index; in set_in_min()
235 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max() local
236 int nr = sensor_attr->index; in set_in_max()
[all …]
Dw83627ehf.c573 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \
574 int nr = sensor_attr->index; \
587 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \ in show_in_reg()
588 int nr = sensor_attr->index; \ in show_in_reg()
605 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); local
606 int nr = sensor_attr->index;
668 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); \
669 int nr = sensor_attr->index; \
682 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_fan_div() local
683 int nr = sensor_attr->index; in show_fan_div()
[all …]
Dadm1026.c707 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in() local
708 int nr = sensor_attr->index; in show_in()
715 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_min() local
716 int nr = sensor_attr->index; in show_in_min()
723 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_min() local
724 int nr = sensor_attr->index; in set_in_min()
738 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in show_in_max() local
739 int nr = sensor_attr->index; in show_in_max()
746 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in set_in_max() local
747 int nr = sensor_attr->index; in set_in_max()
[all …]
Dw83791d.c366 struct sensor_device_attribute *sensor_attr = \
369 int nr = sensor_attr->index; \
382 struct sensor_device_attribute *sensor_attr = \
387 int nr = sensor_attr->index; \
442 struct sensor_device_attribute *sensor_attr = in show_beep() local
445 int bitnr = sensor_attr->index; in show_beep()
453 struct sensor_device_attribute *sensor_attr = in store_beep() local
457 int bitnr = sensor_attr->index; in store_beep()
481 struct sensor_device_attribute *sensor_attr = in show_alarm() local
484 int bitnr = sensor_attr->index; in show_alarm()
[all …]
Dapplesmc.c651 struct sensor_device_attribute_2 *sensor_attr = in applesmc_show_fan_speed() local
654 newkey[0] = fan_speed_keys[sensor_attr->nr][0]; in applesmc_show_fan_speed()
655 newkey[1] = '0' + sensor_attr->index; in applesmc_show_fan_speed()
656 newkey[2] = fan_speed_keys[sensor_attr->nr][2]; in applesmc_show_fan_speed()
657 newkey[3] = fan_speed_keys[sensor_attr->nr][3]; in applesmc_show_fan_speed()
680 struct sensor_device_attribute_2 *sensor_attr = in applesmc_store_fan_speed() local
688 newkey[0] = fan_speed_keys[sensor_attr->nr][0]; in applesmc_store_fan_speed()
689 newkey[1] = '0' + sensor_attr->index; in applesmc_store_fan_speed()
690 newkey[2] = fan_speed_keys[sensor_attr->nr][2]; in applesmc_store_fan_speed()
691 newkey[3] = fan_speed_keys[sensor_attr->nr][3]; in applesmc_store_fan_speed()
[all …]
Dw83l786ng.c357 struct sensor_device_attribute_2 *sensor_attr = in show_temp() local
359 int nr = sensor_attr->nr; in show_temp()
360 int index = sensor_attr->index; in show_temp()
369 struct sensor_device_attribute_2 *sensor_attr = in store_temp() local
371 int nr = sensor_attr->nr; in store_temp()
372 int index = sensor_attr->index; in store_temp()
/drivers/usb/misc/
Dphidgetkit.c522 #define sensor_attr(value) \ macro
535 sensor_attr(1), sensor_attr(2), sensor_attr(3), sensor_attr(4),
536 sensor_attr(5), sensor_attr(6), sensor_attr(7), sensor_attr(8)
/drivers/platform/x86/
Dthinkpad_acpi.c5053 struct sensor_device_attribute *sensor_attr = in thermal_temp_input_show() local
5055 int idx = sensor_attr->index; in thermal_temp_input_show()