Lines Matching +defs:val +defs:buf

100 superio_outb(struct w83627hf_sio_data *sio, int reg, int val)  in superio_outb()
250 #define IN_TO_REG(val) (clamp_val((((val) + 8) / 16), 0, 255)) argument
251 #define IN_FROM_REG(val) ((val) * 16) argument
280 #define FAN_FROM_REG(val,div) ((val)==0?-1:(val)==255?0:1350000/((val)*(div))) argument
282 #define PWM_TO_REG(val) (clamp_val((val), 0, 255)) argument
290 static inline u8 pwm_freq_to_reg_627hf(unsigned long val) in pwm_freq_to_reg_627hf()
316 static inline u8 pwm_freq_to_reg(unsigned long val) in pwm_freq_to_reg()
329 #define BEEP_MASK_FROM_REG(val) ((val) & 0xff7fff) argument
330 #define BEEP_MASK_TO_REG(val) ((val) & 0xff7fff) argument
332 #define DIV_FROM_REG(val) (1 << (val)) argument
334 static inline u8 DIV_TO_REG(long val) in DIV_TO_REG()
804 static ssize_t show_in_0(struct w83627hf_data *data, char *buf, u8 reg) in show_in_0()
822 struct device_attribute *attr, char *buf) in in0_input_show()
830 char *buf) in in0_min_show()
837 struct device_attribute *attr, const char *buf, in in0_min_store()
841 unsigned long val; in in0_min_store() local
869 char *buf) in in0_max_show()
876 struct device_attribute *attr, const char *buf, in in0_max_store()
880 unsigned long val; in in0_max_store() local
908 alarm_show(struct device *dev, struct device_attribute *attr, char *buf) in alarm_show()
932 beep_show(struct device *dev, struct device_attribute *attr, char *buf) in beep_show()
940 beep_store(struct device *dev, struct device_attribute *attr, const char *buf, in beep_store()
1007 in_input_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_input_show()
1015 in_min_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_min_show()
1024 const char *buf, size_t count) in in_min_store()
1028 long val; in in_min_store() local
1043 in_max_show(struct device *dev, struct device_attribute *devattr, char *buf) in in_max_show()
1052 const char *buf, size_t count) in in_max_store()
1056 long val; in in_max_store() local
1097 char *buf) in fan_input_show()
1106 fan_min_show(struct device *dev, struct device_attribute *devattr, char *buf) in fan_min_show()
1116 const char *buf, size_t count) in fan_min_store()
1120 unsigned long val; in fan_min_store() local
1144 fan_div_show(struct device *dev, struct device_attribute *devattr, char *buf) in fan_div_show()
1160 const char *buf, size_t count) in fan_div_store()
1166 unsigned long val; in fan_div_store() local
1204 temp_show(struct device *dev, struct device_attribute *devattr, char *buf) in temp_show()
1215 temp_max_show(struct device *dev, struct device_attribute *devattr, char *buf) in temp_max_show()
1227 const char *buf, size_t count) in temp_max_store()
1232 long val; in temp_max_store() local
1249 char *buf) in temp_max_hyst_show()
1261 const char *buf, size_t count) in temp_max_hyst_store()
1266 long val; in temp_max_hyst_store() local
1293 char *buf) in temp_type_show()
1302 const char *buf, size_t count) in temp_type_store()
1306 unsigned long val; in temp_type_store() local
1361 alarms_show(struct device *dev, struct device_attribute *attr, char *buf) in alarms_show()
1391 beep_mask_show(struct device *dev, struct device_attribute *attr, char *buf) in beep_mask_show()
1400 const char *buf, size_t count) in beep_mask_store()
1403 unsigned long val; in beep_mask_store() local
1429 pwm_show(struct device *dev, struct device_attribute *devattr, char *buf) in pwm_show()
1438 const char *buf, size_t count) in pwm_store()
1442 unsigned long val; in pwm_store() local
1475 name_show(struct device *dev, struct device_attribute *devattr, char *buf) in name_show()
1517 pwm_freq_show(struct device *dev, struct device_attribute *devattr, char *buf) in pwm_freq_show()
1531 const char *buf, size_t count) in pwm_freq_store()
1536 unsigned long val; in pwm_freq_store() local
1566 cpu0_vid_show(struct device *dev, struct device_attribute *attr, char *buf) in cpu0_vid_show()
1575 vrm_show(struct device *dev, struct device_attribute *attr, char *buf) in vrm_show()
1582 vrm_store(struct device *dev, struct device_attribute *attr, const char *buf, in vrm_store()
1586 unsigned long val; in vrm_store() local
1604 char *buf) in pwm_enable_show()
1613 const char *buf, size_t count) in pwm_enable_store()
1618 unsigned long val; in pwm_enable_store() local
1854 u16 val; in w83627hf_find() local