Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 6 of 6) sorted by relevance

/scripts/dtc/libfdt/
Dfdt_empty_tree.c58 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument
62 err = fdt_create(buf, bufsize); in fdt_create_empty_tree()
82 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) in fdt_create() argument
92 if (bufsize < sizeof(struct fdt_header)) in fdt_create()
95 memset(buf, 0, bufsize); in fdt_create()
100 fdt_set_totalsize(fdt, bufsize); in fdt_create()
105 fdt_set_off_dt_strings(fdt, bufsize); in fdt_create()
Dfdt_rw.c416 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument
442 err = fdt_move(fdt, buf, bufsize); in fdt_open_into()
447 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
455 if (bufsize < newsize) in fdt_open_into()
464 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into()
472 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
Dlibfdt.h209 int fdt_move(const void *fdt, void *buf, int bufsize);
989 int fdt_create(void *buf, int bufsize);
1017 int fdt_create_empty_tree(void *buf, int bufsize);
1018 int fdt_open_into(const void *fdt, void *buf, int bufsize);
Dfdt.c213 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument
217 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
/scripts/dtc/
Dutil.c198 off_t bufsize = 1024, offset = 0; in utilfdt_read_err() local
209 buf = malloc(bufsize); in utilfdt_read_err()
212 if (offset == bufsize) { in utilfdt_read_err()
213 bufsize *= 2; in utilfdt_read_err()
214 buf = realloc(buf, bufsize); in utilfdt_read_err()
221 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err()