Searched refs:bytes_copied (Results 1 – 3 of 3) sorted by relevance
/mcuboot-latest/boot/boot_serial/src/ |
D | boot_serial_encryption.c | 133 uint32_t bytes_copied; in decrypt_region_inplace() local 146 bytes_copied = 0; 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() 154 rc = flash_area_read(fap, off + bytes_copied, buf, chunk_sz); in decrypt_region_inplace() 162 if (off + bytes_copied < hdr->ih_hdr_size) { in decrypt_region_inplace() 164 if (hdr->ih_hdr_size > (off + bytes_copied + chunk_sz)) { in decrypt_region_inplace() 169 blk_sz = off + bytes_copied + chunk_sz - hdr->ih_hdr_size; in decrypt_region_inplace() 175 blk_off = ((off + bytes_copied) - hdr->ih_hdr_size) & 0xf; in decrypt_region_inplace() [all …]
|
/mcuboot-latest/boot/bootutil/src/ |
D | ram_load.c | 133 uint32_t bytes_copied = hdr->ih_hdr_size; in boot_decrypt_and_copy_image_to_sram() local 167 while (bytes_copied < tlv_off) { /* TLV section copied previously */ in boot_decrypt_and_copy_image_to_sram() 168 if (src_sz - bytes_copied > max_sz) { in boot_decrypt_and_copy_image_to_sram() 171 chunk_sz = src_sz - bytes_copied; in boot_decrypt_and_copy_image_to_sram() 174 cur_dst = ram_dst + bytes_copied; in boot_decrypt_and_copy_image_to_sram() 177 blk_off = ((bytes_copied) - hdr->ih_hdr_size) & 0xf; in boot_decrypt_and_copy_image_to_sram() 178 if (bytes_copied + chunk_sz > tlv_off) { in boot_decrypt_and_copy_image_to_sram() 181 blk_sz = tlv_off - (bytes_copied); in boot_decrypt_and_copy_image_to_sram() 184 (bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in boot_decrypt_and_copy_image_to_sram() 186 bytes_copied += chunk_sz; in boot_decrypt_and_copy_image_to_sram()
|
D | loader.c | 1330 uint32_t bytes_copied; local 1380 bytes_copied = 0; 1381 while (bytes_copied < sz) { 1382 if (sz - bytes_copied > sizeof buf) { 1385 chunk_sz = sz - bytes_copied; 1388 rc = flash_area_read(fap_src, off_src + bytes_copied, buf, chunk_sz); 1398 uint32_t abs_off = off - sector_off + bytes_copied; 1400 uint32_t abs_off = off + bytes_copied; 1443 rc = flash_area_write(fap_dst, off_dst + bytes_copied, buf, chunk_sz); 1448 bytes_copied += chunk_sz;
|