Lines Matching refs:header
170 boot_api_image_header_t *header = in stm32image_partition_size() local
186 header->magic = 0; in stm32image_partition_size()
188 while (header->magic == 0U) { in stm32image_partition_size()
195 result = io_read(backend_handle, (uintptr_t)header, in stm32image_partition_size()
201 header->magic = 0; in stm32image_partition_size()
204 if ((header->magic != BOOT_API_IMAGE_HEADER_MAGIC_NB) || in stm32image_partition_size()
205 (header->binary_type != current_part->binary_type) || in stm32image_partition_size()
206 (header->image_length >= stm32image_dev.device_size)) { in stm32image_partition_size()
224 header->magic = 0; in stm32image_partition_size()
234 if (header->image_length < stm32image_dev.lba_size) { in stm32image_partition_size()
237 *length = header->image_length; in stm32image_partition_size()
251 boot_api_image_header_t *header = in stm32image_partition_read() local
267 if (header->magic != BOOT_API_IMAGE_HEADER_MAGIC_NB) { in stm32image_partition_read()
299 if ((header->load_address != 0U) && in stm32image_partition_read()
300 (header->load_address != buffer)) { in stm32image_partition_read()
332 header->magic = 0; in stm32image_partition_read()
336 result = stm32mp_check_header(header, buffer); in stm32image_partition_read()
340 header->magic = 0; in stm32image_partition_read()
343 result = stm32mp_auth_image(header, buffer); in stm32image_partition_read()