Lines Matching refs:header
53 static inline int tee_validate_header(optee_header_t *header) in tee_validate_header() argument
57 if ((header->magic == TEE_MAGIC_NUM_OPTEE) && in tee_validate_header()
58 (header->version == 2u) && in tee_validate_header()
59 (header->nb_images > 0u) && in tee_validate_header()
60 (header->nb_images <= OPTEE_MAX_NUM_IMAGES)) { in tee_validate_header()
141 optee_header_t *header; in parse_optee_header() local
145 header = (optee_header_t *)header_ep->pc; in parse_optee_header()
146 assert(header); in parse_optee_header()
151 INFO(" magic=0x%x\n", header->magic); in parse_optee_header()
152 INFO(" version=0x%x\n", header->version); in parse_optee_header()
153 INFO(" arch=0x%x\n", header->arch); in parse_optee_header()
154 INFO(" flags=0x%x\n", header->flags); in parse_optee_header()
155 INFO(" nb_images=0x%x\n", header->nb_images); in parse_optee_header()
174 if (!tee_validate_header(header)) { in parse_optee_header()
185 for (num = 0; num < header->nb_images; num++) { in parse_optee_header()
186 if (header->optee_image_list[num].image_id == in parse_optee_header()
189 &header->optee_image_list[num]); in parse_optee_header()
190 } else if (header->optee_image_list[num].image_id == in parse_optee_header()
193 &header->optee_image_list[num]); in parse_optee_header()
219 if (header->arch == 0) { in parse_optee_header()