Searched refs:totalsize (Results 1 – 6 of 6) sorted by relevance
/scripts/dtc/libfdt/ |
D | fdt.c | 20 uint32_t totalsize = fdt_totalsize(fdt); in fdt_ro_probe_() local 23 return totalsize; in fdt_ro_probe_() 46 if (totalsize < INT32_MAX) in fdt_ro_probe_() 47 return totalsize; in fdt_ro_probe_() 52 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) in check_off_() argument 54 return (off >= hdrsize) && (off <= totalsize); in check_off_() 57 static int check_block_(uint32_t hdrsize, uint32_t totalsize, in check_block_() argument 60 if (!check_off_(hdrsize, totalsize, base)) in check_block_() 64 if (!check_off_(hdrsize, totalsize, base + size)) in check_block_()
|
D | fdt.h | 14 fdt32_t totalsize; /* total size of DT block */ member
|
D | fdt_ro.c | 36 int32_t totalsize; in fdt_get_string() local 49 totalsize = fdt_ro_probe_(fdt); in fdt_get_string() 50 err = totalsize; in fdt_get_string() 51 if (totalsize < 0) in fdt_get_string() 56 if (absoffset >= (unsigned)totalsize) in fdt_get_string() 58 len = totalsize - absoffset; in fdt_get_string()
|
D | libfdt.h | 243 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) 260 fdt_set_hdr_(totalsize);
|
/scripts/dtc/ |
D | flattree.c | 335 fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize); in make_fdt_header() 376 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 382 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob() 390 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob() 391 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 394 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 396 fdt.totalsize = cpu_to_fdt32(tsize); in dt_to_blob() 799 uint32_t magic, totalsize, version, size_dt, boot_cpuid_phys; in dt_from_blob() local 840 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob() 841 if (totalsize < FDT_V1_SIZE) in dt_from_blob() [all …]
|
D | util.c | 294 int totalsize; in utilfdt_write_err() local 305 totalsize = fdt_totalsize(blob); in utilfdt_write_err() 308 while (offset < totalsize) { in utilfdt_write_err() 309 ret = write(fd, ptr + offset, totalsize - offset); in utilfdt_write_err()
|