Lines Matching refs:hdrsize
48 static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off)
50 return (off >= hdrsize) && (off <= totalsize);
53 static int check_block_(uint32_t hdrsize, uint32_t totalsize,
56 if (!check_off_(hdrsize, totalsize, base))
60 if (!check_off_(hdrsize, totalsize, base + size))
87 size_t hdrsize;
99 hdrsize = fdt_header_size(fdt);
102 if ((fdt_totalsize(fdt) < hdrsize)
107 if (!check_off_(hdrsize, fdt_totalsize(fdt),
115 if (!check_off_(hdrsize, fdt_totalsize(fdt),
119 if (!check_block_(hdrsize, fdt_totalsize(fdt),
126 if (!check_block_(hdrsize, fdt_totalsize(fdt),