Searched refs:hdrsize (Results 1 – 2 of 2) sorted by relevance
/trusted-firmware-a-3.7.0/lib/libfdt/ |
D | fdt.c | 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_() 91 size_t hdrsize; in fdt_check_header() local 107 hdrsize = fdt_header_size(fdt); in fdt_check_header() 109 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header() 114 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 120 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() [all …]
|
D | fdt_sw.c | 111 const int hdrsize = FDT_ALIGN(sizeof(struct fdt_header), in fdt_create_with_flags() local 115 if (bufsize < hdrsize) in fdt_create_with_flags() 136 fdt_set_off_mem_rsvmap(fdt, hdrsize); in fdt_create_with_flags()
|