Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.c150 static SENSOR_DEVICE_ATTR(fan##index##_speed, S_IRUGO | S_IWUSR, \
152 static SENSOR_DEVICE_ATTR(fan##index##_fault, S_IRUGO, \
161 static SENSOR_DEVICE_ATTR(psu_fan_fault, S_IRUGO, show_fan_fault, NULL, 6);
174 static SENSOR_DEVICE_ATTR(adt7462_local_temp, S_IRUGO, show_temp, NULL, 0);
175 static SENSOR_DEVICE_ATTR(cpu0_temp, S_IRUGO, show_temp, NULL, 1);
176 static SENSOR_DEVICE_ATTR(cpu1_temp, S_IRUGO, show_temp, NULL, 2);
177 static SENSOR_DEVICE_ATTR(motherboard_temp, S_IRUGO, show_temp, NULL, 3);
178 static SENSOR_DEVICE_ATTR(lm95221_local_temp, S_IRUGO, show_temp, NULL, 4);
179 static SENSOR_DEVICE_ATTR(fire_temp, S_IRUGO, show_temp, NULL, 5);
180 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.c1284 static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO | S_IWUSR, show_temp_type,
1286 static SENSOR_DEVICE_ATTR(temp2_type, S_IRUGO | S_IWUSR, show_temp_type,
1288 static SENSOR_DEVICE_ATTR(temp3_type, S_IRUGO | S_IWUSR, show_temp_type,
1886 static SENSOR_DEVICE_ATTR(fan1_div, S_IRUGO | S_IWUSR, show_fan_div,
1892 static SENSOR_DEVICE_ATTR(fan2_div, S_IRUGO | S_IWUSR, show_fan_div,
1898 static SENSOR_DEVICE_ATTR(fan3_div, S_IRUGO | S_IWUSR, show_fan_div,
1913 static SENSOR_DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR,
1915 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_pwm, set_pwm, 0);
1916 static SENSOR_DEVICE_ATTR(pwm1_freq, S_IRUGO | S_IWUSR, show_pwm_freq,
1918 static SENSOR_DEVICE_ATTR(pwm1_auto_channels_temp, S_IRUGO,
[all …]
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.c789 static SENSOR_DEVICE_ATTR(intrusion0_alarm, 0644, nct6775_show_alarm,
791 static SENSOR_DEVICE_ATTR(intrusion1_alarm, 0644, nct6775_show_alarm,
793 static SENSOR_DEVICE_ATTR(intrusion0_beep, 0644, nct6775_show_beep,
795 static SENSOR_DEVICE_ATTR(intrusion1_beep, 0644, nct6775_show_beep,
797 static SENSOR_DEVICE_ATTR(beep_enable, 0644, nct6775_show_beep,
Dmax1111.c124 SENSOR_DEVICE_ATTR(in##_id##_input, S_IRUGO, show_adc, NULL, _id)
Dmax197.c216 static SENSOR_DEVICE_ATTR(in##chan##_input, S_IRUGO, \
/linux-6.6.21/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-6.6.21/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-6.6.21/include/linux/
Dhwmon-sysfs.h33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ macro
38 SENSOR_DEVICE_ATTR(_name, 0444, _func##_show, NULL, _index)
41 SENSOR_DEVICE_ATTR(_name, 0644, _func##_show, _func##_store, _index)
44 SENSOR_DEVICE_ATTR(_name, 0200, NULL, _func##_store, _index)
/linux-6.6.21/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c3085 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_EDGE);
3086 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 0);
3087 static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 1);
3088 static SENSOR_DEVICE_ATTR(temp1_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP…
3089 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_JUNCTION);
3090 static SENSOR_DEVICE_ATTR(temp2_crit, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 0);
3091 static SENSOR_DEVICE_ATTR(temp2_crit_hyst, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 1);
3092 static SENSOR_DEVICE_ATTR(temp2_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP…
3093 static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_MEM);
3094 static SENSOR_DEVICE_ATTR(temp3_crit, S_IRUGO, amdgpu_hwmon_show_mem_temp_thresh, NULL, 0);
[all …]
/linux-6.6.21/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-6.6.21/Documentation/hwmon/
Dhwmon-kernel-api.rst341 SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 can be used to define attributes
342 which need such additional context information. SENSOR_DEVICE_ATTR requires
345 Simplified variants of SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 are available
347 feasible. Standard permissions are 0644 for SENSOR_DEVICE_ATTR[_2]_RW,
348 0444 for SENSOR_DEVICE_ATTR[_2]_RO, and 0200 for SENSOR_DEVICE_ATTR[_2]_WO.
352 SENSOR_DEVICE_ATTR and its variants define a struct sensor_device_attribute
/linux-6.6.21/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-6.6.21/drivers/net/wireless/ath/ath10k/
Dthermal.c116 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath10k_thermal_show_temp,
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dthermal.c117 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath11k_thermal_show_temp,

12