Lines Matching +defs:val +defs:buf

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
553 char *buf) in fan_show()
561 char *buf) in fan_min_show()
569 struct device_attribute *attr, const char *buf, in fan_min_store()
575 unsigned long val; in fan_min_store() local
601 struct device_attribute *attr, char *buf) in cpu0_vid_show()
620 char *buf) in vrm_show()
627 const char *buf, size_t count) in vrm_store()
630 unsigned long val; in vrm_store() local
647 char *buf) in alarms_show()
656 char *buf) in alarm_show()
684 char *buf) in pwm_show()
692 const char *buf, size_t count) in pwm_store()
697 unsigned long val; in pwm_store() local
712 struct device_attribute *attr, char *buf) in pwm_enable_show()
735 const char *buf, size_t count) in pwm_enable_store()
741 unsigned long val; in pwm_enable_store() local
778 struct device_attribute *attr, char *buf) in pwm_freq_show()
794 struct device_attribute *attr, const char *buf, in pwm_freq_store()
800 unsigned long val; in pwm_freq_store() local
844 char *buf) in in_show()
853 char *buf) in in_min_show()
861 const char *buf, size_t count) in in_min_store()
866 long val; in in_min_store() local
881 char *buf) in in_max_show()
889 const char *buf, size_t count) in in_max_store()
894 long val; in in_max_store() local
936 char *buf) in temp_show()
945 struct device_attribute *attr, char *buf) in temp_min_show()
953 struct device_attribute *attr, const char *buf, in temp_min_store()
959 long val; in temp_min_store() local
977 struct device_attribute *attr, char *buf) in temp_max_show()
985 struct device_attribute *attr, const char *buf, in temp_max_store()
991 long val; in temp_max_store() local
1022 char *buf) in pwm_auto_channels_show()
1031 const char *buf, size_t count) in pwm_auto_channels_store()
1036 long val; in pwm_auto_channels_store() local
1053 struct device_attribute *attr, char *buf) in pwm_auto_pwm_min_show()
1062 const char *buf, size_t count) in pwm_auto_pwm_min_store()
1067 unsigned long val; in pwm_auto_pwm_min_store() local
1084 char *buf) in pwm_auto_pwm_minctl_show()
1093 const char *buf, size_t count) in pwm_auto_pwm_minctl_store()
1099 long val; in pwm_auto_pwm_minctl_store() local
1131 char *buf) in temp_auto_temp_off_show()
1141 const char *buf, size_t count) in temp_auto_temp_off_store()
1147 long val; in temp_auto_temp_off_store() local
1171 char *buf) in temp_auto_temp_min_show()
1180 const char *buf, size_t count) in temp_auto_temp_min_store()
1185 long val; in temp_auto_temp_min_store() local
1211 char *buf) in temp_auto_temp_max_show()
1221 const char *buf, size_t count) in temp_auto_temp_max_store()
1227 long val; in temp_auto_temp_max_store() local
1248 char *buf) in temp_auto_temp_crit_show()
1257 const char *buf, size_t count) in temp_auto_temp_crit_store()
1262 long val; in temp_auto_temp_crit_store() local