Home
last modified time | relevance | path

Searched refs:sector_size (Results 1 – 5 of 5) sorted by relevance

/mcuboot-latest/boot/nuttx/src/flash_map_backend/
Dflash_map_backend.c541 const size_t sector_size = dev->mtdgeo.erasesize; in flash_area_erase() local
547 buffer = malloc(sector_size); in flash_area_erase()
555 memset(buffer, erase_val, sector_size); in flash_area_erase()
562 sector_size, off + i); in flash_area_erase()
564 ret = flash_area_write(fa, off + i, buffer, sector_size); in flash_area_erase()
565 i += sector_size; in flash_area_erase()
567 while (ret == OK && i < (len - sector_size)); in flash_area_erase()
668 const size_t sector_size = dev->mtdgeo.erasesize; in flash_area_get_sectors() local
671 for (off = 0; off < fa->fa_size; off += sector_size) in flash_area_get_sectors()
676 sectors[total_count].fs_size = sector_size; in flash_area_get_sectors()
/mcuboot-latest/boot/cypress/cy_flash_pal/
Dcy_flash_map.c502 size_t sector_size = 0; in flash_area_get_sectors() local
506 sector_size = CY_FLASH_SIZEOF_ROW; in flash_area_get_sectors()
513 sector_size = CY_FLASH_SIZEOF_ROW; in flash_area_get_sectors()
526 sectors_n = (fa->fa_size + (sector_size - 1)) / sector_size; in flash_area_get_sectors()
532 ret[i].fs_size = sector_size ; in flash_area_get_sectors()
534 addr += sector_size ; in flash_area_get_sectors()
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c362 const size_t sector_size = FLASH_SECTOR_SIZE; in flash_area_get_sectors() local
364 for (size_t off = 0; off < fa->fa_size; off += sector_size) { in flash_area_get_sectors()
367 sectors[total_count].fs_size = sector_size; in flash_area_get_sectors()
/mcuboot-latest/boot/bootutil/src/
Dswap_scratch.c194 size_t sector_size = boot_img_sector_size(state, BOOT_SECONDARY_SLOT, j); in boot_slots_compatible() local
197 if (sector_size == 0) { in boot_slots_compatible()
204 sz1 += sector_size; in boot_slots_compatible()
/mcuboot-latest/sim/src/
Dimage.rs1729 let sector_size = dev.sector_iter().next().unwrap().size as u32; in tralier_estimation() localVariable
1731 align_up(c::boot_trailer_sz(dev.align() as u32), sector_size) as usize in tralier_estimation()
1742 let sector_size = dev.sector_iter().next().unwrap().size as u32; in image_largest_trailer() localVariable
1743 align_up(c::boot_trailer_sz(dev.align() as u32), sector_size) as usize in image_largest_trailer()