/linux-6.6.21/drivers/hwmon/ |
D | max1668.c | 243 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 …]
|
D | w83792d.c | 961 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 …]
|
D | f71805f.c | 984 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 …]
|
D | lm63.c | 740 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 …]
|
D | ultra45_env.c | 150 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 …]
|
D | f75375s.c | 657 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 …]
|
D | w83781d.c | 282 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 …]
|
D | wm831x-hwmon.c | 71 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,
|
D | it87.c | 1284 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 …]
|
D | asb100.c | 270 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 …]
|
D | w83627ehf.c | 937 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 …]
|
D | wm8350-hwmon.c | 47 static SENSOR_DEVICE_ATTR(in##id##_input, S_IRUGO, show_voltage,\ 49 static SENSOR_DEVICE_ATTR(in##id##_label, S_IRUGO, show_label, \
|
D | w83l785ts.c | 120 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);
|
D | nct6775-platform.c | 789 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,
|
D | max1111.c | 124 SENSOR_DEVICE_ATTR(in##_id##_input, S_IRUGO, show_adc, NULL, _id)
|
D | max197.c | 216 static SENSOR_DEVICE_ATTR(in##chan##_input, S_IRUGO, \
|
/linux-6.6.21/drivers/platform/mips/ |
D | cpu_hwmon.c | 75 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/ |
D | sysfs.c | 126 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/ |
D | hwmon-sysfs.h | 33 #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/ |
D | amdgpu_pm.c | 3085 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/ |
D | nouveau_hwmon.c | 46 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/ |
D | hwmon-kernel-api.rst | 341 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/ |
D | radeon_pm.c | 705 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/ |
D | thermal.c | 116 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath10k_thermal_show_temp,
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | thermal.c | 117 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath11k_thermal_show_temp,
|