Lines Matching +defs:val +defs:buf

116 static inline u8 IN_TO_REG(long val, int in_num)  in IN_TO_REG()
136 static inline long IN_FROM_REG(u8 val, int in_num) in IN_FROM_REG()
167 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (val) == 255 ? 0 : 1350000 / \ argument
273 static inline u8 TEMP_TO_REG(long val) in TEMP_TO_REG()
280 #define TEMP_FROM_REG(val) ((long)temp_lut[val] * 100) argument
283 static inline long TEMP_FROM_REG10(u16 val) in TEMP_FROM_REG10()
297 #define DIV_FROM_REG(val) (1 << (val)) argument
298 #define DIV_TO_REG(val) ((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) argument
412 char *buf) { in in_show()
420 char *buf) { in in_min_show()
428 char *buf) { in in_max_show()
436 const char *buf, size_t count) { in in_min_store()
440 unsigned long val; in in_min_store() local
455 const char *buf, size_t count) { in in_max_store()
459 unsigned long val; in in_max_store() local
492 char *buf) { in temp_show()
499 char *buf) { in temp_over_show()
506 char *buf) { in temp_hyst_show()
513 struct device_attribute *da, const char *buf, in temp_over_store()
518 long val; in temp_over_store() local
533 struct device_attribute *da, const char *buf, in temp_hyst_store()
538 long val; in temp_hyst_store() local
565 char *buf) { in fan_show()
573 char *buf) { in fan_min_show()
582 char *buf) { in fan_div_show()
589 const char *buf, size_t count) { in fan_min_store()
593 unsigned long val; in fan_min_store() local
607 const char *buf, size_t count) { in fan_div_store()
612 unsigned long val; in fan_div_store() local
637 char *buf) in alarms_show()
646 char *buf) in alarm_show()
664 *devattr, char *buf) in name_show()
855 u16 address, val; in via686a_pci_probe() local