Lines Matching refs:hdr
16 int optee_verify_image(struct optee_header *hdr, unsigned long tzdram_start, in optee_verify_image() argument
22 tee_file_size = hdr->init_size + hdr->paged_size + in optee_verify_image()
25 if (hdr->magic != OPTEE_MAGIC || in optee_verify_image()
26 hdr->version != OPTEE_VERSION || in optee_verify_image()
27 hdr->init_load_addr_hi > tzdram_end || in optee_verify_image()
28 hdr->init_load_addr_lo < tzdram_start || in optee_verify_image()
31 (hdr->init_load_addr_lo + tee_file_size) > tzdram_end) { in optee_verify_image()
42 struct optee_header *hdr = (struct optee_header *)image_addr; in optee_verify_bootm_image() local
48 ret = optee_verify_image(hdr, tzdram_start, tzdram_len, image_len); in optee_verify_bootm_image()
52 if (image_load_addr + sizeof(*hdr) != hdr->init_load_addr_lo) { in optee_verify_bootm_image()
59 printf(optee_hdr_err_msg, hdr, image_addr, hdr->magic, tzdram_start, in optee_verify_bootm_image()
60 tzdram_start + tzdram_len, hdr->init_load_addr_lo, in optee_verify_bootm_image()
61 hdr->init_load_addr_hi, image_len, hdr->arch, image_load_addr, in optee_verify_bootm_image()