/mcuboot-3.6.0/sim/simflash/src/ |
D | lib.rs | 68 fn erased_val(&self) -> u8; in erased_val() method 96 erased_val: u8, field 101 pub fn new(sectors: Vec<usize>, align: usize, erased_val: u8) -> SimFlash { in new() 108 data: vec![erased_val; total], in new() 114 erased_val, in new() 164 *x = self.erased_val; in erase() 267 fn erased_val(&self) -> u8 { in erased_val() method 268 self.erased_val in erased_val() 313 for &erased_val in &[0, 0xff] { in test_flash() 315 let mut f1 = SimFlash::new(vec![4096usize; 256], 1, erased_val); in test_flash() [all …]
|
/mcuboot-3.6.0/boot/bootutil/src/ |
D | bootutil_public.c | 178 uint8_t erased_val; in bootutil_buffer_is_erased() local 184 erased_val = flash_area_erased_val(area); in bootutil_buffer_is_erased() 186 if (u8b[i] != erased_val) { in bootutil_buffer_is_erased() 286 uint8_t erased_val; in boot_write_magic() local 299 erased_val = flash_area_erased_val(fap); in boot_write_magic() 301 memset(&magic[0], erased_val, sizeof(magic)); in boot_write_magic() 326 uint8_t erased_val; in boot_write_trailer() local 335 erased_val = flash_area_erased_val(fap); in boot_write_trailer() 338 memset(&buf[inlen], erased_val, align - inlen); in boot_write_trailer()
|
D | loader.c | 441 uint8_t erased_val; in boot_write_status() local 469 erased_val = flash_area_erased_val(fap); in boot_write_status() 470 memset(buf, erased_val, BOOT_MAX_ALIGN); in boot_write_status() 609 uint8_t erased_val; in boot_check_header_erased() local 619 erased_val = flash_area_erased_val(fap); in boot_check_header_erased() 623 if (!boot_data_is_set_to(erased_val, &hdr->ih_magic, sizeof(hdr->ih_magic))) { in boot_check_header_erased()
|
/mcuboot-3.6.0/sim/src/ |
D | lib.rs | 156 for &erased_val in &[0, 0xff] { in main() 157 status.run_single(dev, align, erased_val); in main() 186 pub fn run_single(&mut self, device: DeviceName, align: usize, erased_val: u8) { in run_single() 189 let run = match ImagesBuilder::new(device, align, erased_val) { in run_single()
|
D | image.rs | 143 pub fn new(device: DeviceName, align: usize, erased_val: u8) -> Result<Self, String> { in new() 144 let (flash, areadesc, unsupported_caps) = Self::make_device(device, align, erased_val); in new() 215 for &erased_val in &[0, 0xff] { in each_device() 216 match Self::new(dev, align, erased_val) { in each_device() 436 …pub fn make_device(device: DeviceName, align: usize, erased_val: u8) -> (SimMultiFlash, AreaDesc, … in make_device() 447 align as usize, erased_val); in make_device() 461 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device() 477 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device() 493 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device() 507 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device() [all …]
|
/mcuboot-3.6.0/sim/mcuboot-sys/src/ |
D | api.rs | 25 erased_val: u8, field 173 erased_val: dev.erased_val(), in set_flash() 307 ctx.borrow().flash_params.get(&id).unwrap().erased_val in sim_flash_erased_val()
|
/mcuboot-3.6.0/scripts/imgtool/ |
D | image.py | 144 rom_fixed=None, erased_val=None, save_enctlv=False, argument 163 self.erased_val = 0xff if erased_val is None else int(erased_val, 0) 231 self.payload = bytes([self.erased_val] * self.header_size) + \ 259 flag = bytearray([self.erased_val] * self.max_align) 614 pbytes = bytearray([self.erased_val] * padding) 615 pbytes += bytearray([self.erased_val] * (tsize - len(self.boot_magic)))
|
D | main.py | 409 load_addr, hex_addr, erased_val, save_enctlv, security_counter, argument 422 erased_val=erased_val, save_enctlv=save_enctlv,
|
/mcuboot-3.6.0/boot/nuttx/src/flash_map_backend/ |
D | flash_map_backend.c | 630 uint8_t erased_val; in flash_area_erased_val() local 636 erased_val = dev->erase_state; in flash_area_erased_val() 638 BOOT_LOG_INF("ID:%" PRIu8 " erased_val:0x%" PRIx8, fa->fa_id, erased_val); in flash_area_erased_val() 640 return erased_val; in flash_area_erased_val()
|