• Home
  • Raw
  • Download

Lines Matching refs:value

320 int filename__read_int(const char *filename, int *value)  in filename__read_int()  argument
329 *value = atoi(line); in filename__read_int()
338 unsigned long long *value, int base) in filename__read_ull_base() argument
347 *value = strtoull(line, NULL, base); in filename__read_ull_base()
348 if (*value != ULLONG_MAX) in filename__read_ull_base()
360 int filename__read_xll(const char *filename, unsigned long long *value) in filename__read_xll() argument
362 return filename__read_ull_base(filename, value, 16); in filename__read_xll()
370 int filename__read_ull(const char *filename, unsigned long long *value) in filename__read_ull() argument
372 return filename__read_ull_base(filename, value, 0); in filename__read_ull()
425 int filename__write_int(const char *filename, int value) in filename__write_int() argument
433 sprintf(buf, "%d", value); in filename__write_int()
455 unsigned long long *value, int base) in sysfs__read_ull_base() argument
465 return filename__read_ull_base(path, value, base); in sysfs__read_ull_base()
468 int sysfs__read_xll(const char *entry, unsigned long long *value) in sysfs__read_xll() argument
470 return sysfs__read_ull_base(entry, value, 16); in sysfs__read_xll()
473 int sysfs__read_ull(const char *entry, unsigned long long *value) in sysfs__read_ull() argument
475 return sysfs__read_ull_base(entry, value, 0); in sysfs__read_ull()
478 int sysfs__read_int(const char *entry, int *value) in sysfs__read_int() argument
488 return filename__read_int(path, value); in sysfs__read_int()
504 int sysfs__read_bool(const char *entry, bool *value) in sysfs__read_bool() argument
518 *value = true; in sysfs__read_bool()
523 *value = false; in sysfs__read_bool()
533 int sysctl__read_int(const char *sysctl, int *value) in sysctl__read_int() argument
543 return filename__read_int(path, value); in sysctl__read_int()
546 int sysfs__write_int(const char *entry, int value) in sysfs__write_int() argument
557 return filename__write_int(path, value); in sysfs__write_int()