Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 21 of 21) sorted by relevance

/mcuboot-latest/sim/simflash/src/
Dlib.rs91 sectors: Vec<usize>, field
101 pub fn new(sectors: Vec<usize>, align: usize, erased_val: u8) -> SimFlash { in new()
106 let total = sectors.iter().sum(); in new()
110 sectors, in new()
135 for (sector, &size) in self.sectors.iter().enumerate() { in get_sector()
159 if elen != self.sectors[end] - 1 { in erase()
254 iter: self.sectors.iter().enumerate(), in sector_iter()
326 let sectors: Vec<Sector> = flash.sector_iter().collect(); in test_device() localVariable
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()
[all …]
/mcuboot-latest/boot/bootutil/src/
Dbootutil_priv.h238 boot_sector_t *sectors; member
245 boot_sector_t *sectors; member
445 return flash_area_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
456 return flash_area_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
457 flash_area_get_off(&BOOT_IMG(state, slot).sectors[0]); in boot_img_sector_off()
466 return flash_sector_get_size(&BOOT_IMG(state, slot).sectors[sector]); in boot_img_sector_size()
473 return flash_sector_get_off(&BOOT_IMG(state, slot).sectors[sector]) - in boot_img_sector_off()
474 flash_sector_get_off(&BOOT_IMG(state, slot).sectors[0]); in boot_img_sector_off()
Dloader.c333 out_sectors = BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors; in boot_initialize_area()
336 out_sectors = BOOT_IMG(state, BOOT_SECONDARY_SLOT).sectors; in boot_initialize_area()
340 out_sectors = state->scratch.sectors; in boot_initialize_area()
2306 BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors =
2308 BOOT_IMG(state, BOOT_SECONDARY_SLOT).sectors =
2311 state->scratch.sectors = sector_buffers.scratch;
2314 BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors =
2316 BOOT_IMG(state, BOOT_SECONDARY_SLOT).sectors =
2319 state->scratch.sectors = scratch_sectors;
2563 boot_sector_t *sectors; local
[all …]
/mcuboot-latest/sim/mcuboot-sys/src/
Darea.rs19 sectors: HashMap<u8, Vec<Sector>>, field
27 sectors: HashMap::new(), in new()
32 self.sectors.insert(id, flash.sector_iter().collect()); in add_flash_sectors()
56 for sector in &self.sectors[&dev_id] { in add_image()
/mcuboot-latest/docs/release-notes.d/
Dzephyr-auto-max-sectors.md2 of sectors that are needed for a build by checking the erase
Dswap-using-offset.md3 using move but avoids moving the sectors in the primary slot
/mcuboot-latest/boot/mbed/src/
Dflash_map_backend.cpp212 int flash_area_get_sectors(int fa_id, uint32_t* count, struct flash_sector* sectors) { in flash_area_get_sectors() argument
223 sectors[*count].fs_off = offset; in flash_area_get_sectors()
224 sectors[*count].fs_size = erase_size; in flash_area_get_sectors()
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/
Dflash_map.h137 struct flash_sector *sectors);
/mcuboot-latest/docs/
Dreadme-mbed.md16 * `"mcuboot.max-img-sectors"`: maximum number of sectors, should be at least the number of sectors
DPORTING.md13 get the flash's minimum write size, and read/write/erase individual sectors.
158 /*< Given flash area ID, return info about sectors within the area. */
160 struct flash_sector *sectors);
Dimgtool.md107 -M, --max-sectors INTEGER When padding allow for this amount of
108 sectors (defaults to 128)
Drelease-notes.md18 sectors (which is the slot size minus the swap status and moved
21 and details on sectors including if slot sizes are not optimal for
439 + `--max-sectors` can be used to adjust the maximum amount of sectors that
467 - Overwrite-only mode was updated to erase/copy only sectors that
Dreadme-zephyr.md77 memory (mass erase) or only the sectors where the bootloader resides prior to
173 The number of sectors must also be evenly divisable by this sector size, e.g.
/mcuboot-latest/boot/mbed/include/flash_map_backend/
Dflash_map_backend.h162 struct flash_sector *sectors);
/mcuboot-latest/boot/nuttx/include/flash_map_backend/
Dflash_map_backend.h371 struct flash_sector *sectors);
/mcuboot-latest/boot/espressif/include/flash_map_backend/
Dflash_map_backend.h78 struct flash_sector *sectors);
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c363 struct flash_sector *sectors) in flash_area_get_sectors() argument
374 sectors[total_count].fs_off = off; in flash_area_get_sectors()
375 sectors[total_count].fs_size = sector_size; in flash_area_get_sectors()
/mcuboot-latest/boot/nuttx/src/flash_map_backend/
Dflash_map_backend.c663 struct flash_sector *sectors) in flash_area_get_sectors() argument
675 sectors[total_count].fs_off = off; in flash_area_get_sectors()
676 sectors[total_count].fs_size = sector_size; in flash_area_get_sectors()
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c402 struct flash_sector *sectors) in flash_area_get_sectors() argument
428 sectors[i].fs_off = slot->areas[i].fa_off - in flash_area_get_sectors()
430 sectors[i].fs_size = slot->areas[i].fa_size; in flash_area_get_sectors()
/mcuboot-latest/boot/zephyr/
DKconfig370 to all sectors in both slots being of the same size. This mode offers faster swap times
383 but is currently limited to all sectors in both slots being of
547 bool "Calculate maximum sectors automatically"
550 If this option is enabled then the maximum number of supported sectors per image will
558 int "Maximum number of sectors per image slot"
562 This option controls the maximum number of sectors that each of
DCMakeLists.txt508 message("Calculated maximum number of sectors: ${slot_min_sectors}")