Searched refs:bufsize (Results 1 – 7 of 7) sorted by relevance
/scripts/dtc/libfdt/ |
D | fdt_empty_tree.c | 13 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()
|
D | fdt_sw.c | 105 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags) in fdt_create_with_flags() argument 111 if (bufsize < hdrsize) in fdt_create_with_flags() 117 memset(buf, 0, bufsize); in fdt_create_with_flags() 130 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags() 139 int fdt_create(void *buf, int bufsize) in fdt_create() argument 141 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 144 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 157 if ((headsize + tailsize) > bufsize) in fdt_resize() 161 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 173 fdt_set_totalsize(buf, bufsize); in fdt_resize() [all …]
|
D | libfdt.h | 313 int fdt_move(const void *fdt, void *buf, int bufsize); 319 int fdt_check_full(const void *fdt, size_t bufsize); 1415 int fdt_create_with_flags(void *buf, int bufsize, uint32_t flags); 1428 int fdt_create(void *buf, int bufsize); 1430 int fdt_resize(void *fdt, void *buf, int bufsize); 1477 int fdt_create_empty_tree(void *buf, int bufsize); 1478 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
D | fdt_rw.c | 400 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 426 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 431 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 439 if (bufsize < newsize) in fdt_open_into() 448 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 456 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
|
D | fdt.c | 277 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 281 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
|
D | fdt_ro.c | 836 int fdt_check_full(const void *fdt, size_t bufsize) in fdt_check_full() argument 846 if (bufsize < FDT_V1_SIZE) in fdt_check_full() 851 if (bufsize < fdt_totalsize(fdt)) in fdt_check_full()
|
/scripts/dtc/ |
D | util.c | 238 size_t bufsize = 1024, offset = 0; in utilfdt_read_err() local 249 buf = xmalloc(bufsize); in utilfdt_read_err() 252 if (offset == bufsize) { in utilfdt_read_err() 253 bufsize *= 2; in utilfdt_read_err() 254 buf = xrealloc(buf, bufsize); in utilfdt_read_err() 257 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err() 272 *len = bufsize; in utilfdt_read_err()
|