Home
last modified time | relevance | path

Searched refs:boot_loader_state (Results 1 – 20 of 20) sorted by relevance

/mcuboot-latest/boot/bootutil/src/
Dswap_priv.h30 int swap_erase_trailer_sectors(const struct boot_loader_state *state,
37 int swap_status_init(const struct boot_loader_state *state,
50 int swap_status_source(struct boot_loader_state *state);
58 int swap_read_status(struct boot_loader_state *state, struct boot_status *bs);
66 struct boot_loader_state *state,
89 void swap_run(struct boot_loader_state *state,
96 static inline size_t boot_scratch_area_size(const struct boot_loader_state *state) in boot_scratch_area_size()
114 bool swap_write_block_size_check(struct boot_loader_state *state);
120 int app_max_size(struct boot_loader_state *state);
Dbootutil_priv.h234 struct boot_loader_state { struct
311 int boot_write_status(const struct boot_loader_state *state, struct boot_status *bs);
322 int boot_slots_compatible(struct boot_loader_state *state);
324 int boot_read_image_header(struct boot_loader_state *state, int slot,
327 int boot_copy_region(struct boot_loader_state *state,
332 int boot_copy_region(struct boot_loader_state *state,
419 boot_img_hdr(struct boot_loader_state *state, size_t slot) in boot_img_hdr()
425 boot_img_num_sectors(const struct boot_loader_state *state, size_t slot) in boot_img_num_sectors()
434 boot_img_slot_off(struct boot_loader_state *state, size_t slot) in boot_img_slot_off()
442 boot_img_sector_size(const struct boot_loader_state *state, in boot_img_sector_size()
[all …]
Dram_load.c61 boot_verify_ram_load_address(struct boot_loader_state *state) in boot_verify_ram_load_address()
117 boot_decrypt_and_copy_image_to_sram(struct boot_loader_state *state, in boot_decrypt_and_copy_image_to_sram()
209 boot_copy_image_to_sram(struct boot_loader_state *state, int slot, in boot_copy_image_to_sram()
274 boot_check_ram_load_overlapping(struct boot_loader_state *state) in boot_check_ram_load_overlapping()
318 boot_load_image_to_sram(struct boot_loader_state *state) in boot_load_image_to_sram()
396 boot_remove_image_from_sram(struct boot_loader_state *state) in boot_remove_image_from_sram()
422 boot_remove_image_from_flash(struct boot_loader_state *state, uint32_t slot) in boot_remove_image_from_flash()
442 int boot_load_image_from_flash_to_sram(struct boot_loader_state *state, in boot_load_image_from_flash_to_sram()
Dloader.c64 static struct boot_loader_state boot_data;
121 struct boot_loader_state *boot_get_loader_state(void) in boot_get_loader_state()
127 boot_read_image_headers(struct boot_loader_state *state, bool require_all, in boot_read_image_headers()
167 boot_add_shared_data(struct boot_loader_state *state, in boot_add_shared_data()
210 fill_rsp(struct boot_loader_state *state, struct boot_rsp *rsp) in fill_rsp()
245 close_all_flash_areas(struct boot_loader_state *state) in close_all_flash_areas()
323 boot_initialize_area(struct boot_loader_state *state, int flash_area) in boot_initialize_area()
363 boot_read_sectors_recovery(struct boot_loader_state *state) in boot_read_sectors_recovery()
389 boot_verify_slot_dependencies(struct boot_loader_state *state, uint32_t slot);
400 boot_verify_slot_dependency(struct boot_loader_state *state, in boot_verify_slot_dependency()
[all …]
Dswap_move.c51 find_last_idx(struct boot_loader_state *state, uint32_t swap_size) in find_last_idx()
72 boot_read_image_header(struct boot_loader_state *state, int slot, in boot_read_image_header()
146 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes()
237 static int app_max_sectors(struct boot_loader_state *state) in app_max_sectors()
260 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible()
343 swap_status_source(struct boot_loader_state *state) in swap_status_source()
387 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up()
430 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors()
480 fixup_revert(const struct boot_loader_state *state, struct boot_status *bs, in fixup_revert()
518 swap_run(struct boot_loader_state *state, struct boot_status *bs, in swap_run()
[all …]
Dswap_scratch.c58 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes()
142 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible()
342 swap_status_source(struct boot_loader_state *state) in swap_status_source()
425 boot_copy_sz(const struct boot_loader_state *state, int last_sector_idx, in boot_copy_sz()
465 find_last_sector_idx(const struct boot_loader_state *state, uint32_t copy_size) in find_last_sector_idx()
514 find_swap_count(const struct boot_loader_state *state, uint32_t copy_size) in find_swap_count()
546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors()
748 swap_run(struct boot_loader_state *state, struct boot_status *bs, in swap_run()
774 int app_max_size(struct boot_loader_state *state) in app_max_size()
855 int app_max_size(struct boot_loader_state *state) in app_max_size()
[all …]
Dswap_offset.c59 uint32_t find_last_idx(struct boot_loader_state *state, uint32_t swap_size) in find_last_idx()
80 int boot_read_image_header(struct boot_loader_state *state, int slot,
231 int swap_read_status_bytes(const struct flash_area *fap, struct boot_loader_state *state,
313 static int app_max_sectors(struct boot_loader_state *state)
337 int boot_slots_compatible(struct boot_loader_state *state)
419 int swap_status_source(struct boot_loader_state *state)
455 static void boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state,
513 static void boot_swap_sectors_revert(int idx, uint32_t sz, struct boot_loader_state *state,
584 void fixup_revert(const struct boot_loader_state *state, struct boot_status *bs,
617 void swap_run(struct boot_loader_state *state, struct boot_status *bs,
[all …]
Dswap_misc.c35 swap_erase_trailer_sectors(const struct boot_loader_state *state, in swap_erase_trailer_sectors()
83 swap_status_init(const struct boot_loader_state *state, in swap_status_init()
131 swap_read_status(struct boot_loader_state *state, struct boot_status *bs) in swap_read_status()
Dimage_validate.c68 bootutil_img_hash(struct boot_loader_state *state, in bootutil_img_hash()
353 bootutil_get_img_security_cnt(struct boot_loader_state *state, int slot, in bootutil_get_img_security_cnt()
478 bootutil_img_validate(struct boot_loader_state *state, in bootutil_img_validate()
Dbootutil_misc.c368 boot_read_image_size(struct boot_loader_state *state, int slot, uint32_t *size) in boot_read_image_size()
Dencrypted.c635 boot_enc_load(struct boot_loader_state *state, int slot, in boot_enc_load()
/mcuboot-latest/boot/bootutil/include/bootutil/
Dbootutil.h89 void boot_state_clear(struct boot_loader_state *state);
90 fih_ret context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp);
91 struct boot_loader_state *boot_get_loader_state(void);
93 uint32_t boot_get_state_secondary_offset(struct boot_loader_state *state,
Dbootutil_public.h148 struct boot_loader_state;
325 int boot_load_image_from_flash_to_sram(struct boot_loader_state *state,
335 int boot_remove_image_from_sram(struct boot_loader_state *state);
345 int boot_remove_image_from_flash(struct boot_loader_state *state,
Denc_key.h61 struct boot_loader_state;
70 int boot_enc_load(struct boot_loader_state *state, int slot,
Dimage.h199 struct boot_loader_state;
200 fih_ret bootutil_img_validate(struct boot_loader_state *state,
231 int32_t bootutil_get_img_security_cnt(struct boot_loader_state *state, int slot,
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c33 struct boot_loader_state boot_data; in boot_image_validate_encrypted()
34 struct boot_loader_state *state = &boot_data; in boot_image_validate_encrypted()
39 memset(&boot_data, 0, sizeof(struct boot_loader_state)); in boot_image_validate_encrypted()
128 decrypt_region_inplace(struct boot_loader_state *state, in decrypt_region_inplace()
225 struct boot_loader_state boot_data; in decrypt_image_inplace()
226 struct boot_loader_state *state = &boot_data; in decrypt_image_inplace()
235 memset(&boot_data, 0, sizeof(struct boot_loader_state)); in decrypt_image_inplace()
250 memset(&boot_data, 0, sizeof(struct boot_loader_state)); in decrypt_image_inplace()
/mcuboot-latest/boot/zephyr/
Dsingle_loader.c24 static struct boot_loader_state boot_data;
26 struct boot_loader_state *boot_get_loader_state(void) in boot_get_loader_state()
123 static struct boot_loader_state state; in boot_go()
Dflash_check.c19 bool swap_write_block_size_check(struct boot_loader_state *state) in swap_write_block_size_check()
/mcuboot-latest/samples/runtime-source/zephyr/hooks/
Dhooks.c35 struct boot_loader_state *state; in boot_go_hook()
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c252 struct boot_loader_state *state; in invoke_boot_go()
261 state = malloc(sizeof(struct boot_loader_state)); in invoke_boot_go()