Lines Matching +defs:val +defs:buf

210 #define IN_TO_REG(val)		(clamp_val((((val) + 8) / 16), 0, 255))  argument
211 #define IN_FROM_REG(val) ((val) * 16) argument
221 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : \ argument
226 #define TEMP1_FROM_REG(val) ((val) * 1000) argument
227 #define TEMP1_TO_REG(val) ((val) <= -128000 ? -128 : \ argument
238 #define TEMP23_FROM_REG(val) ((val) / 128 * 500) argument
239 #define TEMP23_TO_REG(val) (DIV_ROUND_CLOSEST(clamp_val((val), -128000, \ argument
243 #define TARGET_TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val((val), 0, 127000), \ argument
247 #define TOL_TEMP_TO_REG(val) DIV_ROUND_CLOSEST(clamp_val((val), 0, 15000), \ argument
250 #define BEEP_MASK_TO_REG(val) ((val) & 0xffffff) argument
251 #define BEEP_MASK_FROM_REG(val) ((val) & 0xffffff) argument
253 #define DIV_FROM_REG(val) (1 << (val)) argument
255 static u8 div_to_reg(int nr, long val) in div_to_reg()
429 char *buf) in show_beep()
440 const char *buf, size_t count) in store_beep()
448 unsigned long val; in store_beep() local
475 char *buf) in show_alarm()
531 const char *buf, size_t count) in store_fan_min()
537 unsigned long val; in store_fan_min() local
553 char *buf) in show_fan_div()
568 const char *buf, size_t count) in store_fan_div()
581 unsigned long val; in store_fan_div() local
709 char *buf) in show_pwm()
718 const char *buf, size_t count) in store_pwm()
724 unsigned long val; in store_pwm() local
750 char *buf) in show_pwmenable()
759 struct device_attribute *attr, const char *buf, size_t count) in store_pwmenable()
765 unsigned long val; in store_pwmenable() local
816 struct device_attribute *attr, char *buf) in show_temp_target()
825 struct device_attribute *attr, const char *buf, size_t count) in store_temp_target()
831 long val; in store_temp_target() local
857 struct device_attribute *attr, char *buf) in show_temp_tolerance()
866 struct device_attribute *attr, const char *buf, size_t count) in store_temp_tolerance()
872 unsigned long val; in store_temp_tolerance() local
920 char *buf) in show_temp1()
928 const char *buf, size_t count) in store_temp1()
934 long val; in store_temp1() local
950 char *buf) in show_temp23()
961 const char *buf, size_t count) in store_temp23()
966 long val; in store_temp23() local
1028 char *buf) in alarms_show()
1042 struct device_attribute *attr, char *buf) in show_beep_enable()
1049 struct device_attribute *attr, char *buf) in show_beep_mask()
1058 const char *buf, size_t count) in store_beep_mask()
1063 long val; in store_beep_mask() local
1093 const char *buf, size_t count) in store_beep_enable()
1097 long val; in store_beep_enable() local
1134 struct device_attribute *attr, char *buf) in cpu0_vid_show()
1143 char *buf) in vrm_show()
1150 const char *buf, size_t count) in vrm_store()
1153 unsigned long val; in vrm_store() local
1259 u8 val; in w83791d_detect_subclients() local