Home
last modified time | relevance | path

Searched refs:SENSOR_DEVICE_ATTR (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v6.1/drivers/hwmon/
Dmax1668.c243 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
244 static SENSOR_DEVICE_ATTR(temp1_max, S_IRUGO, show_temp_max,
246 static SENSOR_DEVICE_ATTR(temp1_min, S_IRUGO, show_temp_min,
248 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_temp, NULL, 1);
249 static SENSOR_DEVICE_ATTR(temp2_max, S_IRUGO, show_temp_max,
251 static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO, show_temp_min,
253 static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, show_temp, NULL, 2);
254 static SENSOR_DEVICE_ATTR(temp3_max, S_IRUGO, show_temp_max,
256 static SENSOR_DEVICE_ATTR(temp3_min, S_IRUGO, show_temp_min,
258 static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, show_temp, NULL, 3);
[all …]
Dw83792d.c961 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, show_in, NULL, 0);
962 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, show_in, NULL, 1);
963 static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, show_in, NULL, 2);
964 static SENSOR_DEVICE_ATTR(in3_input, S_IRUGO, show_in, NULL, 3);
965 static SENSOR_DEVICE_ATTR(in4_input, S_IRUGO, show_in, NULL, 4);
966 static SENSOR_DEVICE_ATTR(in5_input, S_IRUGO, show_in, NULL, 5);
967 static SENSOR_DEVICE_ATTR(in6_input, S_IRUGO, show_in, NULL, 6);
968 static SENSOR_DEVICE_ATTR(in7_input, S_IRUGO, show_in, NULL, 7);
969 static SENSOR_DEVICE_ATTR(in8_input, S_IRUGO, show_in, NULL, 8);
970 static SENSOR_DEVICE_ATTR(in0_min, S_IWUSR | S_IRUGO,
[all …]
Df71805f.c984 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, show_in0, NULL, 0);
985 static SENSOR_DEVICE_ATTR(in0_max, S_IRUGO | S_IWUSR,
987 static SENSOR_DEVICE_ATTR(in0_min, S_IRUGO | S_IWUSR,
989 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, show_in, NULL, 1);
990 static SENSOR_DEVICE_ATTR(in1_max, S_IRUGO | S_IWUSR,
992 static SENSOR_DEVICE_ATTR(in1_min, S_IRUGO | S_IWUSR,
994 static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, show_in, NULL, 2);
995 static SENSOR_DEVICE_ATTR(in2_max, S_IRUGO | S_IWUSR,
997 static SENSOR_DEVICE_ATTR(in2_min, S_IRUGO | S_IWUSR,
999 static SENSOR_DEVICE_ATTR(in3_input, S_IRUGO, show_in, NULL, 3);
[all …]
Dlm63.c740 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
741 static SENSOR_DEVICE_ATTR(fan1_min, S_IWUSR | S_IRUGO, show_fan,
744 static SENSOR_DEVICE_ATTR(pwm1, S_IWUSR | S_IRUGO, show_pwm1, set_pwm1, 0);
746 static SENSOR_DEVICE_ATTR(pwm1_auto_point1_pwm, S_IWUSR | S_IRUGO,
748 static SENSOR_DEVICE_ATTR(pwm1_auto_point1_temp, S_IWUSR | S_IRUGO,
750 static SENSOR_DEVICE_ATTR(pwm1_auto_point1_temp_hyst, S_IRUGO,
752 static SENSOR_DEVICE_ATTR(pwm1_auto_point2_pwm, S_IWUSR | S_IRUGO,
754 static SENSOR_DEVICE_ATTR(pwm1_auto_point2_temp, S_IWUSR | S_IRUGO,
756 static SENSOR_DEVICE_ATTR(pwm1_auto_point2_temp_hyst, S_IRUGO,
758 static SENSOR_DEVICE_ATTR(pwm1_auto_point3_pwm, S_IWUSR | S_IRUGO,
[all …]
Dultra45_env.c149 static SENSOR_DEVICE_ATTR(fan##index##_speed, S_IRUGO | S_IWUSR, \
151 static SENSOR_DEVICE_ATTR(fan##index##_fault, S_IRUGO, \
160 static SENSOR_DEVICE_ATTR(psu_fan_fault, S_IRUGO, show_fan_fault, NULL, 6);
173 static SENSOR_DEVICE_ATTR(adt7462_local_temp, S_IRUGO, show_temp, NULL, 0);
174 static SENSOR_DEVICE_ATTR(cpu0_temp, S_IRUGO, show_temp, NULL, 1);
175 static SENSOR_DEVICE_ATTR(cpu1_temp, S_IRUGO, show_temp, NULL, 2);
176 static SENSOR_DEVICE_ATTR(motherboard_temp, S_IRUGO, show_temp, NULL, 3);
177 static SENSOR_DEVICE_ATTR(lm95221_local_temp, S_IRUGO, show_temp, NULL, 4);
178 static SENSOR_DEVICE_ATTR(fire_temp, S_IRUGO, show_temp, NULL, 5);
179 static SENSOR_DEVICE_ATTR(lsi1064_local_temp, S_IRUGO, show_temp, NULL, 6);
[all …]
Df75375s.c657 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, show_in, NULL, 0);
658 static SENSOR_DEVICE_ATTR(in0_max, S_IRUGO|S_IWUSR,
660 static SENSOR_DEVICE_ATTR(in0_min, S_IRUGO|S_IWUSR,
662 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, show_in, NULL, 1);
663 static SENSOR_DEVICE_ATTR(in1_max, S_IRUGO|S_IWUSR,
665 static SENSOR_DEVICE_ATTR(in1_min, S_IRUGO|S_IWUSR,
667 static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, show_in, NULL, 2);
668 static SENSOR_DEVICE_ATTR(in2_max, S_IRUGO|S_IWUSR,
670 static SENSOR_DEVICE_ATTR(in2_min, S_IRUGO|S_IWUSR,
672 static SENSOR_DEVICE_ATTR(in3_input, S_IRUGO, show_in, NULL, 3);
[all …]
Dw83781d.c282 static SENSOR_DEVICE_ATTR(in##offset##_input, S_IRUGO, \
284 static SENSOR_DEVICE_ATTR(in##offset##_min, S_IRUGO | S_IWUSR, \
286 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
336 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, show_fan, NULL, 0);
337 static SENSOR_DEVICE_ATTR(fan1_min, S_IRUGO | S_IWUSR,
339 static SENSOR_DEVICE_ATTR(fan2_input, S_IRUGO, show_fan, NULL, 1);
340 static SENSOR_DEVICE_ATTR(fan2_min, S_IRUGO | S_IWUSR,
342 static SENSOR_DEVICE_ATTR(fan3_input, S_IRUGO, show_fan, NULL, 2);
343 static SENSOR_DEVICE_ATTR(fan3_min, S_IRUGO | S_IWUSR,
394 static SENSOR_DEVICE_ATTR(temp##offset##_input, S_IRUGO, \
[all …]
Dwm831x-hwmon.c71 static SENSOR_DEVICE_ATTR(in##id##_input, S_IRUGO, show_voltage, \
76 static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \
90 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_chip_temp, NULL,
92 static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, show_label, NULL,
98 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_voltage, NULL,
100 static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, show_label, NULL,
Dit87.c1087 static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR, show_temp_type,
1089 static SENSOR_DEVICE_ATTR(temp2_type, S_IRUGO | S_IWUSR, show_temp_type,
1091 static SENSOR_DEVICE_ATTR(temp3_type, S_IRUGO | S_IWUSR, show_temp_type,
1627 static SENSOR_DEVICE_ATTR(fan1_div, S_IRUGO | S_IWUSR, show_fan_div,
1633 static SENSOR_DEVICE_ATTR(fan2_div, S_IRUGO | S_IWUSR, show_fan_div,
1639 static SENSOR_DEVICE_ATTR(fan3_div, S_IRUGO | S_IWUSR, show_fan_div,
1654 static SENSOR_DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR,
1656 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0);
1657 static SENSOR_DEVICE_ATTR(pwm1_freq, S_IRUGO | S_IWUSR, show_pwm_freq,
1659 static SENSOR_DEVICE_ATTR(pwm1_auto_channels_temp, S_IRUGO,
[all …]
Ds3c-hwmon.c98 static SENSOR_DEVICE_ATTR(adc0_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 0);
99 static SENSOR_DEVICE_ATTR(adc1_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 1);
100 static SENSOR_DEVICE_ATTR(adc2_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 2);
101 static SENSOR_DEVICE_ATTR(adc3_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 3);
102 static SENSOR_DEVICE_ATTR(adc4_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 4);
103 static SENSOR_DEVICE_ATTR(adc5_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 5);
104 static SENSOR_DEVICE_ATTR(adc6_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 6);
105 static SENSOR_DEVICE_ATTR(adc7_raw, S_IRUGO, s3c_hwmon_show_raw, NULL, 7);
Dasb100.c270 static SENSOR_DEVICE_ATTR(in##offset##_input, S_IRUGO, \
272 static SENSOR_DEVICE_ATTR(in##offset##_min, S_IRUGO | S_IWUSR, \
274 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
389 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \
391 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
393 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
459 static SENSOR_DEVICE_ATTR(temp##num##_input, S_IRUGO, \
461 static SENSOR_DEVICE_ATTR(temp##num##_max, S_IRUGO | S_IWUSR, \
463 static SENSOR_DEVICE_ATTR(temp##num##_max_hyst, S_IRUGO | S_IWUSR, \
526 static SENSOR_DEVICE_ATTR(in0_alarm, S_IRUGO, show_alarm, NULL, 0);
[all …]
Dw83627ehf.c937 static SENSOR_DEVICE_ATTR(pwm1_target, 0644, show_target_temp,
939 static SENSOR_DEVICE_ATTR(pwm2_target, 0644, show_target_temp,
941 static SENSOR_DEVICE_ATTR(pwm3_target, 0644, show_target_temp,
943 static SENSOR_DEVICE_ATTR(pwm4_target, 0644, show_target_temp,
946 static SENSOR_DEVICE_ATTR(pwm1_tolerance, 0644, show_tolerance,
948 static SENSOR_DEVICE_ATTR(pwm2_tolerance, 0644, show_tolerance,
950 static SENSOR_DEVICE_ATTR(pwm3_tolerance, 0644, show_tolerance,
952 static SENSOR_DEVICE_ATTR(pwm4_tolerance, 0644, show_tolerance,
1029 static SENSOR_DEVICE_ATTR(pwm4_stop_time, 0644, show_fan_stop_time,
1031 static SENSOR_DEVICE_ATTR(pwm4_start_output, 0644, show_fan_start_output,
[all …]
Dwm8350-hwmon.c47 static SENSOR_DEVICE_ATTR(in##id##_input, S_IRUGO, show_voltage,\
49 static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \
Dw83l785ts.c120 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
121 static SENSOR_DEVICE_ATTR(temp1_max, S_IRUGO, show_temp, NULL, 1);
Dnct6775-platform.c749 static SENSOR_DEVICE_ATTR(intrusion0_alarm, 0644, nct6775_show_alarm,
751 static SENSOR_DEVICE_ATTR(intrusion1_alarm, 0644, nct6775_show_alarm,
753 static SENSOR_DEVICE_ATTR(intrusion0_beep, 0644, nct6775_show_beep,
755 static SENSOR_DEVICE_ATTR(intrusion1_beep, 0644, nct6775_show_beep,
757 static SENSOR_DEVICE_ATTR(beep_enable, 0644, nct6775_show_beep,
Dmax1111.c123 SENSOR_DEVICE_ATTR(in##_id##_input, S_IRUGO, show_adc, NULL, _id)
/Linux-v6.1/drivers/platform/mips/
Dcpu_hwmon.c75 static SENSOR_DEVICE_ATTR(temp1_input, 0444, get_cpu_temp, NULL, 1);
76 static SENSOR_DEVICE_ATTR(temp1_label, 0444, cpu_temp_label, NULL, 1);
77 static SENSOR_DEVICE_ATTR(temp2_input, 0444, get_cpu_temp, NULL, 2);
78 static SENSOR_DEVICE_ATTR(temp2_label, 0444, cpu_temp_label, NULL, 2);
79 static SENSOR_DEVICE_ATTR(temp3_input, 0444, get_cpu_temp, NULL, 3);
80 static SENSOR_DEVICE_ATTR(temp3_label, 0444, cpu_temp_label, NULL, 3);
81 static SENSOR_DEVICE_ATTR(temp4_input, 0444, get_cpu_temp, NULL, 4);
82 static SENSOR_DEVICE_ATTR(temp4_label, 0444, cpu_temp_label, NULL, 4);
/Linux-v6.1/drivers/hwmon/occ/
Dsysfs.c126 static SENSOR_DEVICE_ATTR(occ_master, 0444, occ_sysfs_show, NULL, 0);
127 static SENSOR_DEVICE_ATTR(occ_active, 0644, occ_sysfs_show, occ_active_store,
129 static SENSOR_DEVICE_ATTR(occ_dvfs_overtemp, 0444, occ_sysfs_show, NULL, 2);
130 static SENSOR_DEVICE_ATTR(occ_dvfs_power, 0444, occ_sysfs_show, NULL, 3);
131 static SENSOR_DEVICE_ATTR(occ_mem_throttle, 0444, occ_sysfs_show, NULL, 4);
132 static SENSOR_DEVICE_ATTR(occ_quick_pwr_drop, 0444, occ_sysfs_show, NULL, 5);
133 static SENSOR_DEVICE_ATTR(occ_state, 0444, occ_sysfs_show, NULL, 6);
134 static SENSOR_DEVICE_ATTR(occs_present, 0444, occ_sysfs_show, NULL, 7);
135 static SENSOR_DEVICE_ATTR(occ_ips_status, 0444, occ_sysfs_show, NULL, 8);
136 static SENSOR_DEVICE_ATTR(occ_mode, 0444, occ_sysfs_show, NULL, 9);
[all …]
/Linux-v6.1/include/linux/
Dhwmon-sysfs.h32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ macro
37 SENSOR_DEVICE_ATTR(_name, 0444, _func##_show, NULL, _index)
40 SENSOR_DEVICE_ATTR(_name, 0644, _func##_show, _func##_store, _index)
43 SENSOR_DEVICE_ATTR(_name, 0200, NULL, _func##_store, _index)
/Linux-v6.1/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c3103 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_EDGE);
3104 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 0);
3105 static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 1);
3106 static SENSOR_DEVICE_ATTR(temp1_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP…
3107 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_JUNCTION);
3108 static SENSOR_DEVICE_ATTR(temp2_crit, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 0);
3109 static SENSOR_DEVICE_ATTR(temp2_crit_hyst, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 1);
3110 static SENSOR_DEVICE_ATTR(temp2_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP…
3111 static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_MEM);
3112 static SENSOR_DEVICE_ATTR(temp3_crit, S_IRUGO, amdgpu_hwmon_show_mem_temp_thresh, NULL, 0);
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c46 static SENSOR_DEVICE_ATTR(temp1_auto_point1_pwm, 0444,
78 static SENSOR_DEVICE_ATTR(temp1_auto_point1_temp, 0644,
111 static SENSOR_DEVICE_ATTR(temp1_auto_point1_temp_hyst, 0644,
166 static SENSOR_DEVICE_ATTR(pwm1_min, 0644,
189 static SENSOR_DEVICE_ATTR(pwm1_max, 0644,
/Linux-v6.1/Documentation/hwmon/
Dhwmon-kernel-api.rst369 SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 can be used to define attributes
370 which need such additional context information. SENSOR_DEVICE_ATTR requires
373 Simplified variants of SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 are available
375 feasible. Standard permissions are 0644 for SENSOR_DEVICE_ATTR[_2]_RW,
376 0444 for SENSOR_DEVICE_ATTR[_2]_RO, and 0200 for SENSOR_DEVICE_ATTR[_2]_WO.
380 SENSOR_DEVICE_ATTR and its variants define a struct sensor_device_attribute
/Linux-v6.1/drivers/gpu/drm/radeon/
Dradeon_pm.c705 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, radeon_hwmon_show_temp, NULL, 0);
706 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, radeon_hwmon_show_temp_thresh, NULL, 0);
707 static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, radeon_hwmon_show_temp_thresh, NULL, 1);
708 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, radeon_hwmon_get_pwm1, radeon_hwmon_set_pwm1, 0);
709 static SENSOR_DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, radeon_hwmon_get_pwm1_enable, radeon_hwmo…
710 static SENSOR_DEVICE_ATTR(pwm1_min, S_IRUGO, radeon_hwmon_get_pwm1_min, NULL, 0);
711 static SENSOR_DEVICE_ATTR(pwm1_max, S_IRUGO, radeon_hwmon_get_pwm1_max, NULL, 0);
735 static SENSOR_DEVICE_ATTR(freq1_input, S_IRUGO, radeon_hwmon_show_sclk, NULL,
756 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, radeon_hwmon_show_vddc, NULL,
/Linux-v6.1/drivers/net/wireless/ath/ath10k/
Dthermal.c116 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath10k_thermal_show_temp,
/Linux-v6.1/drivers/net/wireless/ath/ath11k/
Dthermal.c117 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath11k_thermal_show_temp,

12