/mcuboot-2.7.6/boot/bootutil/src/ |
D | swap_move.c | 58 uint32_t sz; in boot_read_image_header() local 68 sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, 0); in boot_read_image_header() 72 off = sz; in boot_read_image_header() 83 off = sz; in boot_read_image_header() 308 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up() argument 338 rc = boot_erase_region(fap_pri, new_off, sz); in boot_move_sector_up() 341 rc = boot_copy_region(state, fap_pri, fap_pri, old_off, new_off, sz); in boot_move_sector_up() 351 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument 365 rc = boot_erase_region(fap_pri, pri_off, sz); in boot_swap_sectors() 368 rc = boot_copy_region(state, fap_sec, fap_pri, sec_off, pri_off, sz); in boot_swap_sectors() [all …]
|
D | swap_scratch.c | 452 uint32_t sz; in boot_copy_sz() local 455 sz = 0; in boot_copy_sz() 459 new_sz = sz + boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_copy_sz() 468 sz = new_sz; in boot_copy_sz() 475 return sz; in boot_copy_sz() 490 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument 509 copy_sz = sz; in boot_swap_sectors() 522 if ((img_off + sz) > in boot_swap_sectors() 527 bs->use_scratch = (bs->idx == BOOT_STATUS_IDX_0 && copy_sz != sz); in boot_swap_sectors() 582 rc = boot_erase_region(fap_secondary_slot, img_off, sz); in boot_swap_sectors() [all …]
|
D | swap_misc.c | 43 uint32_t sz; in swap_erase_trailer_sectors() local 70 sz = boot_img_sector_size(state, slot, sector); in swap_erase_trailer_sectors() 72 rc = boot_erase_region(fap, off, sz); in swap_erase_trailer_sectors() 76 total_sz += sz; in swap_erase_trailer_sectors()
|
D | bootutil_priv.h | 263 uint32_t off_src, uint32_t off_dst, uint32_t sz); 264 int boot_erase_region(const struct flash_area *fap, uint32_t off, uint32_t sz);
|
D | loader.c | 872 boot_erase_region(const struct flash_area *fap, uint32_t off, uint32_t sz) in boot_erase_region() argument 874 return flash_area_erase(fap, off, sz); in boot_erase_region() 895 uint32_t off_src, uint32_t off_dst, uint32_t sz) in boot_copy_region() argument 917 while (bytes_copied < sz) { in boot_copy_region() 918 if (sz - bytes_copied > sizeof buf) { in boot_copy_region() 921 chunk_sz = sz - bytes_copied; in boot_copy_region() 1021 uint32_t sz; in boot_copy_image() local 1065 sz = 0; in boot_copy_image() 1067 sz += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sector); in boot_copy_image() 1070 } while (sz < trailer_sz); in boot_copy_image() [all …]
|
D | encrypted.c | 725 const struct flash_area *fap, uint32_t off, uint32_t sz, in boot_encrypt() argument 734 if (sz == 0) { in boot_encrypt() 753 bootutil_aes_ctr_encrypt(&enc->aes_ctr, nonce, buf, sz, blk_off, buf); in boot_encrypt()
|
/mcuboot-2.7.6/boot/bootutil/include/bootutil/ |
D | enc_key.h | 65 const struct flash_area *fap, uint32_t off, uint32_t sz,
|