Home
last modified time | relevance | path

Searched refs:sz (Results 1 – 9 of 9) sorted by relevance

/mcuboot-latest/boot/bootutil/src/
Dswap_offset.c52 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
53 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off)
55 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
56 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz)
62 uint32_t sz; in find_last_idx() local
66 sz = 0; in find_last_idx()
70 sz += sector_sz; in find_last_idx()
72 if (sz >= swap_size) { in find_last_idx()
85 uint32_t sz; local
115 sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, 0);
[all …]
Dswap_move.c54 uint32_t sz; in find_last_idx() local
58 sz = 0; in find_last_idx()
61 sz += sector_sz; in find_last_idx()
63 if (sz >= swap_size) { in find_last_idx()
77 uint32_t sz; in boot_read_image_header() local
97 sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, 0); in boot_read_image_header()
104 off = sz; in boot_read_image_header()
110 off = sz; in boot_read_image_header()
239 uint32_t sz = 0; in app_max_sectors() local
249 sz += sector_sz; in app_max_sectors()
[all …]
Dswap_scratch.c430 uint32_t sz; in boot_copy_sz() local
433 sz = 0; in boot_copy_sz()
437 new_sz = sz + boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_copy_sz()
446 sz = new_sz; in boot_copy_sz()
453 return sz; in boot_copy_sz()
546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument
566 copy_sz = sz; in boot_swap_sectors()
594 if ((img_off + sz) > in boot_swap_sectors()
599 bs->use_scratch = (bs->idx == BOOT_STATUS_IDX_0 && copy_sz != sz); in boot_swap_sectors()
655 rc = boot_erase_region(fap_secondary_slot, img_off, sz); in boot_swap_sectors()
[all …]
Dswap_misc.c43 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()
Dencrypted.c705 uint32_t sz, uint32_t blk_off, uint8_t *buf) in boot_enc_encrypt() argument
711 if (sz == 0) { in boot_enc_encrypt()
723 bootutil_aes_ctr_encrypt(&enc->aes_ctr, nonce, buf, sz, blk_off, buf); in boot_enc_encrypt()
728 uint32_t sz, uint32_t blk_off, uint8_t *buf) in boot_enc_decrypt() argument
734 if (sz == 0) { in boot_enc_decrypt()
746 bootutil_aes_ctr_decrypt(&enc->aes_ctr, nonce, buf, sz, blk_off, buf); in boot_enc_decrypt()
Dloader.c114 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
115 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off)
117 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
118 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz)
1280 boot_erase_region(const struct flash_area *fap, uint32_t off, uint32_t sz) argument
1282 return flash_area_erase(fap, off, sz);
1322 uint32_t off_src, uint32_t off_dst, uint32_t sz, uint32_t sector_off) argument
1327 uint32_t off_src, uint32_t off_dst, uint32_t sz)
1381 while (bytes_copied < sz) {
1382 if (sz - bytes_copied > sizeof buf) {
[all …]
Dbootutil_priv.h330 uint32_t off_src, uint32_t off_dst, uint32_t sz, uint32_t sector_off);
335 uint32_t off_src, uint32_t off_dst, uint32_t sz);
337 int boot_erase_region(const struct flash_area *fap, uint32_t off, uint32_t sz);
/mcuboot-latest/boot/bootutil/include/bootutil/
Denc_key.h79 uint32_t off, uint32_t sz, uint32_t blk_off, uint8_t *buf);
81 uint32_t off, uint32_t sz, uint32_t blk_off, uint8_t *buf);
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c131 uint32_t off, uint32_t sz) in decrypt_region_inplace() argument
142 uint8_t buf[sz] __attribute__((aligned)); in decrypt_region_inplace()
143 assert(sz <= sizeof buf); in decrypt_region_inplace()
147 while (bytes_copied < sz) { in decrypt_region_inplace()
148 if (sz - bytes_copied > sizeof buf) { in decrypt_region_inplace()
151 chunk_sz = sz - bytes_copied; in decrypt_region_inplace()