Searched refs:swap_info (Results 1 – 4 of 4) sorted by relevance
/mcuboot-3.7.0/boot/bootutil/include/bootutil/ |
D | bootutil_public.h | 129 #define BOOT_GET_SWAP_TYPE(swap_info) ((swap_info) & 0x0F) argument 130 #define BOOT_GET_IMAGE_NUM(swap_info) ((swap_info) >> 4) argument 133 #define BOOT_SET_SWAP_INFO(swap_info, image, type) { \ argument 136 (swap_info) = (image) << 4 \
|
/mcuboot-3.7.0/boot/bootutil/src/ |
D | swap_misc.c | 135 uint8_t swap_info; in swap_read_status() local 167 rc = flash_area_read(fap, off, &swap_info, sizeof swap_info); in swap_read_status() 173 if (bootutil_buffer_is_erased(fap, &swap_info, sizeof swap_info)) { in swap_read_status() 174 BOOT_SET_SWAP_INFO(swap_info, 0, BOOT_SWAP_TYPE_NONE); in swap_read_status() 179 bs->swap_type = BOOT_GET_SWAP_TYPE(swap_info); in swap_read_status()
|
D | bootutil_public.c | 225 uint8_t swap_info; in boot_read_swap_state() local 240 rc = flash_area_read(fap, off, &swap_info, sizeof swap_info); in boot_read_swap_state() 246 state->swap_type = BOOT_GET_SWAP_TYPE(swap_info); in boot_read_swap_state() 247 state->image_num = BOOT_GET_IMAGE_NUM(swap_info); in boot_read_swap_state() 249 if (bootutil_buffer_is_erased(fap, &swap_info, sizeof swap_info) || in boot_read_swap_state() 384 uint8_t swap_info; in boot_write_swap_info() local 386 BOOT_SET_SWAP_INFO(swap_info, image_num, swap_type); in boot_write_swap_info() 393 return boot_write_trailer(fap, off, (const uint8_t *) &swap_info, 1); in boot_write_swap_info()
|
/mcuboot-3.7.0/scripts/imgtool/ |
D | dumpinfo.py | 126 swap_info = 0x99 226 swap_info = b[trailer_off] 227 trailer["swap_info"] = swap_info 321 print("swap_info: ", parse_status(hex(swap_info)))
|