| /Linux-v5.4/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 | 968 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, show_in, NULL, 0); 969 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, show_in, NULL, 1); 970 static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, show_in, NULL, 2); 971 static SENSOR_DEVICE_ATTR(in3_input, S_IRUGO, show_in, NULL, 3); 972 static SENSOR_DEVICE_ATTR(in4_input, S_IRUGO, show_in, NULL, 4); 973 static SENSOR_DEVICE_ATTR(in5_input, S_IRUGO, show_in, NULL, 5); 974 static SENSOR_DEVICE_ATTR(in6_input, S_IRUGO, show_in, NULL, 6); 975 static SENSOR_DEVICE_ATTR(in7_input, S_IRUGO, show_in, NULL, 7); 976 static SENSOR_DEVICE_ATTR(in8_input, S_IRUGO, show_in, NULL, 8); 977 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 | 149 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 …]
|
| D | f75375s.c | 658 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, show_in, NULL, 0); 659 static SENSOR_DEVICE_ATTR(in0_max, S_IRUGO|S_IWUSR, 661 static SENSOR_DEVICE_ATTR(in0_min, S_IRUGO|S_IWUSR, 663 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, show_in, NULL, 1); 664 static SENSOR_DEVICE_ATTR(in1_max, S_IRUGO|S_IWUSR, 666 static SENSOR_DEVICE_ATTR(in1_min, S_IRUGO|S_IWUSR, 668 static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, show_in, NULL, 2); 669 static SENSOR_DEVICE_ATTR(in2_max, S_IRUGO|S_IWUSR, 671 static SENSOR_DEVICE_ATTR(in2_min, S_IRUGO|S_IWUSR, 673 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 | 1087 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 …]
|
| D | s3c-hwmon.c | 98 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);
|
| D | asb100.c | 271 static SENSOR_DEVICE_ATTR(in##offset##_input, S_IRUGO, \ 273 static SENSOR_DEVICE_ATTR(in##offset##_min, S_IRUGO | S_IWUSR, \ 275 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \ 390 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \ 392 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \ 394 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \ 460 static SENSOR_DEVICE_ATTR(temp##num##_input, S_IRUGO, \ 462 static SENSOR_DEVICE_ATTR(temp##num##_max, S_IRUGO | S_IWUSR, \ 464 static SENSOR_DEVICE_ATTR(temp##num##_max_hyst, S_IRUGO | S_IWUSR, \ 527 static SENSOR_DEVICE_ATTR(in0_alarm, S_IRUGO, show_alarm, NULL, 0); [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 | 121 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0); 122 static SENSOR_DEVICE_ATTR(temp1_max, S_IRUGO, show_temp, NULL, 1);
|
| D | max1111.c | 123 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-v5.4/drivers/platform/mips/ |
| D | cpu_hwmon.c | 48 static SENSOR_DEVICE_ATTR(name, S_IRUGO, get_hwmon_name, NULL, 0); 72 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, get_cpu_temp, NULL, 1); 73 static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, cpu_temp_label, NULL, 1); 74 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, get_cpu_temp, NULL, 2); 75 static SENSOR_DEVICE_ATTR(temp2_label, S_IRUGO, cpu_temp_label, NULL, 2); 76 static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, get_cpu_temp, NULL, 3); 77 static SENSOR_DEVICE_ATTR(temp3_label, S_IRUGO, cpu_temp_label, NULL, 3); 78 static SENSOR_DEVICE_ATTR(temp4_input, S_IRUGO, get_cpu_temp, NULL, 4); 79 static SENSOR_DEVICE_ATTR(temp4_label, S_IRUGO, cpu_temp_label, NULL, 4);
|
| /Linux-v5.4/drivers/hwmon/occ/ |
| D | sysfs.c | 83 static SENSOR_DEVICE_ATTR(occ_master, 0444, occ_sysfs_show, NULL, 0); 84 static SENSOR_DEVICE_ATTR(occ_active, 0444, occ_sysfs_show, NULL, 1); 85 static SENSOR_DEVICE_ATTR(occ_dvfs_overtemp, 0444, occ_sysfs_show, NULL, 2); 86 static SENSOR_DEVICE_ATTR(occ_dvfs_power, 0444, occ_sysfs_show, NULL, 3); 87 static SENSOR_DEVICE_ATTR(occ_mem_throttle, 0444, occ_sysfs_show, NULL, 4); 88 static SENSOR_DEVICE_ATTR(occ_quick_pwr_drop, 0444, occ_sysfs_show, NULL, 5); 89 static SENSOR_DEVICE_ATTR(occ_state, 0444, occ_sysfs_show, NULL, 6); 90 static SENSOR_DEVICE_ATTR(occs_present, 0444, occ_sysfs_show, NULL, 7);
|
| /Linux-v5.4/include/linux/ |
| D | hwmon-sysfs.h | 32 #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-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_pm.c | 2213 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_EDGE); 2214 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 0); 2215 static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 1); 2216 static SENSOR_DEVICE_ATTR(temp1_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP… 2217 static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_JUNCTION); 2218 static SENSOR_DEVICE_ATTR(temp2_crit, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 0); 2219 static SENSOR_DEVICE_ATTR(temp2_crit_hyst, S_IRUGO, amdgpu_hwmon_show_hotspot_temp_thresh, NULL, 1); 2220 static SENSOR_DEVICE_ATTR(temp2_emergency, S_IRUGO, amdgpu_hwmon_show_temp_emergency, NULL, PP_TEMP… 2221 static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, amdgpu_hwmon_show_temp, NULL, PP_TEMP_MEM); 2222 static SENSOR_DEVICE_ATTR(temp3_crit, S_IRUGO, amdgpu_hwmon_show_mem_temp_thresh, NULL, 0); [all …]
|
| /Linux-v5.4/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-v5.4/Documentation/hwmon/ |
| D | hwmon-kernel-api.rst | 353 SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 can be used to define attributes 354 which need such additional context information. SENSOR_DEVICE_ATTR requires 357 Simplified variants of SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 are available 359 feasible. Standard permissions are 0644 for SENSOR_DEVICE_ATTR[_2]_RW, 360 0444 for SENSOR_DEVICE_ATTR[_2]_RO, and 0200 for SENSOR_DEVICE_ATTR[_2]_WO. 364 SENSOR_DEVICE_ATTR and its variants define a struct sensor_device_attribute
|
| /Linux-v5.4/drivers/net/wireless/ath/ath10k/ |
| D | thermal.c | 116 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath10k_thermal_show_temp,
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | radeon_pm.c | 707 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, radeon_hwmon_show_temp, NULL, 0); 708 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, radeon_hwmon_show_temp_thresh, NULL, 0); 709 static SENSOR_DEVICE_ATTR(temp1_crit_hyst, S_IRUGO, radeon_hwmon_show_temp_thresh, NULL, 1); 710 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, radeon_hwmon_get_pwm1, radeon_hwmon_set_pwm1, 0); 711 static SENSOR_DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, radeon_hwmon_get_pwm1_enable, radeon_hwmo… 712 static SENSOR_DEVICE_ATTR(pwm1_min, S_IRUGO, radeon_hwmon_get_pwm1_min, NULL, 0); 713 static SENSOR_DEVICE_ATTR(pwm1_max, S_IRUGO, radeon_hwmon_get_pwm1_max, NULL, 0);
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-rv3029c2.c | 751 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, rv3029_hwmon_show_temp, 753 static SENSOR_DEVICE_ATTR(update_interval, S_IWUSR | S_IRUGO,
|
| /Linux-v5.4/drivers/ntb/hw/idt/ |
| D | ntb_hw_idt.c | 2048 static SENSOR_DEVICE_ATTR(temp1_input, 0444, idt_sysfs_show_temp, NULL, 2050 static SENSOR_DEVICE_ATTR(temp1_lowest, 0444, idt_sysfs_show_temp, NULL, 2052 static SENSOR_DEVICE_ATTR(temp1_highest, 0444, idt_sysfs_show_temp, NULL, 2054 static SENSOR_DEVICE_ATTR(temp1_offset, 0644, idt_sysfs_show_temp,
|