Lines Matching refs:img_dst
63 uint32_t img_dst; in boot_verify_ram_load_address() local
84 img_dst = state->slot_usage[BOOT_CURR_IMG(state)].img_dst; in boot_verify_ram_load_address()
87 if (img_dst < exec_ram_start) { in boot_verify_ram_load_address()
91 if (!boot_u32_safe_add(&img_end_addr, img_dst, img_sz)) { in boot_verify_ram_load_address()
119 uint32_t src_sz, uint32_t img_dst) in boot_decrypt_and_copy_image_to_sram() argument
140 uint8_t * ram_dst = (void *)(IMAGE_RAM_BASE + img_dst); in boot_decrypt_and_copy_image_to_sram()
210 uint32_t img_dst, uint32_t img_sz) in boot_copy_image_to_sram() argument
228 rc = flash_area_read(fap_src, 0, (void *)(IMAGE_RAM_BASE + img_dst), img_sz); in boot_copy_image_to_sram()
284 start_a = state->slot_usage[image_id_to_check].img_dst; in boot_check_ram_load_overlapping()
295 start_b = state->slot_usage[i].img_dst; in boot_check_ram_load_overlapping()
322 uint32_t img_dst; in boot_load_image_to_sram() local
331 img_dst = hdr->ih_load_addr; in boot_load_image_to_sram()
338 state->slot_usage[BOOT_CURR_IMG(state)].img_dst = img_dst; in boot_load_image_to_sram()
343 … BOOT_LOG_INF("Image %d RAM load address 0x%x is invalid.", BOOT_CURR_IMG(state), img_dst); in boot_load_image_to_sram()
351 another image.", BOOT_CURR_IMG(state), img_dst); 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()
360 rc = boot_copy_image_to_sram(state, active_slot, img_dst, img_sz); in boot_load_image_to_sram()
366 rc = boot_copy_image_to_sram(state, active_slot, img_dst, img_sz); in boot_load_image_to_sram()
369 BOOT_LOG_INF("Image %d RAM loading to 0x%x is failed.", BOOT_CURR_IMG(state), img_dst); in boot_load_image_to_sram()
371 … BOOT_LOG_INF("Image %d RAM loading to 0x%x is succeeded.", BOOT_CURR_IMG(state), img_dst); in boot_load_image_to_sram()
381 state->slot_usage[BOOT_CURR_IMG(state)].img_dst = 0; in boot_load_image_to_sram()
402 state->slot_usage[BOOT_CURR_IMG(state)].img_dst); in boot_remove_image_from_sram()
404 memset((void*)(IMAGE_RAM_BASE + state->slot_usage[BOOT_CURR_IMG(state)].img_dst), in boot_remove_image_from_sram()
407 state->slot_usage[BOOT_CURR_IMG(state)].img_dst = 0; in boot_remove_image_from_sram()