/openbmc/linux/drivers/hwmon/ |
H A 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, 249 static SENSOR_DEVICE_ATTR(temp2_max, S_IRUGO, show_temp_max, 251 static SENSOR_DEVICE_ATTR(temp2_min, S_IRUGO, show_temp_min, 254 static SENSOR_DEVICE_ATTR(temp3_max, S_IRUGO, show_temp_max, 256 static SENSOR_DEVICE_ATTR(temp3_min, S_IRUGO, show_temp_min, 259 static SENSOR_DEVICE_ATTR(temp4_max, S_IRUGO, show_temp_max, 261 static SENSOR_DEVICE_ATTR(temp4_min, S_IRUGO, show_temp_min, 264 static SENSOR_DEVICE_ATTR(temp5_max, S_IRUGO, show_temp_max, [all …]
|
H A D | w83792d.c | 970 static SENSOR_DEVICE_ATTR(in0_min, S_IWUSR | S_IRUGO, 972 static SENSOR_DEVICE_ATTR(in1_min, S_IWUSR | S_IRUGO, 974 static SENSOR_DEVICE_ATTR(in2_min, S_IWUSR | S_IRUGO, 976 static SENSOR_DEVICE_ATTR(in3_min, S_IWUSR | S_IRUGO, 978 static SENSOR_DEVICE_ATTR(in4_min, S_IWUSR | S_IRUGO, 980 static SENSOR_DEVICE_ATTR(in5_min, S_IWUSR | S_IRUGO, 982 static SENSOR_DEVICE_ATTR(in6_min, S_IWUSR | S_IRUGO, 984 static SENSOR_DEVICE_ATTR(in7_min, S_IWUSR | S_IRUGO, 986 static SENSOR_DEVICE_ATTR(in8_min, S_IWUSR | S_IRUGO, 988 static SENSOR_DEVICE_ATTR(in0_max, S_IWUSR | S_IRUGO, [all …]
|
H A D | f71805f.c | 985 static SENSOR_DEVICE_ATTR(in0_max, S_IRUGO | S_IWUSR, 987 static SENSOR_DEVICE_ATTR(in0_min, S_IRUGO | S_IWUSR, 990 static SENSOR_DEVICE_ATTR(in1_max, S_IRUGO | S_IWUSR, 992 static SENSOR_DEVICE_ATTR(in1_min, S_IRUGO | S_IWUSR, 995 static SENSOR_DEVICE_ATTR(in2_max, S_IRUGO | S_IWUSR, 997 static SENSOR_DEVICE_ATTR(in2_min, S_IRUGO | S_IWUSR, 1000 static SENSOR_DEVICE_ATTR(in3_max, S_IRUGO | S_IWUSR, 1002 static SENSOR_DEVICE_ATTR(in3_min, S_IRUGO | S_IWUSR, 1005 static SENSOR_DEVICE_ATTR(in4_max, S_IRUGO | S_IWUSR, 1007 static SENSOR_DEVICE_ATTR(in4_min, S_IRUGO | S_IWUSR, [all …]
|
H A 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, \ 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); 179 static SENSOR_DEVICE_ATTR(fire_temp, S_IRUGO, show_temp, NULL, 5); 181 static SENSOR_DEVICE_ATTR(front_panel_temp, S_IRUGO, show_temp, NULL, 7); 182 static SENSOR_DEVICE_ATTR(psu_temp, S_IRUGO, show_temp, NULL, 13); 195 static SENSOR_DEVICE_ATTR(fan_failure, S_IRUGO, show_stat_bit, NULL, 0); 196 static SENSOR_DEVICE_ATTR(env_bus_busy, S_IRUGO, show_stat_bit, NULL, 1); [all …]
|
H A D | lm63.c | 750 static SENSOR_DEVICE_ATTR(pwm1_auto_point1_temp_hyst, S_IRUGO, 756 static SENSOR_DEVICE_ATTR(pwm1_auto_point2_temp_hyst, S_IRUGO, 762 static SENSOR_DEVICE_ATTR(pwm1_auto_point3_temp_hyst, S_IRUGO, 768 static SENSOR_DEVICE_ATTR(pwm1_auto_point4_temp_hyst, S_IRUGO, 774 static SENSOR_DEVICE_ATTR(pwm1_auto_point5_temp_hyst, S_IRUGO, 780 static SENSOR_DEVICE_ATTR(pwm1_auto_point6_temp_hyst, S_IRUGO, 786 static SENSOR_DEVICE_ATTR(pwm1_auto_point7_temp_hyst, S_IRUGO, 792 static SENSOR_DEVICE_ATTR(pwm1_auto_point8_temp_hyst, S_IRUGO, 798 static SENSOR_DEVICE_ATTR(pwm1_auto_point9_temp_hyst, S_IRUGO, 804 static SENSOR_DEVICE_ATTR(pwm1_auto_point10_temp_hyst, S_IRUGO, [all …]
|
H A D | f75375s.c | 658 static SENSOR_DEVICE_ATTR(in0_max, S_IRUGO|S_IWUSR, 660 static SENSOR_DEVICE_ATTR(in0_min, S_IRUGO|S_IWUSR, 663 static SENSOR_DEVICE_ATTR(in1_max, S_IRUGO|S_IWUSR, 665 static SENSOR_DEVICE_ATTR(in1_min, S_IRUGO|S_IWUSR, 668 static SENSOR_DEVICE_ATTR(in2_max, S_IRUGO|S_IWUSR, 670 static SENSOR_DEVICE_ATTR(in2_min, S_IRUGO|S_IWUSR, 673 static SENSOR_DEVICE_ATTR(in3_max, S_IRUGO|S_IWUSR, 699 static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO|S_IWUSR, 703 static SENSOR_DEVICE_ATTR(pwm1_mode, S_IRUGO, 705 static SENSOR_DEVICE_ATTR(pwm2, S_IRUGO | S_IWUSR, [all …]
|
H A D | w83781d.c | 337 static SENSOR_DEVICE_ATTR(fan1_min, S_IRUGO | S_IWUSR, 340 static SENSOR_DEVICE_ATTR(fan2_min, S_IRUGO | S_IWUSR, 343 static SENSOR_DEVICE_ATTR(fan3_min, S_IRUGO | S_IWUSR, 586 static SENSOR_DEVICE_ATTR(in0_beep, S_IRUGO | S_IWUSR, 588 static SENSOR_DEVICE_ATTR(in1_beep, S_IRUGO | S_IWUSR, 590 static SENSOR_DEVICE_ATTR(in2_beep, S_IRUGO | S_IWUSR, 592 static SENSOR_DEVICE_ATTR(in3_beep, S_IRUGO | S_IWUSR, 594 static SENSOR_DEVICE_ATTR(in4_beep, S_IRUGO | S_IWUSR, 596 static SENSOR_DEVICE_ATTR(in5_beep, S_IRUGO | S_IWUSR, 598 static SENSOR_DEVICE_ATTR(in6_beep, S_IRUGO | S_IWUSR, [all …]
|
H A 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,
|
H A D | it87.c | 1913 static SENSOR_DEVICE_ATTR(pwm1_enable, S_IRUGO | S_IWUSR, 1918 static SENSOR_DEVICE_ATTR(pwm1_auto_channels_temp, S_IRUGO, 1943 static SENSOR_DEVICE_ATTR(pwm2_enable, S_IRUGO | S_IWUSR, 1947 static SENSOR_DEVICE_ATTR(pwm2_auto_channels_temp, S_IRUGO, 1972 static SENSOR_DEVICE_ATTR(pwm3_enable, S_IRUGO | S_IWUSR, 1976 static SENSOR_DEVICE_ATTR(pwm3_auto_channels_temp, S_IRUGO, 2001 static SENSOR_DEVICE_ATTR(pwm4_enable, S_IRUGO | S_IWUSR, 2020 static SENSOR_DEVICE_ATTR(pwm5_enable, S_IRUGO | S_IWUSR, 2039 static SENSOR_DEVICE_ATTR(pwm6_enable, S_IRUGO | S_IWUSR, 2168 static SENSOR_DEVICE_ATTR(in0_beep, S_IRUGO | S_IWUSR, [all …]
|
H A 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, \ 526 static SENSOR_DEVICE_ATTR(in0_alarm, S_IRUGO, show_alarm, NULL, 0); 527 static SENSOR_DEVICE_ATTR(in1_alarm, S_IRUGO, show_alarm, NULL, 1); [all …]
|
H A 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, 1040 static SENSOR_DEVICE_ATTR(pwm3_stop_time, 0644, show_fan_stop_time, [all …]
|
H A 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, \
|
H A 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);
|
H A 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,
|
H A D | max1111.c | 124 SENSOR_DEVICE_ATTR(in##_id##_input, S_IRUGO, show_adc, NULL, _id)
|
H A D | max197.c | 216 static SENSOR_DEVICE_ATTR(in##chan##_input, S_IRUGO, \
|
/openbmc/linux/drivers/platform/mips/ |
H A 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);
|
/openbmc/linux/drivers/hwmon/occ/ |
H A 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); 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); 137 static SENSOR_DEVICE_ATTR(occ_dvfs_vdd, 0444, occ_sysfs_show, NULL, 10); [all …]
|
/openbmc/linux/include/linux/ |
H A 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)
|
/openbmc/linux/drivers/gpu/drm/amd/pm/ |
H A D | amdgpu_pm.c | 3096 static SENSOR_DEVICE_ATTR(temp1_crit, S_IRUGO, amdgpu_hwmon_show_temp_thresh, NULL, 0); 3112 static SENSOR_DEVICE_ATTR(pwm1_min, S_IRUGO, amdgpu_hwmon_get_pwm1_min, NULL, 0); 3113 static SENSOR_DEVICE_ATTR(pwm1_max, S_IRUGO, amdgpu_hwmon_get_pwm1_max, NULL, 0); 3114 static SENSOR_DEVICE_ATTR(fan1_input, S_IRUGO, amdgpu_hwmon_get_fan1_input, NULL, 0); 3115 static SENSOR_DEVICE_ATTR(fan1_min, S_IRUGO, amdgpu_hwmon_get_fan1_min, NULL, 0); 3116 static SENSOR_DEVICE_ATTR(fan1_max, S_IRUGO, amdgpu_hwmon_get_fan1_max, NULL, 0); 3119 static SENSOR_DEVICE_ATTR(in0_input, S_IRUGO, amdgpu_hwmon_show_vddgfx, NULL, 0); 3121 static SENSOR_DEVICE_ATTR(in1_input, S_IRUGO, amdgpu_hwmon_show_vddnb, NULL, 0); 3122 static SENSOR_DEVICE_ATTR(in1_label, S_IRUGO, amdgpu_hwmon_show_vddnb_label, NULL, 0); 3136 static SENSOR_DEVICE_ATTR(freq1_input, S_IRUGO, amdgpu_hwmon_show_sclk, NULL, 0); [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/ |
H A 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,
|
/openbmc/linux/Documentation/hwmon/ |
H A 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
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A 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,
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | thermal.c | 116 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath10k_thermal_show_temp,
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | thermal.c | 118 static SENSOR_DEVICE_ATTR(temp1_input, 0444, ath11k_thermal_show_temp,
|