• Home
  • Raw
  • Download

Lines Matching refs:count

31 int read_file(const char *path, char *buf, size_t count, size_t *len)  in read_file()  argument
42 rc = read(fd, buf, count); in read_file()
52 if (rc == count) { in read_file()
126 int write_file(const char *path, const char *buf, size_t count) in write_file() argument
136 rc = write(fd, buf, count); in write_file()
142 if (rc != count) { in write_file()
168 int read_debugfs_file(const char *subpath, char *buf, size_t count) in read_debugfs_file() argument
174 return read_file(path, buf, count, NULL); in read_debugfs_file()
177 int write_debugfs_file(const char *subpath, const char *buf, size_t count) in write_debugfs_file() argument
183 return write_file(path, buf, count); in write_debugfs_file()
186 static int validate_int_parse(const char *buffer, size_t count, char *end) in validate_int_parse() argument
197 for (; end < buffer + count; end++) { in validate_int_parse()
212 static int parse_bounded_int(const char *buffer, size_t count, intmax_t *result, in parse_bounded_int() argument
224 err = validate_int_parse(buffer, count, end); in parse_bounded_int()
236 static int parse_bounded_uint(const char *buffer, size_t count, uintmax_t *result, in parse_bounded_uint() argument
248 err = validate_int_parse(buffer, count, end); in parse_bounded_uint()
260 int parse_intmax(const char *buffer, size_t count, intmax_t *result, int base) in parse_intmax() argument
262 return parse_bounded_int(buffer, count, result, base, INTMAX_MIN, INTMAX_MAX); in parse_intmax()
265 int parse_uintmax(const char *buffer, size_t count, uintmax_t *result, int base) in parse_uintmax() argument
267 return parse_bounded_uint(buffer, count, result, base, UINTMAX_MAX); in parse_uintmax()
270 int parse_int(const char *buffer, size_t count, int *result, int base) in parse_int() argument
273 int err = parse_bounded_int(buffer, count, &parsed, base, INT_MIN, INT_MAX); in parse_int()
279 int parse_uint(const char *buffer, size_t count, unsigned int *result, int base) in parse_uint() argument
282 int err = parse_bounded_uint(buffer, count, &parsed, base, UINT_MAX); in parse_uint()
288 int parse_long(const char *buffer, size_t count, long *result, int base) in parse_long() argument
291 int err = parse_bounded_int(buffer, count, &parsed, base, LONG_MIN, LONG_MAX); in parse_long()
297 int parse_ulong(const char *buffer, size_t count, unsigned long *result, int base) in parse_ulong() argument
300 int err = parse_bounded_uint(buffer, count, &parsed, base, ULONG_MAX); in parse_ulong()