Lines Matching refs:value
292 int filename__read_int(const char *filename, int *value) in filename__read_int() argument
301 *value = atoi(line); in filename__read_int()
310 unsigned long long *value, int base) in filename__read_ull_base() argument
319 *value = strtoull(line, NULL, base); in filename__read_ull_base()
320 if (*value != ULLONG_MAX) in filename__read_ull_base()
332 int filename__read_xll(const char *filename, unsigned long long *value) in filename__read_xll() argument
334 return filename__read_ull_base(filename, value, 16); in filename__read_xll()
342 int filename__read_ull(const char *filename, unsigned long long *value) in filename__read_ull() argument
344 return filename__read_ull_base(filename, value, 0); in filename__read_ull()
397 int filename__write_int(const char *filename, int value) in filename__write_int() argument
405 sprintf(buf, "%d", value); in filename__write_int()
427 unsigned long long *value, int base) in sysfs__read_ull_base() argument
437 return filename__read_ull_base(path, value, base); in sysfs__read_ull_base()
440 int sysfs__read_xll(const char *entry, unsigned long long *value) in sysfs__read_xll() argument
442 return sysfs__read_ull_base(entry, value, 16); in sysfs__read_xll()
445 int sysfs__read_ull(const char *entry, unsigned long long *value) in sysfs__read_ull() argument
447 return sysfs__read_ull_base(entry, value, 0); in sysfs__read_ull()
450 int sysfs__read_int(const char *entry, int *value) in sysfs__read_int() argument
460 return filename__read_int(path, value); in sysfs__read_int()
476 int sysfs__read_bool(const char *entry, bool *value) in sysfs__read_bool() argument
490 *value = true; in sysfs__read_bool()
495 *value = false; in sysfs__read_bool()
505 int sysctl__read_int(const char *sysctl, int *value) in sysctl__read_int() argument
515 return filename__read_int(path, value); in sysctl__read_int()
518 int sysfs__write_int(const char *entry, int value) in sysfs__write_int() argument
529 return filename__write_int(path, value); in sysfs__write_int()