Lines Matching defs:totalsize
336 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize);
374 * If the user asked for more space than is used, adjust the totalsize.
377 padlen = minsize - fdt32_to_cpu(fdt.totalsize);
383 fdt32_to_cpu(fdt.totalsize), minsize);
391 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize)
392 - fdt32_to_cpu(fdt.totalsize);
395 int tsize = fdt32_to_cpu(fdt.totalsize);
397 fdt.totalsize = cpu_to_fdt32(tsize);
468 fprintf(f, "\t/* totalsize */\n");
797 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys;
838 totalsize = fdt32_to_cpu(totalsize_buf);
839 if (totalsize < FDT_V1_SIZE)
840 die("DT blob size (%d) is too small\n", totalsize);
842 blob = xmalloc(totalsize);
846 fdt->totalsize = cpu_to_fdt32(totalsize);
848 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize);
849 p = blob + sizeof(magic) + sizeof(totalsize);
854 totalsize);
871 if (off_mem_rsvmap >= totalsize)
874 if (off_dt >= totalsize)
877 if (off_str > totalsize)
882 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize))
886 inbuf_init(&strbuf, blob + off_str, blob + totalsize);
891 if ((off_dt+size_dt < off_dt) || (off_dt+size_dt > totalsize))
902 blob + off_mem_rsvmap, blob + totalsize);
903 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize);