Lines Matching refs:ivt_hdr
23 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()
527 struct ivt_header *ivt_hdr; in imx_hab_authenticate_image() local
549 ivt_hdr = &ivt->hdr; in imx_hab_authenticate_image()
552 if (verify_ivt_header(ivt_hdr)) in imx_hab_authenticate_image()