Home
last modified time | relevance | path

Searched refs:ivt_hdr (Results 1 – 1 of 1) sorted by relevance

/external/u-boot/arch/arm/mach-imx/
Dhab.c23 static int ivt_header_error(const char *err_str, struct ivt_header *ivt_hdr) in ivt_header_error() argument
26 ivt_hdr->magic, ivt_hdr->length, ivt_hdr->version); in ivt_header_error()
31 static int verify_ivt_header(struct ivt_header *ivt_hdr) in verify_ivt_header() argument
35 if (ivt_hdr->magic != IVT_HEADER_MAGIC) in verify_ivt_header()
36 result = ivt_header_error("bad magic", ivt_hdr); in verify_ivt_header()
38 if (be16_to_cpu(ivt_hdr->length) != IVT_TOTAL_LENGTH) in verify_ivt_header()
39 result = ivt_header_error("bad length", ivt_hdr); in verify_ivt_header()
41 if (ivt_hdr->version != IVT_HEADER_V1 && in verify_ivt_header()
42 ivt_hdr->version != IVT_HEADER_V2) in verify_ivt_header()
43 result = ivt_header_error("bad version", ivt_hdr); in verify_ivt_header()
[all …]