Lines Matching +defs:val +defs:buf

149 #define IN_TO_REG(val)			clamp_val(((val) + 8) / 16, 0, 255)  argument
150 #define IN_FROM_REG(val) ((val) * 16) argument
162 FAN_FROM_REG(u8 val, int div) in FAN_FROM_REG()
171 #define TEMP_TO_REG(val) clamp_val((val) / 1000, -127, 128) argument
172 #define TEMP_FROM_REG(val) ((val) * 1000) argument
174 #define BEEP_MASK_FROM_REG(val, type) ((type) == as99127f ? \ argument
176 #define BEEP_MASK_TO_REG(val, type) ((type) == as99127f ? \ argument
179 #define DIV_FROM_REG(val) (1 << (val)) argument
182 DIV_TO_REG(long val, enum chips type) in DIV_TO_REG()
314 const char *buf, size_t count) in store_fan_min()
319 unsigned long val; in store_fan_min() local
406 cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) in cpu0_vid_show()
415 vrm_show(struct device *dev, struct device_attribute *attr, char *buf) in vrm_show()
422 vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, in vrm_store()
426 unsigned long val; in vrm_store() local
440 alarms_show(struct device *dev, struct device_attribute *attr, char *buf) in alarms_show()
449 char *buf) in show_alarm()
458 struct device_attribute *attr, char *buf) in show_temp3_alarm()
482 struct device_attribute *attr, char *buf) in beep_mask_show()
491 const char *buf, size_t count) in beep_mask_store()
494 unsigned long val; in beep_mask_store() local
520 char *buf) in show_beep()
529 const char *buf, size_t count) in store_beep()
579 struct device_attribute *attr, char *buf) in show_temp3_beep()
620 show_fan_div(struct device *dev, struct device_attribute *da, char *buf) in show_fan_div()
636 const char *buf, size_t count) in store_fan_div()
643 unsigned long val; in store_fan_div() local
689 show_pwm(struct device *dev, struct device_attribute *da, char *buf) in show_pwm()
697 pwm2_enable_show(struct device *dev, struct device_attribute *da, char *buf) in pwm2_enable_show()
704 store_pwm(struct device *dev, struct device_attribute *da, const char *buf, in store_pwm()
710 unsigned long val; in store_pwm() local
726 const char *buf, size_t count) in pwm2_enable_store()
729 unsigned long val; in pwm2_enable_store() local
770 show_sensor(struct device *dev, struct device_attribute *da, char *buf) in show_sensor()
779 const char *buf, size_t count) in store_sensor()
784 unsigned long val; in store_sensor() local
1608 name_show(struct device *dev, struct device_attribute *devattr, char *buf) in name_show()
1838 int val, save, found = 0; in w83781d_isa_found() local