Lines Matching refs:totalsize

350 	fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize);  in make_fdt_header()
391 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
397 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
405 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob()
406 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
409 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
411 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob()
814 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys; in dt_from_blob() local
855 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob()
856 if (totalsize < FDT_V1_SIZE) in dt_from_blob()
857 die("DT blob size (%d) is too small\n", totalsize); in dt_from_blob()
859 blob = xmalloc(totalsize); in dt_from_blob()
863 fdt->totalsize = cpu_to_fdt32(totalsize); in dt_from_blob()
865 sizeleft = totalsize - sizeof(magic) - sizeof(totalsize); in dt_from_blob()
866 p = blob + sizeof(magic) + sizeof(totalsize); in dt_from_blob()
871 totalsize); in dt_from_blob()
888 if (off_mem_rsvmap >= totalsize) in dt_from_blob()
891 if (off_dt >= totalsize) in dt_from_blob()
894 if (off_str > totalsize) in dt_from_blob()
899 if ((off_str+size_str < off_str) || (off_str+size_str > totalsize)) in dt_from_blob()
903 inbuf_init(&strbuf, blob + off_str, blob + totalsize); in dt_from_blob()
908 if ((off_dt+size_dt < off_dt) || (off_dt+size_dt > totalsize)) in dt_from_blob()
919 blob + off_mem_rsvmap, blob + totalsize); in dt_from_blob()
920 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize); in dt_from_blob()