Lines Matching refs:BOOT_CURR_IMG
74 rc = boot_get_image_exec_ram_info(BOOT_CURR_IMG(state), &exec_ram_start, in boot_verify_ram_load_address()
84 img_dst = state->slot_usage[BOOT_CURR_IMG(state)].img_dst; in boot_verify_ram_load_address()
85 img_sz = state->slot_usage[BOOT_CURR_IMG(state)].img_sz; in boot_verify_ram_load_address()
142 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot); in boot_decrypt_and_copy_image_to_sram()
220 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot); in boot_copy_image_to_sram()
231 BOOT_CURR_IMG(state), rc); in boot_copy_image_to_sram()
282 uint32_t image_id_to_check = BOOT_CURR_IMG(state); in boot_check_ram_load_overlapping()
326 active_slot = state->slot_usage[BOOT_CURR_IMG(state)].active_slot; in boot_load_image_to_sram()
338 state->slot_usage[BOOT_CURR_IMG(state)].img_dst = img_dst; in boot_load_image_to_sram()
339 state->slot_usage[BOOT_CURR_IMG(state)].img_sz = img_sz; 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()
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()
382 state->slot_usage[BOOT_CURR_IMG(state)].img_sz = 0; in boot_load_image_to_sram()
401 BOOT_CURR_IMG(state), in boot_remove_image_from_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()
405 0, state->slot_usage[BOOT_CURR_IMG(state)].img_sz); in boot_remove_image_from_sram()
407 state->slot_usage[BOOT_CURR_IMG(state)].img_dst = 0; in boot_remove_image_from_sram()
408 state->slot_usage[BOOT_CURR_IMG(state)].img_sz = 0; in boot_remove_image_from_sram()
430 BOOT_LOG_INF("Removing image %d slot %d from flash", BOOT_CURR_IMG(state), in boot_remove_image_from_flash()
432 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot); in boot_remove_image_from_flash()
450 active_slot = state->slot_usage[BOOT_CURR_IMG(state)].active_slot; in boot_load_image_from_flash_to_sram()