Searched refs:bufsize (Results 1 – 6 of 6) sorted by relevance
/scripts/dtc/libfdt/ |
D | fdt_sw.c | 88 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() 110 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 120 if ((headsize + tailsize) > bufsize) in fdt_resize() 124 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 136 fdt_set_off_dt_strings(buf, bufsize); in fdt_resize() 137 fdt_set_totalsize(buf, bufsize); in fdt_resize()
|
D | fdt_empty_tree.c | 58 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()
|
D | fdt_rw.c | 418 int fdt_open_into(const void *fdt, void *buf, int bufsize) in fdt_open_into() argument 444 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 449 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 457 if (bufsize < newsize) in fdt_open_into() 466 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 474 fdt_set_totalsize(buf, bufsize); in fdt_open_into()
|
D | libfdt.h | 241 int fdt_move(const void *fdt, void *buf, int bufsize); 1163 int fdt_create(void *buf, int bufsize); 1164 int fdt_resize(void *fdt, void *buf, int bufsize); 1192 int fdt_create_empty_tree(void *buf, int bufsize); 1193 int fdt_open_into(const void *fdt, void *buf, int bufsize);
|
D | fdt.c | 242 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move() argument 246 if (fdt_totalsize(fdt) > bufsize) in fdt_move()
|
/scripts/dtc/ |
D | util.c | 204 off_t bufsize = 1024, offset = 0; in utilfdt_read_err_len() local 215 buf = xmalloc(bufsize); in utilfdt_read_err_len() 218 if (offset == bufsize) { in utilfdt_read_err_len() 219 bufsize *= 2; in utilfdt_read_err_len() 220 buf = xrealloc(buf, bufsize); in utilfdt_read_err_len() 223 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err_len() 237 *len = bufsize; in utilfdt_read_err_len()
|