Lines Matching refs:totalsize
335 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize);
373 * If the user asked for more space than is used, adjust the totalsize.
376 padlen = minsize - fdt32_to_cpu(fdt.totalsize);
382 fdt32_to_cpu(fdt.totalsize), minsize);
390 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize)
391 - fdt32_to_cpu(fdt.totalsize);
394 int tsize = fdt32_to_cpu(fdt.totalsize);
396 fdt.totalsize = cpu_to_fdt32(tsize);
467 fprintf(f, "\t/* totalsize */\n");
799 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys;
840 totalsize = fdt32_to_cpu(totalsize_buf);
841 if (totalsize < FDT_V1_SIZE)
842 die("DT blob size (%d) is too small\n", totalsize);
844 blob = xmalloc(totalsize);
848 fdt->totalsize = cpu_to_fdt32(totalsize);
850 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize);
851 p = blob + sizeof(magic) + sizeof(totalsize);
856 totalsize);
873 if (off_mem_rsvmap >= totalsize)
876 if (off_dt >= totalsize)
879 if (off_str > totalsize)
884 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize))
888 inbuf_init(&strbuf, blob + off_str, blob + totalsize);
893 if ((off_dt+size_dt < off_dt) || (off_dt+size_dt > totalsize))
904 blob + off_mem_rsvmap, blob + totalsize);
905 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize);