Lines Matching +defs:val +defs:buf

87 static inline void superio_outb(int sioaddr, int reg, int val)  in superio_outb()
124 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : \ argument
126 #define FAN_TO_REG(val, div) ((val) <= 100 ? 0 : \ argument
128 #define FAN_DIV_FROM_REG(val) (1 << (((val) >> 5) & 0x03)) argument
129 #define FAN_STATUS_FROM_REG(val) ((val) & 0x07) argument
131 #define FAN_CONFIG_MONITOR(val, nr) (((val) >> (2 + (nr) * 3)) & 1) argument
132 #define FAN_CONFIG_CONTROL(val, nr) (((val) >> (3 + (nr) * 3)) & 1) argument
133 #define FAN_CONFIG_INVERT(val, nr) (((val) >> (4 + (nr) * 3)) & 1) argument
135 #define PWM_FROM_REG(val, inv) ((inv) ? 255 - (val) : (val)) argument
136 static inline u8 PWM_TO_REG(int val, int inv) in PWM_TO_REG()
161 #define IN_FROM_REG(val, ref) (((val) * (ref) + 128) / 256) argument
162 #define IN_TO_REG(val, ref) ((val) < 0 ? 0 : \ argument
178 #define TEMP_FROM_REG(val) ((val) * 1000) argument
179 #define TEMP_TO_REG(val) ((val) < -55000 ? -55 : \ argument
407 struct device_attribute *devattr, char *buf) in in_input_show()
430 struct device_attribute *devattr, char *buf) in in_status_show()
452 struct device_attribute *devattr, char *buf) in in_min_show()
461 struct device_attribute *devattr, const char *buf, in in_min_store()
466 long val; in in_min_store() local
496 struct device_attribute *devattr, char *buf) in in_max_show()
505 struct device_attribute *devattr, const char *buf, in in_max_store()
510 long val; in in_max_store() local
552 struct device_attribute *devattr, char *buf) in in_min_alarm_show()
575 struct device_attribute *devattr, char *buf) in in_max_alarm_show()
606 struct device_attribute *attr, char *buf) in cpu0_vid_show()
614 char *buf) in vrm_show()
621 const char *buf, size_t count) in vrm_store()
624 unsigned long val; in vrm_store() local
640 struct device_attribute *attr, char *buf) in alarms_in_show()
669 struct device_attribute *devattr, char *buf) in therm_input_show()
688 struct device_attribute *devattr, char *buf) in therm_status_show()
702 struct device_attribute *devattr, char *buf) in therm_min_show()
712 const char *buf, size_t count) in therm_min_store()
716 long val; in therm_min_store() local
738 struct device_attribute *devattr, char *buf) in therm_max_show()
748 const char *buf, size_t count) in therm_max_store()
752 long val; in therm_max_store() local
774 struct device_attribute *devattr, char *buf) in therm_crit_show()
784 const char *buf, size_t count) in therm_crit_store()
788 long val; in therm_crit_store() local
815 char *buf) in therm_min_alarm_show()
831 char *buf) in therm_max_alarm_show()
847 char *buf) in therm_crit_alarm_show()
882 struct device_attribute *devattr, char *buf) in temp_input_show()
896 struct device_attribute *devattr, char *buf) in temp_status_show()
910 struct device_attribute *devattr, char *buf) in temp_min_show()
919 const char *buf, size_t count) in temp_min_store()
923 long val; in temp_min_store() local
945 struct device_attribute *devattr, char *buf) in temp_max_show()
954 const char *buf, size_t count) in temp_max_store()
958 long val; in temp_max_store() local
980 struct device_attribute *devattr, char *buf) in temp_crit_show()
990 const char *buf, size_t count) in temp_crit_store()
994 long val; in temp_crit_store() local
1022 char *buf) in temp_min_alarm_show()
1038 char *buf) in temp_max_alarm_show()
1054 char *buf) in temp_crit_alarm_show()
1070 struct device_attribute *devattr, char *buf) in temp_fault_show()
1110 struct device_attribute *attr, char *buf) in alarms_temp_show()
1119 struct device_attribute *devattr, char *buf) in fan_input_show()
1134 struct device_attribute *devattr, char *buf) in fan_status_show()
1149 struct device_attribute *devattr, char *buf) in fan_div_show()
1164 struct device_attribute *devattr, char *buf) in fan_min_show()
1174 const char *buf, size_t count) in fan_min_store()
1237 char *buf) in pwm_show()
1248 const char *buf, size_t count) in pwm_store()
1252 long val; in pwm_store() local
1275 struct device_attribute *devattr, char *buf) in name_show()
1619 u16 val; in pc87360_find() local