| /mcuboot-latest/sim/simflash/src/ |
| D | lib.rs | 55 fn erase(&mut self, offset: usize, len: usize) -> Result<()>; in erase() 56 fn write(&mut self, offset: usize, payload: &[u8]) -> Result<()>; in write() 57 fn read(&self, offset: usize, data: &mut [u8]) -> Result<()>; in read() 59 fn add_bad_region(&mut self, offset: usize, len: usize, rate: f32) -> Result<()>; in add_bad_region() 133 fn get_sector(&self, offset: usize) -> Option<(usize, usize)> { in get_sector() 134 let mut offset = offset; in get_sector() localVariable 136 if offset < size { in get_sector() 137 return Some((sector, offset)); in get_sector() 139 offset -= size; in get_sector() 152 fn erase(&mut self, offset: usize, len: usize) -> Result<()> { in erase() [all …]
|
| /mcuboot-latest/boot/zephyr/ |
| D | shared_data.c | 41 uintptr_t tlv_end, offset; in boot_add_data_to_shared_area() local 61 offset = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area() 66 while (offset < tlv_end) { in boot_add_data_to_shared_area() 68 rc = retention_read(bootloader_info_dev, offset, (void *)&tlv_entry, in boot_add_data_to_shared_area() 80 offset += SHARED_DATA_ENTRY_SIZE(tlv_entry.tlv_len); in boot_add_data_to_shared_area() 97 offset = shared_data_size; in boot_add_data_to_shared_area() 98 rc = retention_write(bootloader_info_dev, offset, (void*)&tlv_entry, in boot_add_data_to_shared_area() 105 offset += SHARED_DATA_ENTRY_HEADER_SIZE; in boot_add_data_to_shared_area() 106 rc = retention_write(bootloader_info_dev, offset, data, size); in boot_add_data_to_shared_area()
|
| /mcuboot-latest/sim/mcuboot-sys/src/ |
| D | lib.rs | 19 offset: u32, // 32-bit offset. field 23 pub fn new(size: u32, offset: u32) -> RamBlock { in new() 26 offset: offset, in new() 44 start: self.offset, in invoke() 46 base: &self.ram[0] as *const u8 as usize - self.offset as usize, in invoke()
|
| D | api.rs | 272 pub extern "C" fn sim_flash_erase(dev_id: u8, offset: u32, size: u32) -> libc::c_int { in sim_flash_erase() 277 rc = map_err(dev.erase(offset as usize, size as usize)); in sim_flash_erase() 284 pub extern "C" fn sim_flash_read(dev_id: u8, offset: u32, dest: *mut u8, size: u32) -> libc::c_int { in sim_flash_read() 290 rc = map_err(dev.read(offset as usize, &mut buf)); in sim_flash_read() 297 pub extern "C" fn sim_flash_write(dev_id: u8, offset: u32, src: *const u8, size: u32) -> libc::c_in… in sim_flash_write() 303 rc = map_err(dev.write(offset as usize, &buf)); in sim_flash_write()
|
| /mcuboot-latest/boot/bootutil/src/ |
| D | boot_record.c | 58 uintptr_t tlv_end, offset; in boot_add_data_to_shared_area() local 80 offset = MCUBOOT_SHARED_DATA_BASE + SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area() 85 while (offset < tlv_end) { in boot_add_data_to_shared_area() 87 memcpy(&tlv_entry, (const void *)offset, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area() 93 offset += SHARED_DATA_ENTRY_SIZE(tlv_entry.tlv_len); in boot_add_data_to_shared_area() 110 offset = tlv_end; in boot_add_data_to_shared_area() 111 memcpy((void *)offset, &tlv_entry, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area() 113 offset += SHARED_DATA_ENTRY_HEADER_SIZE; in boot_add_data_to_shared_area() 114 memcpy((void *)offset, data, size); in boot_add_data_to_shared_area() 132 uint32_t offset; in boot_save_boot_status() local [all …]
|
| /mcuboot-latest/boot/mbed/src/ |
| D | flash_map_backend.cpp | 216 bd_addr_t offset = 0; in flash_area_get_sectors() local 218 while (bd->is_valid_read(offset, bd->get_read_size())) { in flash_area_get_sectors() 220 bd_size_t erase_size = bd->get_erase_size(offset); in flash_area_get_sectors() 223 sectors[*count].fs_off = offset; in flash_area_get_sectors() 227 offset += erase_size; in flash_area_get_sectors()
|
| /mcuboot-latest/boot/nuttx/src/flash_map_backend/ |
| D | flash_map_backend.c | 207 static struct flash_device_s *lookup_flash_device_by_offset(uint32_t offset) in lookup_flash_device_by_offset() argument 215 if (offset == dev->fa_cfg->fa_off) in lookup_flash_device_by_offset() 798 int flash_area_id_from_image_offset(uint32_t offset) in flash_area_id_from_image_offset() argument 800 struct flash_device_s *dev = lookup_flash_device_by_offset(offset); in flash_area_id_from_image_offset() 802 BOOT_LOG_INF("offset:%" PRIu32, offset); in flash_area_id_from_image_offset() 809 BOOT_LOG_ERR("Unexpected Request: offset:%" PRIu32, offset); in flash_area_id_from_image_offset() 833 off_t offset = fap->fa_off + off; in flash_area_get_sector() local 834 struct flash_device_s *dev = lookup_flash_device_by_offset(offset); in flash_area_get_sector() 840 fs->fs_off = (offset / dev->mtdgeo.erasesize) * dev->mtdgeo.erasesize; in flash_area_get_sector()
|
| /mcuboot-latest/boot/espressif/port/ |
| D | esp_mcuboot.c | 180 uint32_t offset = bytes; in aligned_flash_read() local 184 … if (bootloader_flash_read(aligned_addr + offset, read_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_read() 190 offset += bytes; in aligned_flash_read() 258 uint32_t offset = bytes; in aligned_flash_write() local 262 …if (bootloader_flash_read(aligned_addr + offset, write_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_write() 268 …if (bootloader_flash_write(aligned_addr + offset, write_data, ALIGN_UP(bytes, 4), flash_encryption… in aligned_flash_write() 272 offset += bytes; in aligned_flash_write()
|
| /mcuboot-latest/sim/src/ |
| D | image.rs | 119 offset: u32, field 1245 if let Some((offset, _, dev_id)) = self.areadesc.find(FlashId::Image1) { in run_direct_xip() 1246 assert_eq!(offset, resp.image_off as usize); in run_direct_xip() 1279 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_ram_load() 1323 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_split_ram_load() 1689 let offset = addr; localVariable 1694 }, SlotPlace { offset, size }); 1771 let mut offset = slot.base_off; in install_image() localVariable 1780 offset += sector_size; in install_image() 1791 for dep in deps.my_deps(offset, slot.index) { in install_image() [all …]
|
| D | depends.rs | 13 fn my_version(&self, offset: usize, slot: usize) -> ImageVersion; in my_version() 16 fn my_deps(&self, offset: usize, slot: usize) -> Vec<ImageVersion>; in my_deps()
|
| /mcuboot-latest/docs/release-notes.d/ |
| D | swap-using-offset.md | 1 - Added a new swap using offset algorithm which is set with
|
| /mcuboot-latest/sim/ |
| D | Cargo.toml | 18 swap-offset = ["mcuboot-sys/swap-offset"]
|
| /mcuboot-latest/boot/espressif/hal/src/ |
| D | secure_boot.c | 234 size_t offset = 128; in check_and_generate_secure_boot_keys() local 236 size_t offset = 0; in check_and_generate_secure_boot_keys() local 238 …esp_efuse_read_block(blocks[i], boot_key_digests.key_digests[boot_key_digests.num_digests], offset, in check_and_generate_secure_boot_keys()
|
| /mcuboot-latest/boot/nuttx/include/flash_map_backend/ |
| D | flash_map_backend.h | 443 int flash_area_id_from_image_offset(uint32_t offset);
|
| /mcuboot-latest/sim/mcuboot-sys/ |
| D | Cargo.toml | 39 # Swap using offset mode 40 swap-offset = []
|
| /mcuboot-latest/scripts/ |
| D | mcubin.bt | 25 uint32 offset; 102 FSeek(ptable.entries[i].offset);
|
| /mcuboot-latest/docs/ |
| D | PORTING.md | 41 * The flash offset of the image to execute. Indicates the position of 83 uniquely tied to region characterized by device, offset and size. 96 uint32_t fa_off; /** The flash offset from the beginning */ 109 /*< Obtains offset, from the beginning of a device, the flash area described 112 /*< Obtains size, from the offset, of the flash area `fa` characterized region */
|
| D | readme-riot.md | 28 `BOOTLOADER_OFFSET` offset rather than the beginning of ROM. MCUboot
|
| /mcuboot-latest/scripts/imgtool/ |
| D | dumpinfo.py | 85 offset = (_LINE_LENGTH - len(content)) // 2 86 pre = "|" + (sepc * (offset - 1))
|
| /mcuboot-latest/sim/mcuboot-sys/csupport/ |
| D | run.c | 42 extern int sim_flash_erase(uint8_t flash_id, uint32_t offset, uint32_t size); 43 extern int sim_flash_read(uint8_t flash_id, uint32_t offset, uint8_t *dest, 45 extern int sim_flash_write(uint8_t flash_id, uint32_t offset, const uint8_t *src,
|
| /mcuboot-latest/boot/cypress/BlinkyApp/ |
| D | Readme.md | 92 `HEADER_OFFSET` defines the offset from original boot image address. This one in line above suggest… 138 - `HEADER_OFFSET` - 0 (default) - no offset of output hex file, 0x%VALUE% - offset for output hex f…
|
| /mcuboot-latest/boot/zcbor/src/ |
| D | zcbor_decode.c | 475 result->offset = 0; 503 result->offset += prev_fragment->fragment.len; 504 result->fragment.len = result->total_len - result->offset; 519 result->offset += prev_fragment->fragment.len; 520 result->fragment.len = result->total_len - result->offset; 530 return (fragment->total_len == (fragment->offset + fragment->fragment.len));
|
| /mcuboot-latest/boot/zcbor/include/ |
| D | zcbor_common.h | 57 size_t offset; ///! The offset in the full string at which this fragment belongs. member
|
| /mcuboot-latest/boot/mbed/ |
| D | mcuboot_imgtool.cmake | 143 # So we need to temporarily override MBED_UPLOAD_BASE_ADDR with an offset value 164 # address. This can cause issues if you pass it to a tool that uses this offset to decide where to …
|
| /mcuboot-latest/boot/espressif/port/esp32c2/ld/ |
| D | bootloader.ld | 19 /* The offset between Dbus and Ibus. Used to convert between 0x403xxxxx and 0x3fcxxxxx addresses. */
|