Lines Matching defs:totalsize
359 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize);
397 * If the user asked for more space than is used, adjust the totalsize.
400 padlen = minsize - fdt32_to_cpu(fdt.totalsize);
406 fdt32_to_cpu(fdt.totalsize), minsize);
414 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize)
415 - fdt32_to_cpu(fdt.totalsize);
418 int tsize = fdt32_to_cpu(fdt.totalsize);
420 fdt.totalsize = cpu_to_fdt32(tsize);
491 fprintf(f, "\t/* totalsize */\n");
820 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys;
851 rc = fread(&totalsize, sizeof(totalsize), 1, f);
861 totalsize = fdt32_to_cpu(totalsize);
862 if (totalsize < FDT_V1_SIZE)
863 die("DT blob size (%d) is too small\n", totalsize);
865 blob = xmalloc(totalsize);
869 fdt->totalsize = cpu_to_fdt32(totalsize);
871 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize);
872 p = blob + sizeof(magic) + sizeof(totalsize);
877 totalsize);
894 if (off_mem_rsvmap >= totalsize)
897 if (off_dt >= totalsize)
900 if (off_str > totalsize)
905 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize))
909 inbuf_init(&strbuf, blob + off_str, blob + totalsize);
914 if ((off_dt+size_dt < off_dt) || (off_dt+size_dt > totalsize))
925 blob + off_mem_rsvmap, blob + totalsize);
926 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize);