Lines Matching +defs:val +defs:buf

113 	int val, i;  in gl520_update_device()  local
190 struct device_attribute *attr, char *buf) in cpu0_vid_show()
197 #define VDD_FROM_REG(val) DIV_ROUND_CLOSEST((val) * 95, 4) argument
198 #define VDD_CLAMP(val) clamp_val(val, 0, 255 * 95 / 4) argument
199 #define VDD_TO_REG(val) DIV_ROUND_CLOSEST(VDD_CLAMP(val) * 4, 95) argument
201 #define IN_FROM_REG(val) ((val) * 19) argument
202 #define IN_CLAMP(val) clamp_val(val, 0, 255 * 19) argument
203 #define IN_TO_REG(val) DIV_ROUND_CLOSEST(IN_CLAMP(val), 19) argument
206 struct device_attribute *attr, char *buf) in in_input_show()
219 char *buf) in in_min_show()
232 char *buf) in in_max_show()
245 const char *buf, size_t count) in in_min_store()
279 const char *buf, size_t count) in in_max_store()
328 #define DIV_FROM_REG(val) (1 << (val)) argument
329 #define FAN_FROM_REG(val, div) ((val) == 0 ? 0 : (480000 / ((val) << (div)))) argument
332 #define FAN_CLAMP(val, div) clamp_val(val, FAN_BASE(div) / 255, \ argument
334 #define FAN_TO_REG(val, div) ((val) == 0 ? 0 : \ argument
339 struct device_attribute *attr, char *buf) in fan_input_show()
349 char *buf) in fan_min_show()
359 char *buf) in fan_div_show()
368 struct device_attribute *attr, char *buf) in fan1_off_show()
375 struct device_attribute *attr, const char *buf, in fan_min_store()
415 struct device_attribute *attr, const char *buf, in fan_div_store()
465 struct device_attribute *attr, const char *buf, in fan1_off_store()
497 #define TEMP_FROM_REG(val) (((val) - 130) * 1000) argument
498 #define TEMP_CLAMP(val) clamp_val(val, -130000, 125000) argument
499 #define TEMP_TO_REG(val) (DIV_ROUND_CLOSEST(TEMP_CLAMP(val), 1000) + 130) argument
502 struct device_attribute *attr, char *buf) in temp_input_show()
511 struct device_attribute *attr, char *buf) in temp_max_show()
520 struct device_attribute *attr, char *buf) in temp_max_hyst_show()
529 struct device_attribute *attr, const char *buf, in temp_max_store()
551 const char *buf, size_t count) in temp_max_hyst_store()
579 char *buf) in alarms_show()
586 struct device_attribute *attr, char *buf) in beep_enable_show()
593 struct device_attribute *attr, char *buf) in beep_mask_show()
601 const char *buf, size_t count) in beep_enable_store()
625 struct device_attribute *attr, const char *buf, in beep_mask_store()
650 char *buf) in alarm_show()
669 char *buf) in beep_show()
678 const char *buf, size_t count) in beep_store()