Lines Matching refs:offset

512 #define show_in_offset(offset)					\
513 static SENSOR_DEVICE_ATTR(in##offset##_input, S_IRUGO, \
514 show_in, NULL, offset);
516 #define limit_in_offset(offset) \
517 static SENSOR_DEVICE_ATTR(in##offset##_min, S_IRUGO | S_IWUSR, \
518 show_in_min, set_in_min, offset); \
519 static SENSOR_DEVICE_ATTR(in##offset##_max, S_IRUGO | S_IWUSR, \
520 show_in_max, set_in_max, offset);
604 #define show_temp_offset(offset) \
605 static SENSOR_DEVICE_ATTR(temp##offset##_input, S_IRUGO, \
606 show_temp, NULL, offset - 1); \
607 static SENSOR_DEVICE_ATTR(temp##offset##_max, S_IRUGO | S_IWUSR, \
608 show_temp_max, set_temp_max, offset - 1); \
609 static SENSOR_DEVICE_ATTR(temp##offset##_min, S_IRUGO | S_IWUSR, \
610 show_temp_min, set_temp_min, offset - 1);
666 #define show_sensor_offset(offset) \
667 static SENSOR_DEVICE_ATTR(temp##offset##_type, S_IRUGO | S_IWUSR, \
668 show_sensor, set_sensor, offset - 1);
1089 #define show_fan_offset(offset) \
1090 static SENSOR_DEVICE_ATTR(fan##offset##_input, S_IRUGO, \
1091 show_fan, NULL, offset - 1); \
1092 static SENSOR_DEVICE_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
1093 show_fan_min, set_fan_min, offset - 1); \
1094 static SENSOR_DEVICE_ATTR(fan##offset##_div, S_IRUGO | S_IWUSR, \
1095 show_fan_div, set_fan_div, offset - 1);
1101 #define show_pwm_offset(offset) \
1102 static SENSOR_DEVICE_ATTR(pwm##offset##_enable, S_IRUGO | S_IWUSR, \
1103 show_pwm_enable, set_pwm_enable, offset - 1); \
1104 static SENSOR_DEVICE_ATTR(pwm##offset, S_IRUGO | S_IWUSR, \
1105 show_pwm, set_pwm, offset - 1); \
1106 static DEVICE_ATTR(pwm##offset##_freq, \
1107 (offset == 1 ? S_IRUGO | S_IWUSR : S_IRUGO), \
1108 show_pwm_freq, (offset == 1 ? set_pwm_freq : NULL)); \
1109 static SENSOR_DEVICE_ATTR(pwm##offset##_auto_channels_temp, \
1111 offset - 1); \
1112 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point1_pwm, \
1114 offset - 1, 0); \
1115 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point2_pwm, \
1117 offset - 1, 1); \
1118 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point3_pwm, \
1120 offset - 1, 2); \
1121 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point4_pwm, \
1122 S_IRUGO, show_auto_pwm, NULL, offset - 1, 3); \
1123 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point1_temp, \
1125 offset - 1, 1); \
1126 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point1_temp_hyst, \
1128 offset - 1, 0); \
1129 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point2_temp, \
1131 offset - 1, 2); \
1132 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point3_temp, \
1134 offset - 1, 3); \
1135 static SENSOR_DEVICE_ATTR_2(pwm##offset##_auto_point4_temp, \
1137 offset - 1, 4);
1188 #define show_fan16_offset(offset) \
1189 static struct sensor_device_attribute sensor_dev_attr_fan##offset##_input16 \
1190 = SENSOR_ATTR(fan##offset##_input, S_IRUGO, \
1191 show_fan16, NULL, offset - 1); \
1192 static struct sensor_device_attribute sensor_dev_attr_fan##offset##_min16 \
1193 = SENSOR_ATTR(fan##offset##_min, S_IRUGO | S_IWUSR, \
1194 show_fan16_min, set_fan16_min, offset - 1)