Home
last modified time | relevance | path

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

/scripts/dtc/libfdt/
Dfdt_empty_tree.c13 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument
17 err = fdt_create(buf, bufsize); in fdt_create_empty_tree()
37 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
Dfdt_sw.c109 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument
115 if (bufsize < hdrsize) in fdt_create_with_flags()
121 memset(buf, 0, bufsize); in fdt_create_with_flags()
134 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags()
143 int fdt_create(void *buf, int bufsize) in fdt_create() argument
145 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create()
148 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument
155 if (bufsize < 0) in fdt_resize()
165 if ((headsize + tailsize) > (unsigned)bufsize) in fdt_resize()
169 newtail = (char *)buf + bufsize - tailsize; in fdt_resize()
[all …]
Dlibfdt.h318 int fdt_move(const void *fdt, void *buf, int bufsize);
324 int fdt_check_full(const void *fdt, size_t bufsize);
1420 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags);
1433 int fdt_create(void *buf, int bufsize);
1435 int fdt_resize(void *fdt, void *buf, int bufsize);
1482 int fdt_create_empty_tree(void *buf, int bufsize);
1483 int fdt_open_into(const void *fdt, void *buf, int bufsize);
Dfdt_rw.c415 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()
Dfdt.c315 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument
317 if (!can_assume(VALID_INPUT) && bufsize < 0) in fdt_move()
322 if (fdt_totalsize(fdt) > (unsigned int)bufsize) in fdt_move()
/scripts/dtc/
Dutil.c239 size_t bufsize = 1024, offset = 0; in utilfdt_read_err() local
250 buf = xmalloc(bufsize); in utilfdt_read_err()
253 if (offset == bufsize) { in utilfdt_read_err()
254 bufsize *= 2; in utilfdt_read_err()
255 buf = xrealloc(buf, bufsize); in utilfdt_read_err()
258 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err()
273 *len = bufsize; in utilfdt_read_err()