Lines Matching +defs:val +defs:buf

97 static inline void superio_outb(int ioreg, int reg, int val)  in superio_outb()
105 int val; in superio_inw() local
657 static u8 in_to_reg(const struct it87_data *data, int nr, long val) in in_to_reg()
663 static int in_from_reg(const struct it87_data *data, int nr, int val) in in_from_reg()
683 #define FAN_FROM_REG(val, div) ((val) == 0 ? -1 : (val) == 255 ? 0 : \ argument
686 #define FAN16_FROM_REG(val) ((val) == 0 ? -1 : (val) == 0xffff ? 0 : \ argument
689 #define TEMP_TO_REG(val) (clamp_val(((val) < 0 ? (((val) - 500) / 1000) : \ argument
691 #define TEMP_FROM_REG(val) ((val) * 1000) argument
693 static u8 pwm_to_reg(const struct it87_data *data, long val) in pwm_to_reg()
709 static int DIV_TO_REG(int val) in DIV_TO_REG()
718 #define DIV_FROM_REG(val) BIT(val) argument
991 char *buf) in show_in()
1005 const char *buf, size_t count) in set_in()
1011 unsigned long val; in set_in() local
1086 char *buf) in show_temp()
1100 const char *buf, size_t count) in set_temp()
1106 long val; in set_temp() local
1218 char *buf) in show_temp_type()
1230 const char *buf, size_t count) in set_temp_type()
1236 long val; in set_temp_type() local
1309 char *buf) in show_fan()
1328 char *buf) in show_fan_div()
1341 struct device_attribute *attr, char *buf) in show_pwm_enable()
1354 char *buf) in show_pwm()
1368 char *buf) in show_pwm_freq()
1390 const char *buf, size_t count) in set_fan()
1397 long val; in set_fan() local
1438 const char *buf, size_t count) in set_fan_div()
1443 unsigned long val; in set_fan_div() local
1516 const char *buf, size_t count) in set_pwm_enable()
1521 long val; in set_pwm_enable() local
1591 const char *buf, size_t count) in set_pwm()
1596 long val; in set_pwm() local
1637 const char *buf, size_t count) in set_pwm_freq()
1642 unsigned long val; in set_pwm_freq() local
1677 struct device_attribute *attr, char *buf) in show_pwm_temp_map()
1697 struct device_attribute *attr, const char *buf, in set_pwm_temp_map()
1703 long val; in set_pwm_temp_map() local
1747 char *buf) in show_auto_pwm()
1763 const char *buf, size_t count) in set_auto_pwm()
1771 long val; in set_auto_pwm() local
1792 struct device_attribute *attr, char *buf) in show_auto_pwm_slope()
1806 const char *buf, size_t count) in set_auto_pwm_slope()
1811 unsigned long val; in set_auto_pwm_slope() local
1829 char *buf) in show_auto_temp()
1850 const char *buf, size_t count) in set_auto_temp()
1857 long val; in set_auto_temp() local
2061 char *buf) in alarms_show()
2073 char *buf) in show_alarm()
2085 struct device_attribute *attr, const char *buf, in clear_intrusion()
2090 long val; in clear_intrusion() local
2133 char *buf) in show_beep()
2145 const char *buf, size_t count) in set_beep()
2149 long val; in set_beep() local
2191 char *buf) in vrm_show()
2199 const char *buf, size_t count) in vrm_store()
2202 unsigned long val; in vrm_store() local
2214 struct device_attribute *attr, char *buf) in cpu0_vid_show()
2226 char *buf) in show_label()