Home
last modified time | relevance | path

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

12

/Zephyr-Core-3.5.0/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-Core-3.5.0/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-Core-3.5.0/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_erase(pfa, 0, pfa->fa_size); in testfs_lfs_wipe_partition()
/Zephyr-Core-3.5.0/subsys/storage/flash_map/
Dflash_map_default.c20 .fa_size = DT_REG_SIZE(part), \
27 .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.c81 cb_data->area_len = fa->fa_size; in flash_area_layout()
/Zephyr-Core-3.5.0/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_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/
Dtest_fat_mkfs.c47 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/
Dmain.c56 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/
Dzephyr_img_mgmt.c67 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/
Dtest_utils.c34 rc = flash_area_erase(fap, 0, fap->fa_size); in test_clear_flash()
/Zephyr-Core-3.5.0/subsys/dfu/img_util/
Dflash_img.c58 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/
Dsettings_setup_littlefs.c32 rc = flash_area_erase(fap, 0, fap->fa_size); in config_setup_fs()
/Zephyr-Core-3.5.0/samples/subsys/usb/mass/src/
Dmain.c134 (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/
Dmcuboot.c248 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/
Dbasic_mgmt.c34 rc = flash_area_erase(fa, 0, fa->fa_size); in storage_erase()
/Zephyr-Core-3.5.0/include/zephyr/storage/
Dflash_map.h64 size_t fa_size; member
/Zephyr-Core-3.5.0/tests/subsys/settings/fcb_init/src/
Dsettings_test_fcb_init.c113 err = flash_area_erase(fa, 0, fa->fa_size); in test_prepare_storage()
/Zephyr-Core-3.5.0/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c386 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/
Dmain.c251 (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/
Dlittlefs_fs.c599 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/
Dusb_dfu.c828 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/
Dsettings_nvs.c375 if (nvs_size > fa->fa_size) { in settings_backend_init()
Dsettings_fcb.c427 rc = flash_area_erase(fap, 0, fap->fa_size); in settings_backend_init()

12