Searched refs:bufsize (Results 1 - 4 of 4) sorted by relevance

/scripts/dtc/libfdt/
H A Dfdt_sw.c88 int fdt_create(void *buf, int bufsize) argument
92 if (bufsize < sizeof(struct fdt_header))
95 memset(buf, 0, bufsize);
100 fdt_set_totalsize(fdt, bufsize);
105 fdt_set_off_dt_strings(fdt, bufsize);
H A Dfdt.c192 int fdt_move(const void *fdt, void *buf, int bufsize) argument
196 if (fdt_totalsize(fdt) > bufsize)
H A Dfdt_rw.c389 int fdt_open_into(const void *fdt, void *buf, int bufsize) argument
413 err = fdt_move(fdt, buf, bufsize);
418 fdt_set_totalsize(buf, bufsize);
426 if (bufsize < newsize)
435 if ((tmp + newsize) > ((char *)buf + bufsize))
443 fdt_set_totalsize(buf, bufsize);
H A Dlibfdt.h194 * @bufsize: size of the memory space at buf
197 * fdt to the buffer at buf of size bufsize. The buffer may overlap
204 * -FDT_ERR_NOSPACE, bufsize is insufficient to contain the device tree
209 int fdt_move(const void *fdt, void *buf, int bufsize);
449 * -FDT_ERR_NOSPACE, the path of the given node is longer than (bufsize-1)
784 int fdt_create(void *buf, int bufsize);
803 int fdt_open_into(const void *fdt, void *buf, int bufsize);

Completed in 730 milliseconds