Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 86) sorted by relevance

1234

/mcuboot-latest/sim/mcuboot-sys/src/
Dlib.rs23 pub fn new(size: u32, offset: u32) -> RamBlock { in new()
25 ram: vec![0; size as usize], in new()
36 pub fn borrow_part(&self, base: usize, size: usize) -> &[u8] { in borrow_part()
37 &self.ram[base..base+size] in borrow_part()
45 size: self.ram.len() as u32, in invoke()
Darea.rs60 if base > sector.base + sector.size - 1 { in add_image()
72 size: sector.size as u32, in add_image()
75 base += sector.size; in add_image()
76 len -= sector.size; in add_image()
89 size: orig_len as u32, in add_image()
103 size: len as u32, in add_simple_image()
112 size: len as u32, in add_simple_image()
122 return Some((area.off as usize, area.size as usize, area.device_id)); in find()
209 pub size: u32, field
/mcuboot-latest/boot/zcbor/include/
Dzcbor_print.h76 static void zcbor_print_compare_lines(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_lines() argument
78 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines()
82 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines()
86 for (size_t j = 0; j < size; j++) { in zcbor_print_compare_lines()
94 static void zcbor_print_compare_strings(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings() argument
98 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings()
101 MIN(col_width, (size - i*col_width))); in zcbor_print_compare_strings()
107 static void zcbor_print_compare_strings_diff(const uint8_t *str1, const uint8_t *str2, size_t size) in zcbor_print_compare_strings_diff() argument
112 for (size_t i = 0; i <= size / col_width; i++) { in zcbor_print_compare_strings_diff()
113 if (memcmp(&str1[i*col_width], &str2[i*col_width], MIN(col_width, (size - i*col_width))) != 0) { in zcbor_print_compare_strings_diff()
[all …]
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_hmac_prng.c79 unsigned int size = (1 << 19); in main() local
80 uint8_t random[size]; in main()
118 if (tc_hmac_prng_generate(random, size, &h) < 1) { in main()
126 printBinaryFile(random, size); in main()
127 show ("Pseudo-random data", random, size); in main()
/mcuboot-latest/boot/mynewt/flash_map_backend/src/
Dflash_map_extended.c57 uint32_t size; in flash_area_sector_from_off() local
69 hf->hf_itf->hff_sector_info(hf, i, &start, &size); in flash_area_sector_from_off()
73 if (off >= start - fa->fa_off && off <= (start - fa->fa_off) + size) { in flash_area_sector_from_off()
75 sector->fs_size = size; in flash_area_sector_from_off()
/mcuboot-latest/boot/zephyr/boards/
Dnrf52840dk_ram.overlay31 #size-cells = <1>;
37 erase-block-size = <4096>;
38 write-block-size = <1>;
44 #size-cells = <1>;
Dnrf52840dk_ram_multi.overlay39 #size-cells = <1>;
45 erase-block-size = <4096>;
46 write-block-size = <1>;
52 #size-cells = <1>;
/mcuboot-latest/ext/tinycrypt/lib/source/
Decc_platform_specific.c74 int default_CSPRNG(uint8_t *dest, unsigned int size) { in default_CSPRNG() argument
77 if (dest == (uint8_t *) 0 || (size <= 0)) in default_CSPRNG()
89 size_t left = (size_t) size; in default_CSPRNG()
Dutils.c64 int _compare(const uint8_t *a, const uint8_t *b, size_t size) in _compare() argument
70 for (unsigned int i = 0; i < size; i++) { in _compare()
/mcuboot-latest/boot/zephyr/
Dshared_data.c32 size_t size, in boot_add_data_to_shared_area() argument
85 tlv_entry.tlv_len = size; in boot_add_data_to_shared_area()
88 SHARED_DATA_ENTRY_SIZE(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()
113 shared_data_size += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
Dhooks_sample.c81 size_t size) in boot_copy_region_post_hook() argument
87 size_t size) in boot_serial_uploaded_hook() argument
DCMakeLists.txt382 dt_prop(erase_size_slot0 PATH "${slot0_flash}" PROPERTY "erase-block-size")
383 dt_prop(write_size_slot0 PATH "${slot0_flash}" PROPERTY "write-block-size")
400 dt_prop(erase_size_slot1 PATH "${slot1_flash}" PROPERTY "erase-block-size")
401 dt_prop(write_size_slot1 PATH "${slot1_flash}" PROPERTY "write-block-size")
416 …message(WARNING "Unable to determine size of slot0 partition, cannot calculate minimum sector usag…
418 …message(WARNING "Unable to determine erase size of slot0 partition, cannot calculate minimum secto…
425 …message(WARNING "Unable to determine size of slot1 partition, cannot calculate minimum sector usag…
427 …message(WARNING "Unable to determine erase size of slot1 partition, cannot calculate minimum secto…
462 # Check both slots for the one with the largest write/erase block size
463 dt_prop(erase_size_slot0 PATH "${slot0_flash}" PROPERTY "erase-block-size")
[all …]
/mcuboot-latest/boot/cypress/platforms/PSOC_062_2M/CM0P/GCC_ARM/
Dstartup_psoc6_02_cm0plus.S52 .size __StackLimit, . - __StackLimit
54 .size __StackTop, . - __StackTop
69 .size __HeapBase, . - __HeapBase
71 .size __HeapLimit, . - __HeapLimit
112 .size __Vectors, . - __Vectors
120 .size __ramVectors, . - __ramVectors
142 .size Cy_OnResetUser, . - Cy_OnResetUser
296 .size Reset_Handler, . - Reset_Handler
304 .size Default_Handler, . - Default_Handler
310 .size Cy_SysLib_FaultHandler, . - Cy_SysLib_FaultHandler
[all …]
/mcuboot-latest/boot/zephyr/include/os/
Dos_heap.h29 void *os_malloc(size_t size);
31 void *os_realloc(void *ptr, size_t size);
/mcuboot-latest/boot/cypress/MCUBootApp/os/
Dos_heap.h29 void *os_malloc(size_t size);
31 void *os_realloc(void *ptr, size_t size);
/mcuboot-latest/docs/
Dreadme-mbed.md15 * `"mcuboot.slot-size"`: size of an image slot (only one image, two slots are currently supported)
17 * `"target.restrict_size"`: the maximum size of the bootloader, such that it does not overlap with …
24 * Its size equals the `"mcuboot.slot-size"` you have set
25 …s are aligned to. If the read size is larger than _one byte_, you need to set `"mcuboot.read-granu…
41 …t.header-size"` of your bootloader. And its size (`"target.mbed_app_size"`) must be no larger than…
/mcuboot-latest/docs/release-notes.d/
Dmax-app-size-changes.md1 - Fixed wrong maximum application size calculation when
3 - Added additional images max size support to shared data
Dzephyr-compression.md1 - Added protected TLV size to image size check in bootutil
Dcompatible-slots.md1 - Added optional write block size checking to ensure expected
3 - Added optional erase size checking to ensure expected sizes
/mcuboot-latest/ci/fih_test_docker/
Drun_fi_test.sh85 for size in "${sizes[@]}"; do
86 echo "Run tests with skip size $size" 1>&2
87 run_test $size
/mcuboot-latest/sim/simflash/src/
Dlib.rs135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector()
136 if offset < size { in get_sector()
139 offset -= size; in get_sector()
280 pub size: usize, field
294 Some((num, &size)) => { in next()
296 self.base += size; in next()
300 size, in next()
328 flash.erase(0, sectors[0].size).unwrap(); in test_device()
331 assert!(flash.erase(0, sectors[0].size - 1).is_bounds()); in test_device()
339 flash.erase(0, sectors[0].size).unwrap(); in test_device()
[all …]
/mcuboot-latest/boot/bootutil/include/bootutil/
Dboot_hooks.h120 size_t size);
138 size_t size);
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c61 uint32_t *size) in read_image_size() argument
96 *size = off + protect_tlv_size + info.it_tlv_tot; in read_image_size()
217 size_t size; in decrypt_image_inplace() local
267 for (sect = 0, size = 0; size < src_size && sect < sect_count; sect++) { in decrypt_image_inplace()
268 rc = decrypt_region_inplace(state, fa_p,hdr, size, sect_size); in decrypt_image_inplace()
272 size += sect_size; in decrypt_image_inplace()
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c143 static bool aligned_flash_read(uintptr_t addr, void *dest, size_t size) in aligned_flash_read() argument
145 if (IS_ALIGNED(addr, 4) && IS_ALIGNED((uintptr_t)dest, 4) && IS_ALIGNED(size, 4)) { in aligned_flash_read()
148 return bootloader_flash_read(addr, dest, size, true) == ESP_OK; in aligned_flash_read()
153 uint32_t bytes_remaining = size; in aligned_flash_read()
213 static bool aligned_flash_write(size_t dest_addr, const void *src, size_t size) in aligned_flash_write() argument
221 if (IS_ALIGNED(dest_addr, 4) && IS_ALIGNED((uintptr_t)src, 4) && IS_ALIGNED(size, 4)) { in aligned_flash_write()
224 … return bootloader_flash_write(dest_addr, (void *)src, size, flash_encryption_enabled) == ESP_OK; in aligned_flash_write()
229 uint32_t bytes_remaining = size; in aligned_flash_write()
/mcuboot-latest/boot/cypress/platforms/PSOC_062_2M/CM4/GCC_ARM/
Dstartup_psoc6_02_cm4.S52 .size __StackLimit, . - __StackLimit
54 .size __StackTop, . - __StackTop
69 .size __HeapBase, . - __HeapBase
71 .size __HeapLimit, . - __HeapLimit
265 .size __Vectors, . - __Vectors
273 .size __ramVectors, . - __ramVectors
295 .size Cy_OnResetUser, . - Cy_OnResetUser
305 .size cy_toolchain_init, . - cy_toolchain_init
462 .size Reset_Handler, . - Reset_Handler
471 .size Default_Handler, . - Default_Handler
[all …]

1234