Home
last modified time | relevance | path

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

/DragonStub/apps/lib/libfdt/
H A 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()
H A 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 …]
H A Dlibfdt.h331 int fdt_move(const void *fdt, void *buf, int bufsize);
337 int fdt_check_full(const void *fdt, size_t bufsize);
1460 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags);
1473 int fdt_create(void *buf, int bufsize);
1475 int fdt_resize(void *fdt, void *buf, int bufsize);
1522 int fdt_create_empty_tree(void *buf, int bufsize);
1523 int fdt_open_into(const void *fdt, void *buf, int bufsize);
H A Dfdt_rw.c419 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument
448 err = fdt_move(fdt, buf, bufsize); in fdt_open_into()
453 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
461 if (bufsize < newsize) in fdt_open_into()
470 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into()
479 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
H A Dfdt.c328 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument
330 if (!can_assume(VALID_INPUT) && bufsize < 0) in fdt_move()
335 if (fdt_totalsize(fdt) > (unsigned int)bufsize) in fdt_move()
/DragonStub/apps/
H A Delf.c19 static bool verify_ident(const void *buf, u64 bufsize) in verify_ident() argument
21 if (bufsize < EI_NIDENT) { in verify_ident()