Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 27) sorted by relevance

12

/mcuboot-3.7.0/sim/simflash/src/
Dlib.rs55 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-3.7.0/boot/zephyr/
Dshared_data.c41 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-3.7.0/sim/mcuboot-sys/src/
Dlib.rs19 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()
Dapi.rs272 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-3.7.0/boot/bootutil/src/
Dboot_record.c54 uintptr_t tlv_end, offset; in boot_add_data_to_shared_area() local
76 offset = MCUBOOT_SHARED_DATA_BASE + SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
81 while (offset < tlv_end) { in boot_add_data_to_shared_area()
83 memcpy(&tlv_entry, (const void *)offset, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
89 offset += SHARED_DATA_ENTRY_SIZE(tlv_entry.tlv_len); in boot_add_data_to_shared_area()
106 offset = tlv_end; in boot_add_data_to_shared_area()
107 memcpy((void *)offset, &tlv_entry, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
109 offset += SHARED_DATA_ENTRY_HEADER_SIZE; in boot_add_data_to_shared_area()
110 memcpy((void *)offset, data, size); in boot_add_data_to_shared_area()
128 uint32_t offset; in boot_save_boot_status() local
[all …]
/mcuboot-3.7.0/boot/mbed/src/
Dflash_map_backend.cpp215 bd_addr_t offset = 0; in flash_area_get_sectors() local
217 while (*count < MCUBOOT_MAX_IMG_SECTORS && bd->is_valid_read(offset, bd->get_read_size())) { in flash_area_get_sectors()
219 sectors[*count].fs_off = offset; in flash_area_get_sectors()
220 bd_size_t erase_size = bd->get_erase_size(offset); in flash_area_get_sectors()
223 offset += erase_size; in flash_area_get_sectors()
/mcuboot-3.7.0/boot/nuttx/src/flash_map_backend/
Dflash_map_backend.c207 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-3.7.0/boot/espressif/port/
Desp_mcuboot.c172 uint32_t offset = bytes; in aligned_flash_read() local
176 … if (bootloader_flash_read(aligned_addr + offset, read_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_read()
182 offset += bytes; in aligned_flash_read()
250 uint32_t offset = bytes; in aligned_flash_write() local
254 …if (bootloader_flash_read(aligned_addr + offset, write_data, ALIGN_UP(bytes, 4), true) != ESP_OK) { in aligned_flash_write()
260 …if (bootloader_flash_write(aligned_addr + offset, write_data, ALIGN_UP(bytes, 4), flash_encryption… in aligned_flash_write()
264 offset += bytes; in aligned_flash_write()
/mcuboot-3.7.0/sim/src/
Dimage.rs119 offset: u32, field
1232 if let Some((offset, _, dev_id)) = self.areadesc.find(FlashId::Image1) { in run_direct_xip()
1233 assert_eq!(offset, resp.image_off as usize); in run_direct_xip()
1266 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_ram_load()
1310 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_split_ram_load()
1676 let offset = addr; localVariable
1681 }, SlotPlace { offset, size });
1758 let offset = slot.base_off; in install_image() localVariable
1772 for dep in deps.my_deps(offset, slot.index) { in install_image()
1782 ImageManipulation::OverlapImages(false) => place.offset - 1, in install_image()
[all …]
Ddepends.rs13 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-3.7.0/boot/espressif/hal/src/
Dsecure_boot.c234 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-3.7.0/boot/nuttx/include/flash_map_backend/
Dflash_map_backend.h443 int flash_area_id_from_image_offset(uint32_t offset);
/mcuboot-3.7.0/scripts/
Dmcubin.bt25 uint32 offset;
102 FSeek(ptable.entries[i].offset);
/mcuboot-3.7.0/docs/
DPORTING.md41 * 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 */
Dreadme-riot.md28 `BOOTLOADER_OFFSET` offset rather than the beginning of ROM. MCUboot
Dreadme-zephyr.md116 need to be programmed at the offset of the primary slot for this particular
118 specify a flash offset corresponding to the primary slot starting address. This
/mcuboot-3.7.0/sim/mcuboot-sys/csupport/
Drun.c41 extern int sim_flash_erase(uint8_t flash_id, uint32_t offset, uint32_t size);
42 extern int sim_flash_read(uint8_t flash_id, uint32_t offset, uint8_t *dest,
44 extern int sim_flash_write(uint8_t flash_id, uint32_t offset, const uint8_t *src,
/mcuboot-3.7.0/scripts/imgtool/
Ddumpinfo.py85 offset = (_LINE_LENGTH - len(content)) // 2
86 pre = "|" + (sepc * (offset - 1))
/mcuboot-3.7.0/boot/cypress/BlinkyApp/
DReadme.md92 `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-3.7.0/boot/zcbor/src/
Dzcbor_decode.c475 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));
Dzcbor_common.c200 if (fragments[i].offset != total_len) { in zcbor_validate_string_fragments()
/mcuboot-3.7.0/boot/zcbor/include/
Dzcbor_common.h57 size_t offset; ///! The offset in the full string at which this fragment belongs. member
/mcuboot-3.7.0/boot/boot_serial/src/
Dboot_serial.c1298 uint32_t offset; local
1313 rc = bootutil_tlv_iter_next(&it, &offset, &len, &type);
1326 rc = flash_area_read(fap, offset, hash, len);
/mcuboot-3.7.0/boot/espressif/port/esp32c2/ld/
Dbootloader.ld19 /* The offset between Dbus and Ibus. Used to convert between 0x403xxxxx and 0x3fcxxxxx addresses. */
/mcuboot-3.7.0/boot/cypress/MCUBootApp/
DExternalMemory.md76 `HEADER_OFFSET` defines the offset from original boot image address. This one in line above suggest…

12