Lines Matching refs:hdr
118 uint32_t slot, struct image_header *hdr, in boot_decrypt_and_copy_image_to_sram() argument
133 uint32_t bytes_copied = hdr->ih_hdr_size; in boot_decrypt_and_copy_image_to_sram()
148 tlv_off = BOOT_TLV_OFF(hdr); in boot_decrypt_and_copy_image_to_sram()
156 rc = boot_enc_load(state, slot, hdr, fap_src, &bs); in boot_decrypt_and_copy_image_to_sram()
177 blk_off = ((bytes_copied) - hdr->ih_hdr_size) & 0xf; in boot_decrypt_and_copy_image_to_sram()
184 (bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in boot_decrypt_and_copy_image_to_sram()
321 struct image_header *hdr = NULL; in boot_load_image_to_sram() local
327 hdr = boot_img_hdr(state, active_slot); in boot_load_image_to_sram()
329 if (hdr->ih_flags & IMAGE_F_RAM_LOAD) { in boot_load_image_to_sram()
331 img_dst = hdr->ih_load_addr; in boot_load_image_to_sram()
357 if (IS_ENCRYPTED(hdr)) { in boot_load_image_to_sram()
358 rc = boot_decrypt_and_copy_image_to_sram(state, active_slot, hdr, img_sz, img_dst); in boot_load_image_to_sram()
443 struct image_header *hdr) in boot_load_image_from_flash_to_sram() argument
451 BOOT_IMG(state, active_slot).hdr = *hdr; in boot_load_image_from_flash_to_sram()