Home
last modified time | relevance | path

Searched refs:fa_size (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/tests/subsys/dfu/mcuboot/src/
Dmain.c39 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/
Dmain.c170 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()
Dmain_sha.c102 rc = flash_area_erase(fa, 0, fa->fa_size); in ZTEST()
/Zephyr-latest/tests/subsys/dfu/mcuboot_multi/src/
Dmain.c29 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/
Dzephyr_img_mgmt.c72 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/
Dflash_map_default.c20 .fa_size = DT_REG_SIZE(part), \
27 .fa_size = DT_REG_SIZE(part), },
59 .fa_size = DT_REG_SIZE(part), \
Dflash_map_shell.c34 (uint32_t)fa->fa_off, fa->fa_size); in fa_cb()
38 (uint32_t)fa->fa_off, fa->fa_size); in fa_cb()
Dflash_map_priv.h36 return (off >= 0) && ((off + len) <= fa->fa_size); in is_in_flash_area_bounds()
Dflash_map_layout.c100 data.area_len = fa->fa_size; in flash_area_sectors()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dcommon.c52 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/
Dtestfs_lfs.c75 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/
Dmain.c72 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/
Dflash_img.c52 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/
Dtest_utils.c34 rc = flash_area_flatten(fap, 0, fap->fa_size); in test_clear_flash()
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_setup_littlefs.c32 rc = flash_area_flatten(fap, 0, fap->fa_size); in config_setup_fs()
/Zephyr-latest/soc/espressif/esp32s3/
Desp32s3-mp.c68 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/
Dmain.c94 (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/
Dbasic_mgmt.c34 rc = flash_area_flatten(fa, 0, fa->fa_size); in storage_erase()
/Zephyr-latest/subsys/dfu/boot/
Dmcuboot.c290 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/
Dfrag_flash.c52 err = flash_area_erase(fa, 0, fa->fa_size); in frag_flash_init()
/Zephyr-latest/soc/espressif/esp32/
Desp32-mp.c354 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/
Dsettings_test_fcb_init.c113 err = flash_area_flatten(fa, 0, fa->fa_size); in test_prepare_storage()
/Zephyr-latest/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c395 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/
Dmain.c251 (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/
Dflash_map.h61 size_t fa_size; member

12