/Zephyr-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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_erase(pfa, 0, pfa->fa_size); in testfs_lfs_wipe_partition()
|
/Zephyr-Core-3.5.0/subsys/storage/flash_map/ |
D | flash_map_default.c | 20 .fa_size = DT_REG_SIZE(part), \ 27 .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 | 81 cb_data->area_len = fa->fa_size; in flash_area_layout()
|
/Zephyr-Core-3.5.0/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_erase(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_erase(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_mkfs.c | 47 TC_PRINT("Erasing %zu (0x%zx) bytes\n", pfa->fa_size, pfa->fa_size); in wipe_partition() 48 rc = flash_area_erase(pfa, 0, pfa->fa_size); in wipe_partition()
|
/Zephyr-Core-3.5.0/tests/subsys/storage/flash_map/src/ |
D | main.c | 56 rc = flash_erase(flash_dev, fa->fa_off, fa->fa_size); in ZTEST() 98 rc = flash_area_erase(fa, 0, fa->fa_size); in ZTEST() 103 for (off = 0; off < fa->fa_size; off += sizeof(rd)) { in ZTEST() 136 rc = flash_area_erase(fa, 0, fa->fa_size); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | zephyr_img_mgmt.c | 67 assert(fa->fa_size % 4 == 0); in img_mgmt_flash_check_empty_inner() 72 end = fa->fa_size; in img_mgmt_flash_check_empty_inner() 295 rc = flash_area_erase(fa, 0, fa->fa_size); in img_mgmt_erase_slot() 487 off = boot_get_trailer_status_offset(fa->fa_size); in img_mgmt_erase_image_data() 492 erase_size = fa->fa_size - off; in img_mgmt_erase_image_data() 616 if (req->size > fa->fa_size) { in img_mgmt_upload_inspect() 620 LOG_ERR("Upload too large for slot: %u > %u", req->size, fa->fa_size); in img_mgmt_upload_inspect()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/multi-fs/src/ |
D | test_utils.c | 34 rc = flash_area_erase(fap, 0, fap->fa_size); in test_clear_flash()
|
/Zephyr-Core-3.5.0/subsys/dfu/img_util/ |
D | flash_img.c | 58 ctx->flash_area->fa_size); in flash_img_buffered_write() 93 ctx->flash_area->fa_size, NULL); in flash_img_init_id()
|
/Zephyr-Core-3.5.0/tests/subsys/settings/file/src/ |
D | settings_setup_littlefs.c | 32 rc = flash_area_erase(fap, 0, fap->fa_size); in config_setup_fs()
|
/Zephyr-Core-3.5.0/samples/subsys/usb/mass/src/ |
D | main.c | 134 (unsigned int)pfa->fa_size); in setup_flash() 138 rc = flash_area_erase(pfa, 0, pfa->fa_size); in setup_flash()
|
/Zephyr-Core-3.5.0/subsys/dfu/boot/ |
D | mcuboot.c | 248 rc = flash_area_erase(fa, 0, fa->fa_size); in boot_erase_img_bank() 271 offset = boot_get_trailer_status_offset(fa->fa_size); in boot_get_area_trailer_status_offset()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/zephyr_basic/src/ |
D | basic_mgmt.c | 34 rc = flash_area_erase(fa, 0, fa->fa_size); in storage_erase()
|
/Zephyr-Core-3.5.0/include/zephyr/storage/ |
D | flash_map.h | 64 size_t fa_size; member
|
/Zephyr-Core-3.5.0/tests/subsys/settings/fcb_init/src/ |
D | settings_test_fcb_init.c | 113 err = flash_area_erase(fa, 0, fa->fa_size); in test_prepare_storage()
|
/Zephyr-Core-3.5.0/subsys/debug/coredump/ |
D | coredump_backend_flash_partition.c | 386 backend_ctx.flash_area->fa_size); in erase_flash_partition() 410 backend_ctx.flash_area->fa_size); in coredump_flash_backend_start() 430 backend_ctx.flash_area->fa_size - header_size, in coredump_flash_backend_start()
|
/Zephyr-Core-3.5.0/samples/subsys/fs/littlefs/src/ |
D | main.c | 251 (unsigned int)pfa->fa_size); in littlefs_flash_erase() 255 rc = flash_area_erase(pfa, 0, pfa->fa_size); in littlefs_flash_erase()
|
/Zephyr-Core-3.5.0/subsys/fs/ |
D | littlefs_fs.c | 599 size_t area_end = area_start + ctx->area->fa_size - 1U; in get_page_cb() 649 (uint32_t)(*fap)->fa_off, (uint32_t)(*fap)->fa_size); in littlefs_flash_init() 796 block_count = ((struct flash_area *)fs->backend)->fa_size in littlefs_init_cfg() 837 __ASSERT((((struct flash_area *)fs->backend)->fa_size % in littlefs_init_cfg()
|
/Zephyr-Core-3.5.0/subsys/usb/device/class/dfu/ |
D | usb_dfu.c | 828 dfu_data.flash_upload_size = fa->fa_size; in dfu_custom_handle_req() 918 dfu_data.flash_upload_size = fa->fa_size; in usb_dfu_init()
|
/Zephyr-Core-3.5.0/subsys/settings/src/ |
D | settings_nvs.c | 375 if (nvs_size > fa->fa_size) { in settings_backend_init()
|
D | settings_fcb.c | 427 rc = flash_area_erase(fap, 0, fap->fa_size); in settings_backend_init()
|