Lines Matching refs:totalsize
359 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize); in make_fdt_header()
400 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
404 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
411 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
413 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob()
807 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys; in dt_from_blob() local
838 rc = fread(&totalsize, sizeof(totalsize), 1, f); in dt_from_blob()
848 totalsize = fdt32_to_cpu(totalsize); in dt_from_blob()
849 if (totalsize < FDT_V1_SIZE) in dt_from_blob()
850 die("DT blob size (%d) is too small\n", totalsize); in dt_from_blob()
852 blob = xmalloc(totalsize); in dt_from_blob()
856 fdt->totalsize = cpu_to_fdt32(totalsize); in dt_from_blob()
858 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize); in dt_from_blob()
859 p = blob + sizeof(magic) + sizeof(totalsize); in dt_from_blob()
864 totalsize); in dt_from_blob()
881 if (off_mem_rsvmap >= totalsize) in dt_from_blob()
884 if (off_dt >= totalsize) in dt_from_blob()
887 if (off_str > totalsize) in dt_from_blob()
892 if (off_str+size_str > totalsize) in dt_from_blob()
896 inbuf_init(&strbuf, blob + off_str, blob + totalsize); in dt_from_blob()
901 if (off_dt+size_dt > totalsize) in dt_from_blob()
912 blob + off_mem_rsvmap, blob + totalsize); in dt_from_blob()
913 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()