Home
last modified time | relevance | path

Searched refs:sector (Results 1 – 24 of 24) sorted by relevance

/mcuboot-latest/boot/mynewt/flash_map_backend/src/
Dflash_map_extended.c52 int flash_area_sector_from_off(off_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
74 sector->fs_off = start - fa->fa_off; in flash_area_sector_from_off()
75 sector->fs_size = size; in flash_area_sector_from_off()
/mcuboot-latest/sim/mcuboot-sys/src/
Darea.rs56 for sector in &self.sectors[&dev_id] { in add_image()
60 if base > sector.base + sector.size - 1 { in add_image()
63 if sector.base != base { in add_image()
71 off: sector.base as u32, 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()
/mcuboot-latest/boot/mynewt/flash_map_backend/include/flash_map_backend/
Dflash_map_backend.h53 int flash_area_sector_from_off(off_t off, struct flash_sector *sector);
56 struct flash_sector *sector) in flash_area_get_sector() argument
58 return flash_area_sector_from_off(off, sector); in flash_area_get_sector()
/mcuboot-latest/sim/simflash/src/
Dlib.rs135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector()
137 return Some((sector, offset)); in get_sector()
345 for sector in &sectors { in test_device()
346 let byte = [(sector.num & 127) as u8]; in test_device()
347 flash.write(sector.base, &byte).unwrap(); in test_device()
348 flash.write(sector.base + sector.size - 1, &byte).unwrap(); in test_device()
353 for sector in &sectors { in test_device()
354 let byte = (sector.num & 127) as u8; in test_device()
355 buf.resize(sector.size, 0); in test_device()
356 flash.read(sector.base, &mut buf).unwrap(); in test_device()
/mcuboot-latest/boot/bootutil/src/
Dswap_misc.c39 uint32_t sector; in swap_erase_trailer_sectors() local
66 sector = boot_img_num_sectors(state, slot) - 1; in swap_erase_trailer_sectors()
70 sz = boot_img_sector_size(state, slot, sector); in swap_erase_trailer_sectors()
71 off = boot_img_sector_off(state, slot, sector); in swap_erase_trailer_sectors()
75 sector--; in swap_erase_trailer_sectors()
Dbootutil_priv.h409 size_t slot, size_t sector) in boot_img_sector_size() argument
411 return flash_area_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
420 size_t sector) in boot_img_sector_off() argument
422 return flash_area_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
430 size_t slot, size_t sector) in boot_img_sector_size() argument
432 return flash_sector_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
437 size_t sector) in boot_img_sector_off() argument
439 return flash_sector_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
Dbootutil_misc.c340 struct flash_sector sector; in bootutil_max_image_size()
342 int rc = flash_area_get_sector(fap, boot_status_off(fap), &sector); in bootutil_max_image_size()
349 return flash_sector_get_off(&sector); in bootutil_max_image_size()
Dloader.c1448 uint32_t sector; local
1494 sector = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT) - 1;
1497 sz += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sector);
1498 off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, sector);
1499 sector--;
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/
Dflash_map.h144 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector);
154 struct flash_sector *sector);
/mcuboot-latest/boot/zephyr/
Dflash_map_extended.c126 int flash_area_sector_from_off(off_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
136 sector->fs_off = page.start_offset; in flash_area_sector_from_off()
137 sector->fs_size = page.size; in flash_area_sector_from_off()
DCMakeLists.txt416 …message(WARNING "Unable to determine size of slot0 partition, cannot calculate minimum sector usag…
418 …WARNING "Unable to determine erase size of slot0 partition, cannot calculate minimum sector usage")
425 …message(WARNING "Unable to determine size of slot1 partition, cannot calculate minimum sector usag…
427 …WARNING "Unable to determine erase size of slot1 partition, cannot calculate minimum sector usage")
441 …message(WARNING "Unable to calculate minimum number of sector sizes, falling back to 128 sector de…
DKconfig289 sector of the primary slot is moved up one sector, then for
290 each sector X in the secondary slot, it is moved to index X in
291 the primary slot, then the sector at X+1 in the primary is
/mcuboot-latest/boot/espressif/include/flash_map_backend/
Dflash_map_backend.h81 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector);
85 struct flash_sector *sector);
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c375 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
377 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_sector_from_off()
378 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_sector_from_off()
384 struct flash_sector *sector) in flash_area_get_sector() argument
386 sector->fs_off = (off / FLASH_SECTOR_SIZE) * FLASH_SECTOR_SIZE; in flash_area_get_sector()
387 sector->fs_size = FLASH_SECTOR_SIZE; in flash_area_get_sector()
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c451 int flash_area_sector_from_off(uint32_t off, struct flash_sector *sector) in flash_area_sector_from_off() argument
475 sector->fs_off = sec_off; in flash_area_sector_from_off()
476 sector->fs_size = sec_size; in flash_area_sector_from_off()
485 struct flash_sector *sector) in flash_area_get_sector() argument
509 sector->fs_off = sec_off; in flash_area_get_sector()
510 sector->fs_size = sec_size; in flash_area_get_sector()
/mcuboot-latest/boot/zephyr/include/flash_map_backend/
Dflash_map_backend.h63 int flash_area_sector_from_off(off_t off, struct flash_sector *sector);
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c221 struct flash_sector sector; in decrypt_image_inplace() local
227 rc = flash_area_get_sector(fa_p, boot_status_off(fa_p), &sector); in decrypt_image_inplace()
265 sect_size = sector.fs_size; in decrypt_image_inplace()
/mcuboot-latest/docs/
Dreadme-zephyr.md169 from both slots, this section must be at least as big as the largest sector
171 with a sector size of 512 bytes and secondar slot in external off-chip flash
172 with a sector size of 4KB then the scratch area must be at least 4KB in size).
173 The number of sectors must also be evenly divisable by this sector size, e.g.
199 has a 4KB sector size so the size of the scratch partition can be reduced at
Dtestplan-mynewt.md162 $ pyocd flash -e sector -a 0x80000 ${IMG_FILE} bin
DPORTING.md97 uint32_t fa_size; /** The size of this sector */
Drelease-notes.md16 - bootutil: Fixed issue with comparing sector sizes for
19 up by one sector).
Dreadme-espressif.md813 # Use sector erasing (recommended) instead of entire image size
/mcuboot-latest/sim/src/
Dimage.rs1704 for sector in flash.sector_iter() { in show_flash()
1706 sector.num, sector.base, sector.size); in show_flash()
/mcuboot-latest/boot/cypress/MCUBootApp/
DREADME.md55 … make sure you have updated `MCUBOOT_MAX_IMG_SECTORS` appropriatery with sector size assumed to be…