Home
last modified time | relevance | path

Searched refs:BOOT_CURR_IMG (Results 1 – 10 of 10) sorted by relevance

/mcuboot-latest/boot/bootutil/src/
Dram_load.c74 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()
[all …]
Dloader.c135 BOOT_CURR_IMG(state), i, boot_img_hdr(state, i)); in boot_read_image_headers()
174 rc = boot_save_boot_status(BOOT_CURR_IMG(state), in boot_add_shared_data()
216 BOOT_CURR_IMG(state) = 0; in fill_rsp()
217 IMAGES_ITER(BOOT_CURR_IMG(state)) { in fill_rsp()
218 if (!state->img_mask[BOOT_CURR_IMG(state)]) { in fill_rsp()
223 if (BOOT_CURR_IMG(state) >= BOOT_IMAGE_NUMBER) { in fill_rsp()
229 active_slot = state->slot_usage[BOOT_CURR_IMG(state)].active_slot; in fill_rsp()
249 IMAGES_ITER(BOOT_CURR_IMG(state)) { in close_all_flash_areas()
251 if (state->img_mask[BOOT_CURR_IMG(state)]) { in close_all_flash_areas()
332 if (flash_area == FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state))) { in boot_initialize_area()
[all …]
Dswap_offset.c97 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot);
100 boot_swap_type_multi(BOOT_CURR_IMG(state)) != BOOT_SWAP_TYPE_REVERT) {
106 boot_find_status(BOOT_CURR_IMG(state), &fap);
122 boot_swap_type_multi(BOOT_CURR_IMG(state)) == BOOT_SWAP_TYPE_REVERT) {
166 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot);
168 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot);
171 boot_swap_type_multi(BOOT_CURR_IMG(state)) == BOOT_SWAP_TYPE_REVERT) {
194 if (boot_swap_type_multi(BOOT_CURR_IMG(state)) != BOOT_SWAP_TYPE_REVERT) {
209 BOOT_CURR_IMG(state)] == false) &&
211 state->bootstrap_secondary_offset_set[BOOT_CURR_IMG(state)] = true;
[all …]
Dswap_misc.c51 image_index = BOOT_CURR_IMG(state); in swap_erase_trailer_sectors()
95 image_index = BOOT_CURR_IMG(state); in swap_status_init()
151 area_id = FLASH_AREA_IMAGE_PRIMARY(BOOT_CURR_IMG(state)); in swap_read_status()
Dswap_scratch.c70 max_entries = boot_status_entries(BOOT_CURR_IMG(state), fap); in swap_read_status_bytes()
358 image_index = BOOT_CURR_IMG(state); in swap_status_source()
392 state_scratch.image_num != BOOT_CURR_IMG(state)) { in swap_status_source()
601 image_index = BOOT_CURR_IMG(state); in boot_swap_sectors()
863 active_slot = state->slot_usage[BOOT_CURR_IMG(state)].active_slot; in app_max_size()
865 fa_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), active_slot); in app_max_size()
877 fa_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), active_slot); in app_max_size()
916 rc = boot_find_status(BOOT_CURR_IMG(state), &fap); in boot_read_image_header()
958 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), hdr_slot); in boot_read_image_header()
961 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), hdr_slot); in boot_read_image_header()
Dbootutil_priv.h398 #define BOOT_CURR_IMG(state) ((state)->curr_img_idx) macro
400 #define BOOT_CURR_IMG(state) 0 macro
403 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)])
407 #define BOOT_IMG(state, slot) ((state)->imgs[BOOT_CURR_IMG(state)][(slot)])
410 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)])
Dswap_move.c89 boot_find_status(BOOT_CURR_IMG(state), &fap); in boot_read_image_header()
118 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot); in boot_read_image_header()
159 max_entries = boot_status_entries(BOOT_CURR_IMG(state), fap); in swap_read_status_bytes()
355 image_index = BOOT_CURR_IMG(state); in swap_status_source()
563 image_index = BOOT_CURR_IMG(state); in swap_run()
Dimage_validate.c117 image_index = BOOT_CURR_IMG(state); in bootutil_img_hash()
488 int image_index = (state == NULL ? 0 : BOOT_CURR_IMG(state)); in bootutil_img_validate()
Dbootutil_misc.c381 area_id = flash_area_id_from_multi_image_slot(BOOT_CURR_IMG(state), slot); in boot_read_image_size()
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c140 int slot = flash_area_id_to_multi_image_slot(BOOT_CURR_IMG(state), in decrypt_region_inplace()