Home
last modified time | relevance | path

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

/mcuboot-latest/boot/bootutil/src/
Dbootutil_public.c91 uint8_t swap_type; member
114 .swap_type = BOOT_SWAP_TYPE_REVERT,
126 .swap_type = BOOT_SWAP_TYPE_TEST,
137 .swap_type = BOOT_SWAP_TYPE_PERM,
148 .swap_type = BOOT_SWAP_TYPE_REVERT,
269 state->swap_type = BOOT_GET_SWAP_TYPE(swap_info); in boot_read_swap_state()
273 state->swap_type > BOOT_SWAP_TYPE_REVERT) { in boot_read_swap_state()
274 state->swap_type = BOOT_SWAP_TYPE_NONE; in boot_read_swap_state()
403 boot_write_swap_info(const struct flash_area *fap, uint8_t swap_type, in boot_write_swap_info() argument
409 BOOT_SET_SWAP_INFO(swap_info, image_num, swap_type); in boot_write_swap_info()
[all …]
Dbootutil_priv.h99 uint8_t swap_type; /* The type of swap in effect */ member
250 uint8_t swap_type[BOOT_IMAGE_NUMBER]; member
314 int boot_write_swap_info(const struct flash_area *fap, uint8_t swap_type,
410 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)])
413 #define BOOT_IS_UPGRADE(swap_type) \ argument
414 (((swap_type) == BOOT_SWAP_TYPE_TEST) || \
415 ((swap_type) == BOOT_SWAP_TYPE_REVERT) || \
416 ((swap_type) == BOOT_SWAP_TYPE_PERM))
Dswap_misc.c103 if (bs->swap_type != BOOT_SWAP_TYPE_NONE) { in swap_status_init()
104 rc = boot_write_swap_info(fap, bs->swap_type, image_index); in swap_status_init()
179 bs->swap_type = BOOT_GET_SWAP_TYPE(swap_info); in swap_read_status()
Dloader.c410 uint8_t swap_type = state->swap_type[dep->image_id]; in boot_verify_slot_dependency() local
411 dep_slot = BOOT_IS_UPGRADE(swap_type) ? BOOT_SECONDARY_SLOT in boot_verify_slot_dependency()
696 bs->swap_type = BOOT_SWAP_TYPE_NONE; in boot_status_reset()
1057 if (bs->swap_type == BOOT_SWAP_TYPE_REVERT ||
1247 int swap_type; local
1250 swap_type = boot_swap_type_multi(BOOT_CURR_IMG(state));
1251 if (BOOT_IS_UPGRADE(swap_type)) {
1255 FIH_CALL(boot_validate_slot, fih_rc, state, BOOT_SECONDARY_SLOT, bs, swap_type);
1258 swap_type = BOOT_SWAP_TYPE_NONE;
1260 swap_type = BOOT_SWAP_TYPE_FAIL;
[all …]
Dswap_offset.c121 if (bs->swap_type == BOOT_SWAP_TYPE_REVERT ||
170 if (bs->swap_type == BOOT_SWAP_TYPE_REVERT ||
415 (state)->swap_type, \
595 if (bs->swap_type != BOOT_SWAP_TYPE_REVERT ||
657 bs->swap_type = BOOT_SWAP_TYPE_NONE;
699 if (bs->swap_type == BOOT_SWAP_TYPE_REVERT ||
Dswap_move.c338 (state)->swap_type, \
491 if (bs->swap_type != BOOT_SWAP_TYPE_REVERT || in fixup_revert()
558 bs->swap_type = BOOT_SWAP_TYPE_NONE; in swap_run()
Dswap_scratch.c250 (state)->swap_type, \
703 if (swap_state.swap_type != BOOT_SWAP_TYPE_NONE) { in boot_swap_sectors()
705 swap_state.swap_type, image_index); in boot_swap_sectors()
/mcuboot-latest/boot/zephyr/
Dhooks_sample.c69 state->swap_type = BOOT_SWAP_TYPE_NONE; in boot_read_swap_state_primary_slot_hook()
/mcuboot-latest/boot/bootutil/include/bootutil/
Dbootutil.h68 uint8_t swap_type; member
Dbootutil_public.h152 uint8_t swap_type; /* One of the BOOT_SWAP_TYPE_[...] values. */ member