Lines Matching +defs:val +defs:err

124 #define SCALE(val, from, to)	(((val) * (to) + ((from) / 2)) / (from))  argument
126 #define INS_TO_REG(n, val) \ argument
130 #define INSEXT_FROM_REG(n, val, ext) \ argument
133 #define INS_FROM_REG(n, val) SCALE((val), 192, lm85_scaling[n]) argument
136 static inline u16 FAN_TO_REG(unsigned long val) in FAN_TO_REG()
142 #define FAN_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ argument
146 #define TEMP_TO_REG(val) \ argument
148 #define TEMPEXT_FROM_REG(val, ext) \ argument
150 #define TEMP_FROM_REG(val) ((val) * 1000) argument
152 #define PWM_TO_REG(val) clamp_val(val, 0, 255) argument
153 #define PWM_FROM_REG(val) (val) argument
184 #define RANGE_FROM_REG(val) lm85_range_map[(val) & 0x0f] argument
225 #define ZONE_FROM_REG(val) lm85_zone_map[(val) >> 5] argument
239 #define HYST_TO_REG(val) clamp_val(((val) + 500) / 1000, 0, 15) argument
240 #define HYST_FROM_REG(val) ((val) * 1000) argument
393 int val = (ext1 << 8) + ext2; in lm85_update_device() local
500 int val; in lm85_update_device() local
575 unsigned long val; in fan_min_store() local
576 int err; in fan_min_store() local
630 unsigned long val; in vrm_store() local
631 int err; in vrm_store() local
697 unsigned long val; in pwm_store() local
698 int err; in pwm_store() local
741 unsigned long val; in pwm_enable_store() local
742 int err; in pwm_enable_store() local
800 unsigned long val; in pwm_freq_store() local
801 int err; in pwm_freq_store() local
866 long val; in in_min_store() local
867 int err; in in_min_store() local
894 long val; in in_max_store() local
895 int err; in in_max_store() local
959 long val; in temp_min_store() local
960 int err; in temp_min_store() local
991 long val; in temp_max_store() local
992 int err; in temp_max_store() local
1036 long val; in pwm_auto_channels_store() local
1037 int err; in pwm_auto_channels_store() local
1067 unsigned long val; in pwm_auto_pwm_min_store() local
1068 int err; in pwm_auto_pwm_min_store() local
1099 long val; in pwm_auto_pwm_minctl_store() local
1100 int err; in pwm_auto_pwm_minctl_store() local
1147 long val; in temp_auto_temp_off_store() local
1148 int err; in temp_auto_temp_off_store() local
1185 long val; in temp_auto_temp_min_store() local
1186 int err; in temp_auto_temp_min_store() local
1227 long val; in temp_auto_temp_max_store() local
1228 int err; in temp_auto_temp_max_store() local
1262 long val; in temp_auto_temp_crit_store() local
1263 int err; in temp_auto_temp_crit_store() local