/Zephyr-latest/tests/subsys/dfu/mcuboot/src/ |
D | main.c | 39 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 51 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST() 80 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST() 92 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST() 122 ret = flash_area_read(fa, fa->fa_size - sizeof(img_magic), in ZTEST() 127 ret = flash_area_write(fa, fa->fa_size - 16, in ZTEST() 133 ret = flash_area_write(fa, fa->fa_size - 32, &flag, sizeof(flag)); in ZTEST() 139 ret = flash_area_read(fa, fa->fa_size - 24, readout, in ZTEST()
|
/Zephyr-latest/tests/subsys/storage/flash_map/src/ |
D | main.c | 170 rc = flash_erase(flash_dev, fa->fa_off, fa->fa_size); in ZTEST() 173 rc = flash_fill(flash_dev, 0xaa, fa->fa_off, fa->fa_size); in ZTEST() 176 rc = flash_area_erase(fa, 0, fa->fa_size); in ZTEST() 182 TC_PRINT("\tsize:\t %ld\n", (long)fa->fa_size); in ZTEST() 186 while (erased && i < fa->fa_size) { in ZTEST() 188 int chunk = MIN(sizeof(buf), fa->fa_size - i); in ZTEST() 202 rc = flash_fill(flash_dev, 0xaa, fa->fa_off, fa->fa_size); in ZTEST() 205 rc = flash_area_flatten(fa, 0, fa->fa_size); in ZTEST() 209 while (erased && i < fa->fa_size) { in ZTEST() 211 int chunk = MIN(sizeof(buf), fa->fa_size - i); in ZTEST()
|
D | main_sha.c | 102 rc = flash_area_erase(fa, 0, fa->fa_size); in ZTEST()
|
/Zephyr-latest/tests/subsys/dfu/mcuboot_multi/src/ |
D | main.c | 29 ret = flash_get_page_info_by_offs(sf_dev, fa->fa_off + fa->fa_size - 1, in erase_image_status_page() 60 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in _test_request_upgrade_n() 99 ret = flash_area_read(fa, fa->fa_size - sizeof(img_magic), in _test_write_confirm_n() 104 ret = flash_area_write(fa, fa->fa_size - 16, in _test_write_confirm_n() 110 ret = flash_area_write(fa, fa->fa_size - 32, &flag, sizeof(flag)); in _test_write_confirm_n() 116 ret = flash_area_read(fa, fa->fa_size - 24, readout, in _test_write_confirm_n()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | zephyr_img_mgmt.c | 72 assert(fa->fa_size % 4 == 0); in img_mgmt_flash_check_empty_inner() 77 end = fa->fa_size; in img_mgmt_flash_check_empty_inner() 297 rc = flash_area_flatten(fa, 0, fa->fa_size); in img_mgmt_erase_slot() 494 off = boot_get_trailer_status_offset(fa->fa_size); in img_mgmt_erase_image_data() 499 erase_size = fa->fa_size - off; in img_mgmt_erase_image_data() 637 if (req->size > fa->fa_size) { in img_mgmt_upload_inspect() 641 LOG_ERR("Upload too large for slot: %u > %u", req->size, fa->fa_size); in img_mgmt_upload_inspect() 677 fa_current->fa_size, fa->fa_size, CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE, in img_mgmt_upload_inspect() 678 (fa->fa_size + CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE)); in img_mgmt_upload_inspect() 680 if (fa_current->fa_size >= (fa->fa_size + CONFIG_MCUBOOT_UPDATE_FOOTER_SIZE)) { in img_mgmt_upload_inspect() [all …]
|
/Zephyr-latest/subsys/storage/flash_map/ |
D | flash_map_default.c | 20 .fa_size = DT_REG_SIZE(part), \ 27 .fa_size = DT_REG_SIZE(part), }, 59 .fa_size = DT_REG_SIZE(part), \
|
D | flash_map_shell.c | 34 (uint32_t)fa->fa_off, fa->fa_size); in fa_cb() 38 (uint32_t)fa->fa_off, fa->fa_size); in fa_cb()
|
D | flash_map_priv.h | 36 return (off >= 0) && ((off + len) <= fa->fa_size); in is_in_flash_area_bounds()
|
D | flash_map_layout.c | 100 data.area_len = fa->fa_size; in flash_area_sectors()
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | common.c | 52 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in wipe_partition() 53 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in wipe_partition()
|
/Zephyr-latest/tests/subsys/fs/littlefs/src/ |
D | testfs_lfs.c | 75 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in testfs_lfs_wipe_partition() 76 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in testfs_lfs_wipe_partition()
|
/Zephyr-latest/tests/subsys/dfu/img_util/src/ |
D | main.c | 72 ret = flash_area_write(fa, fa->fa_size - sizeof(erase_buf), erase_buf, in ZTEST() 76 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST() 111 ret = flash_area_read(fa, fa->fa_size - sizeof(buf), buf, sizeof(buf)); in ZTEST() 140 ret = flash_area_flatten(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
|
/Zephyr-latest/subsys/dfu/img_util/ |
D | flash_img.c | 52 off_t toff = boot_get_trailer_status_offset(ctx->flash_area->fa_size); in scramble_mcuboot_trailer() 86 size = ctx->flash_area->fa_size - offset; in scramble_mcuboot_trailer() 145 ctx->flash_area->fa_size, NULL); in flash_img_init_id()
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_utils.c | 34 rc = flash_area_flatten(fap, 0, fap->fa_size); in test_clear_flash()
|
/Zephyr-latest/tests/subsys/settings/file/src/ |
D | settings_setup_littlefs.c | 32 rc = flash_area_flatten(fap, 0, fap->fa_size); in config_setup_fs()
|
/Zephyr-latest/soc/espressif/esp32s3/ |
D | esp32s3-mp.c | 68 const uint32_t fa_size = FIXED_PARTITION_SIZE(slot0_appcpu_partition); in esp_appcpu_image_load() local 90 fa_id, img_off, hdr_offset, fa_size / 1024); in esp_appcpu_image_load()
|
/Zephyr-latest/samples/subsys/usb/mass/src/ |
D | main.c | 94 (unsigned int)pfa->fa_size); in setup_flash() 98 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in setup_flash()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/zephyr_basic/src/ |
D | basic_mgmt.c | 34 rc = flash_area_flatten(fa, 0, fa->fa_size); in storage_erase()
|
/Zephyr-latest/subsys/dfu/boot/ |
D | mcuboot.c | 290 rc = flash_area_flatten(fa, 0, fa->fa_size); in boot_erase_img_bank() 313 offset = boot_get_trailer_status_offset(fa->fa_size); in boot_get_area_trailer_status_offset()
|
/Zephyr-latest/subsys/lorawan/services/ |
D | frag_flash.c | 52 err = flash_area_erase(fa, 0, fa->fa_size); in frag_flash_init()
|
/Zephyr-latest/soc/espressif/esp32/ |
D | esp32-mp.c | 354 const uint32_t fa_size = FIXED_PARTITION_SIZE(slot0_appcpu_partition); in esp_appcpu_image_load() local 376 fa_id, img_off, hdr_offset, fa_size / 1024); in esp_appcpu_image_load()
|
/Zephyr-latest/tests/subsys/settings/fcb_init/src/ |
D | settings_test_fcb_init.c | 113 err = flash_area_flatten(fa, 0, fa->fa_size); in test_prepare_storage()
|
/Zephyr-latest/subsys/debug/coredump/ |
D | coredump_backend_flash_partition.c | 395 backend_ctx.flash_area->fa_size); in erase_flash_partition() 419 backend_ctx.flash_area->fa_size); in coredump_flash_backend_start() 439 backend_ctx.flash_area->fa_size - header_size, in coredump_flash_backend_start()
|
/Zephyr-latest/samples/subsys/fs/littlefs/src/ |
D | main.c | 251 (unsigned int)pfa->fa_size); in littlefs_flash_erase() 255 rc = flash_area_flatten(pfa, 0, pfa->fa_size); in littlefs_flash_erase()
|
/Zephyr-latest/include/zephyr/storage/ |
D | flash_map.h | 61 size_t fa_size; member
|