Home
last modified time | relevance | path

Searched refs:align (Results 1 – 14 of 14) sorted by relevance

/mcuboot-2.7.6/sim/src/
Dlib.rs142 let align = args.flag_align.map(|x| x.0).unwrap_or(1); in main() localVariable
150 status.run_single(device, align, 0xff); in main()
155 for &align in &[1, 2, 4, 8] { 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()
187 warn!("Running on device {} with alignment {}", device, align); in run_single()
189 let run = match ImagesBuilder::new(device, align, erased_val) { in run_single()
Dimage.rs96 pub fn new(device: DeviceName, align: usize, erased_val: u8) -> Result<Self, String> { in new()
97 let (flash, areadesc, unsupported_caps) = Self::make_device(device, align, erased_val); in new()
164 for &align in test_alignments() { in each_device()
166 match Self::new(dev, align, erased_val) { in each_device()
283 …pub fn make_device(device: DeviceName, align: usize, erased_val: u8) -> (SimMultiFlash, AreaDesc, … in make_device()
290 align as usize, erased_val); in make_device()
304 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device()
320 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device()
336 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device()
350 let dev = SimFlash::new(vec![4096; 128], align as usize, erased_val); in make_device()
[all …]
/mcuboot-2.7.6/sim/simflash/src/
Dlib.rs67 fn align(&self) -> usize; in align() method
94 align: usize, field
101 pub fn new(sectors: Vec<usize>, align: usize, erased_val: u8) -> SimFlash { in new()
103 assert!(align > 0); in new()
104 assert!(align & (align - 1) == 0); in new()
112 align, in new()
199 if offset & (self.align - 1) != 0 { in write()
203 if payload.len() & (self.align - 1) != 0 { in write()
263 fn align(&self) -> usize { in align() method
264 self.align in align()
/mcuboot-2.7.6/sim/mcuboot-sys/src/
Dc.rs42 pub fn boot_trailer_sz(align: u32) -> u32 { in boot_trailer_sz()
43 unsafe { raw::boot_trailer_sz(align) } in boot_trailer_sz()
46 pub fn boot_status_sz(align: u32) -> u32 { in boot_status_sz()
47 unsafe { raw::boot_status_sz(align) } in boot_status_sz()
Dapi.rs23 align: u16, field
106 align: dev.align() as u16, in set_flash()
208 ctx.borrow().flash_params.get(&id).unwrap().align in sim_flash_align()
/mcuboot-2.7.6/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/
Dstartup_psoc6_02_cm0plus.S42 .align 3
57 .align 3
74 .align 2
116 .align 2
126 .align 2
298 .align 1
/mcuboot-2.7.6/boot/bootutil/src/
Dbootutil_public.c342 uint8_t align; in boot_write_trailer() local
346 align = flash_area_align(fap); in boot_write_trailer()
347 align = (inlen + align - 1) & ~(align - 1); in boot_write_trailer()
348 if (align > BOOT_MAX_ALIGN) { in boot_write_trailer()
354 memset(&buf[inlen], erased_val, align - inlen); in boot_write_trailer()
356 rc = flash_area_write(fap, off, buf, align); in boot_write_trailer()
Dloader.c286 uint32_t align; in boot_write_sz() local
295 align = flash_area_align(BOOT_SCRATCH_AREA(state)); in boot_write_sz()
296 if (align > elem_sz) { in boot_write_sz()
297 elem_sz = align; in boot_write_sz()
423 uint8_t align; in boot_write_status() local
452 align = flash_area_align(fap); in boot_write_status()
457 rc = flash_area_write(fap, off, buf, align); in boot_write_status()
/mcuboot-2.7.6/boot/cypress/platforms/PSOC_062_2M/CM4/GCC_ARM/
Dstartup_psoc6_02_cm4.S42 .align 3
57 .align 3
74 .align 2
269 .align 2
279 .align 2
464 .align 1
/mcuboot-2.7.6/scripts/imgtool/
Dimage.py134 pad_header=False, pad=False, confirm=False, align=1, argument
148 self.align = align
173 base_addr={}, load_addr={}, align={}, slot_size={}, \
181 self.align,
226 trailer_size = self._trailer_size(self.align, self.max_sectors,
253 tsize = self._trailer_size(self.align, self.max_sectors,
541 tsize = self._trailer_size(self.align, self.max_sectors,
Dmain.py300 def sign(key, public_key_format, align, version, pad_sig, header_size, argument
312 align=int(align), slot_size=slot_size,
/mcuboot-2.7.6/samples/zephyr/
DMakefile131 --align $(FLASH_ALIGNMENT) \
156 --align $(FLASH_ALIGNMENT) \
/mcuboot-2.7.6/boot/cypress/BlinkyApp/
DBlinkyApp.mk103 SIGN_ARGS := sign --header-size 1024 --pad-header --align 8 -v "2.0" -S $(SLOT_SIZE) -M 512 --overw…
/mcuboot-2.7.6/docs/
Dimgtool.md64 --align [1|2|4|8] [required]