/Zephyr-Core-3.5.0/subsys/dfu/img_util/ |
D | flash_img.c | 58 ctx->flash_area->fa_size); in flash_img_buffered_write() 60 ctx->flash_area->fa_off + in flash_img_buffered_write() 67 flash_area_close(ctx->flash_area); in flash_img_buffered_write() 68 ctx->flash_area = NULL; in flash_img_buffered_write() 84 (const struct flash_area **)&(ctx->flash_area)); in flash_img_init_id() 89 flash_dev = flash_area_get_device(ctx->flash_area); in flash_img_init_id() 92 CONFIG_IMG_BLOCK_BUF_SIZE, ctx->flash_area->fa_off, in flash_img_init_id() 93 ctx->flash_area->fa_size, NULL); in flash_img_init_id() 114 (const struct flash_area **)&(ctx->flash_area)); in flash_img_check() 125 rc = flash_area_check_int_sha256(ctx->flash_area, &fac); in flash_img_check() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/storage/ |
D | flash_map.h | 57 struct flash_area { struct 110 int flash_area_check_int_sha256(const struct flash_area *fa, 127 int flash_area_open(uint8_t id, const struct flash_area **fa); 137 void flash_area_close(const struct flash_area *fa); 153 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, 170 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, 186 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len); 198 uint32_t flash_area_align(const struct flash_area *fa); 222 typedef void (*flash_area_cb_t)(const struct flash_area *fa, 241 int flash_area_has_driver(const struct flash_area *fa); [all …]
|
/Zephyr-Core-3.5.0/subsys/storage/flash_map/ |
D | flash_map.c | 29 int flash_area_open(uint8_t id, const struct flash_area **fap) in flash_area_open() 31 const struct flash_area *area; in flash_area_open() 51 void flash_area_close(const struct flash_area *fa) in flash_area_close() 56 int flash_area_read(const struct flash_area *fa, off_t off, void *dst, in flash_area_read() 66 int flash_area_write(const struct flash_area *fa, off_t off, const void *src, in flash_area_write() 76 int flash_area_erase(const struct flash_area *fa, off_t off, size_t len) in flash_area_erase() 85 uint32_t flash_area_align(const struct flash_area *fa) in flash_area_align() 90 int flash_area_has_driver(const struct flash_area *fa) in flash_area_has_driver() 99 const struct device *flash_area_get_device(const struct flash_area *fa) in flash_area_get_device() 105 const char *flash_area_label(const struct flash_area *fa) in flash_area_label() [all …]
|
D | flash_map_priv.h | 18 extern const struct flash_area *flash_map; 21 static inline struct flash_area const *get_flash_area_from_id(int idx) in get_flash_area_from_id() 33 static inline bool is_in_flash_area_bounds(const struct flash_area *fa, in is_in_flash_area_bounds()
|
D | flash_map_default.c | 36 const struct flash_area default_flash_map[] = { 41 const struct flash_area *flash_map = default_flash_map;
|
D | flash_map_shell.c | 21 extern const struct flash_area *flash_map; 23 static void fa_cb(const struct flash_area *fa, void *user_data) in fa_cb()
|
/Zephyr-Core-3.5.0/tests/subsys/dfu/img_util/src/ |
D | main.c | 32 zassert_equal(ctx_id.flash_area, ctx_no_id.flash_area, in ZTEST() 39 zassert_equal(ctx_id.flash_area->fa_id, SLOT0_PARTITION_ID, in ZTEST() 45 const struct flash_area *fa; in ZTEST() 76 ret = flash_area_erase(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST() 140 ret = flash_area_erase(ctx.flash_area, 0, ctx.flash_area->fa_size); in ZTEST() 165 flash_area_close(ctx.flash_area); in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/debug/coredump/ |
D | coredump_backend_flash_partition.c | 57 const struct flash_area *flash_area; member 111 ret = flash_area_open(FLASH_PARTITION_ID, &backend_ctx.flash_area); in partition_open() 115 backend_ctx.flash_area = NULL; in partition_open() 127 if (backend_ctx.flash_area == NULL) { in partition_close() 131 flash_area_close(backend_ctx.flash_area); in partition_close() 132 backend_ctx.flash_area = NULL; in partition_close() 166 if (backend_ctx.flash_area == NULL) { in data_read() 176 ret = flash_area_read(backend_ctx.flash_area, offset, in data_read() 361 ret = flash_area_erase(backend_ctx.flash_area, 0, in erase_coredump_header() 385 ret = flash_area_erase(backend_ctx.flash_area, 0, in erase_flash_partition() [all …]
|
/Zephyr-Core-3.5.0/doc/services/storage/flash_map/ |
D | flash_map.rst | 7 flash partitions via :c:struct:`flash_area` structures. 9 Each :c:struct:`flash_area` describes a flash partition. The API provides access 12 in DTS file. Users may also create :c:struct:`flash_area` objects at runtime 18 The :c:struct:`flash_area` contains a pointer to a :c:struct:`device`, 26 The flash_map.h API provides functions for operating on a :c:struct:`flash_area`. 31 Most ``<zephyr/storage/flash_map.h>`` API functions require a :c:struct:`flash_area` object pointer 37 * defining a :c:struct:`flash_area` type object, which requires providing 42 :c:struct:`flash_area` objects and returns, if found, a pointer to an object 84 Users do not have to obtain a :c:struct:`flash_area` object pointer 93 Below example shows how to obtain a :c:struct:`flash_area` object pointer [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/dfu/ |
D | flash_img.h | 34 const struct flash_area *flash_area; member
|
/Zephyr-Core-3.5.0/modules/canopennode/ |
D | canopen_program.c | 288 static int flash_crc(const struct flash_area *flash_area, in flash_crc() argument 297 int err = flash_area_read(flash_area, offset, buffer, len); in flash_crc() 316 const struct flash_area *flash_area; in canopen_odf_1f56() local 371 err = flash_area_open(fa_id, &flash_area); in canopen_odf_1f56() 381 err = flash_crc(flash_area, offset, len, &crc); in canopen_odf_1f56() 383 flash_area_close(flash_area); in canopen_odf_1f56()
|
/Zephyr-Core-3.5.0/subsys/dfu/boot/ |
D | mcuboot.c | 63 const struct flash_area *fa; in boot_read_v1_header() 189 const struct flash_area *fa; in boot_is_img_confirmed() 240 const struct flash_area *fa; in boot_erase_img_bank() 263 const struct flash_area *fa; in boot_get_area_trailer_status_offset()
|
/Zephyr-Core-3.5.0/tests/subsys/dfu/mcuboot_multi/src/ |
D | main.c | 20 static void erase_image_status_page(const struct flash_area *fa) in erase_image_status_page() 39 const struct flash_area *fa; in _test_request_upgrade_n() 88 const struct flash_area *fa; in _test_write_confirm_n()
|
/Zephyr-Core-3.5.0/tests/subsys/dfu/mcuboot/src/ |
D | main.c | 27 const struct flash_area *fa; in ZTEST() 60 const struct flash_area *fa; in ZTEST() 107 const struct flash_area *fa; in ZTEST()
|
/Zephyr-Core-3.5.0/tests/subsys/storage/flash_map/src/ |
D | main.c | 22 const struct flash_area *fa; in ZTEST() 37 const struct flash_area *fa; in ZTEST() 129 const struct flash_area *fa; in ZTEST() 176 const struct flash_area *fa; in ZTEST()
|
/Zephyr-Core-3.5.0/include/zephyr/fs/ |
D | fcb.h | 76 const struct flash_area *fap; 129 const struct flash_area *fap;
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/ |
D | blob_io_flash.h | 33 const struct flash_area *area;
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | zephyr_img_mgmt.c | 56 static int img_mgmt_flash_check_empty_inner(const struct flash_area *fa) in img_mgmt_flash_check_empty_inner() 105 const struct flash_area *fa; in img_mgmt_flash_check_empty() 277 const struct flash_area *fa; in img_mgmt_erase_slot() 340 const struct flash_area *fa; in img_mgmt_read() 435 const struct flash_area *fa; in img_mgmt_erase_image_data() 561 const struct flash_area *fa; in img_mgmt_upload_inspect() 692 const struct flash_area *fa; in img_mgmt_erased_val()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/multi-fs/src/ |
D | test_utils.c | 29 const struct flash_area *fap; in test_clear_flash()
|
/Zephyr-Core-3.5.0/tests/subsys/settings/file/src/ |
D | settings_setup_littlefs.c | 27 const struct flash_area *fap; in config_setup_fs()
|
/Zephyr-Core-3.5.0/subsys/fs/ |
D | littlefs_fs.c | 174 const struct flash_area *fa = c->context; in lfs_api_read() 185 const struct flash_area *fa = c->context; in lfs_api_prog() 195 const struct flash_area *fa = c->context; in lfs_api_erase() 588 const struct flash_area *area; 621 static lfs_size_t get_block_size(const struct flash_area *fa) in get_block_size() 637 const struct flash_area **fap = (const struct flash_area **)&fs->backend; in littlefs_flash_init() 744 block_size = get_block_size((struct flash_area *)fs->backend); in littlefs_init_cfg() 796 block_count = ((struct flash_area *)fs->backend)->fa_size in littlefs_init_cfg() 799 flash_area_get_device((struct flash_area *)fs->backend); in littlefs_init_cfg() 802 (uint32_t)((struct flash_area *)fs->backend)->fa_off, in littlefs_init_cfg() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/fs/fcb/src/ |
D | main.c | 55 const struct flash_area *fap; in test_fcb_wipe() 152 const struct flash_area *fa; in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/zephyr_basic/src/ |
D | basic_mgmt.c | 23 const struct flash_area *fa; in storage_erase()
|
/Zephyr-Core-3.5.0/subsys/fs/fcb/ |
D | fcb_priv.h | 63 const struct flash_area *fcb_open_flash(const struct fcb *fcb);
|
/Zephyr-Core-3.5.0/tests/subsys/fs/littlefs/src/ |
D | testfs_lfs.c | 66 const struct flash_area *pfa; in testfs_lfs_wipe_partition()
|