Lines Matching refs:var
57 #define sysfs_print(file, var) \
61 __builtin_types_compatible_p(typeof(var), int) \
63 __builtin_types_compatible_p(typeof(var), unsigned int) \
65 __builtin_types_compatible_p(typeof(var), long) \
67 __builtin_types_compatible_p(typeof(var), unsigned long)\
69 __builtin_types_compatible_p(typeof(var), int64_t) \
71 __builtin_types_compatible_p(typeof(var), uint64_t) \
73 __builtin_types_compatible_p(typeof(var), const char *) \
74 ? "%s\n" : "%i\n", var); \
86 #define var_printf(_var, fmt) sysfs_printf(_var, fmt, var(_var))
87 #define var_print(_var) sysfs_print(_var, var(_var))
88 #define var_hprint(_var) sysfs_hprint(_var, var(_var))
90 #define sysfs_strtoul(file, var) \
93 return strtoul_safe(buf, var) ?: (ssize_t) size; \
96 #define sysfs_strtoul_bool(file, var) \
101 var = v ? 1 : 0; \
106 #define sysfs_strtoul_clamp(file, var, min, max) \
113 var = v; \
136 #define sysfs_hatoi(file, var) \
139 return strtoi_h(buf, &var) ?: (ssize_t) size; \