Home | History | Annotate | Download | only in dist

Lines Matching refs:totalsize

337 	fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize);
375 * If the user asked for more space than is used, adjust the totalsize.
378 padlen = minsize - fdt32_to_cpu(fdt.totalsize);
384 fdt32_to_cpu(fdt.totalsize), minsize);
392 padlen = FDTALIGN2(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize)
393 - fdt32_to_cpu(fdt.totalsize);
396 int tsize = fdt32_to_cpu(fdt.totalsize);
398 fdt.totalsize = cpu_to_fdt32(tsize);
469 fprintf(f, "\t/* totalsize */\n");
801 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys;
842 totalsize = fdt32_to_cpu(totalsize_buf);
843 if (totalsize < FDT_V1_SIZE)
844 die("DT blob size (%d) is too small\n", totalsize);
846 blob = xmalloc(totalsize);
850 fdt->totalsize = cpu_to_fdt32(totalsize);
852 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize);
853 p = blob + sizeof(magic) + sizeof(totalsize);
858 totalsize);
875 if (off_mem_rsvmap >= totalsize)
878 if (off_dt >= totalsize)
881 if (off_str > totalsize)
886 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize))
890 inbuf_init(&strbuf, blob + off_str, blob + totalsize);
895 if ((off_dt+size_dt < off_dt) || (off_dt+size_dt > totalsize))
906 blob + off_mem_rsvmap, blob + totalsize);
907 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize);