Home
last modified time | relevance | path

Searched refs:flash_area (Results 1 – 25 of 46) sorted by relevance

12

/Zephyr-Core-3.6.0/include/zephyr/storage/
Dflash_map.h57 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.6.0/subsys/dfu/img_util/
Dflash_img.c58 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.6.0/subsys/storage/flash_map/
Dflash_map.c29 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 …]
Dflash_map_priv.h18 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()
Dflash_map_default.c36 const struct flash_area default_flash_map[] = {
41 const struct flash_area *flash_map = default_flash_map;
Dflash_map_shell.c21 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.6.0/tests/subsys/dfu/img_util/src/
Dmain.c32 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.6.0/subsys/debug/coredump/
Dcoredump_backend_flash_partition.c57 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.6.0/doc/services/storage/flash_map/
Dflash_map.rst7 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.6.0/include/zephyr/dfu/
Dflash_img.h34 const struct flash_area *flash_area; member
/Zephyr-Core-3.6.0/subsys/dfu/boot/
Dmcuboot.c66 const struct flash_area *fa; in boot_read_v1_header()
192 const struct flash_area *fa; in boot_is_img_confirmed()
219 const struct flash_area *fa; in boot_write_img_confirmed()
247 const struct flash_area *fa; in boot_erase_img_bank()
270 const struct flash_area *fa; in boot_get_area_trailer_status_offset()
/Zephyr-Core-3.6.0/modules/canopennode/
Dcanopen_program.c288 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.6.0/tests/subsys/dfu/mcuboot_multi/src/
Dmain.c20 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.6.0/tests/subsys/dfu/mcuboot/src/
Dmain.c27 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.6.0/tests/subsys/storage/flash_map/src/
Dmain.c22 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.6.0/include/zephyr/fs/
Dfcb.h76 const struct flash_area *fap;
129 const struct flash_area *fap;
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dzephyr_img_mgmt.c61 static int img_mgmt_flash_check_empty_inner(const struct flash_area *fa) in img_mgmt_flash_check_empty_inner()
110 const struct flash_area *fa; in img_mgmt_flash_check_empty()
282 const struct flash_area *fa; in img_mgmt_erase_slot()
350 const struct flash_area *fa; in img_mgmt_read()
445 const struct flash_area *fa; in img_mgmt_erase_image_data()
571 const struct flash_area *fa; in img_mgmt_upload_inspect()
579 const struct flash_area *fa_current; in img_mgmt_upload_inspect()
781 const struct flash_area *fa; in img_mgmt_erased_val()
/Zephyr-Core-3.6.0/include/zephyr/bluetooth/mesh/
Dblob_io_flash.h33 const struct flash_area *area;
/Zephyr-Core-3.6.0/tests/subsys/fs/multi-fs/src/
Dtest_utils.c29 const struct flash_area *fap; in test_clear_flash()
/Zephyr-Core-3.6.0/tests/subsys/settings/file/src/
Dsettings_setup_littlefs.c27 const struct flash_area *fap; in config_setup_fs()
/Zephyr-Core-3.6.0/subsys/fs/
Dlittlefs_fs.c174 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.6.0/tests/subsys/fs/fcb/src/
Dmain.c55 const struct flash_area *fap; in test_fcb_wipe()
152 const struct flash_area *fa; in ZTEST()
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/grp/zephyr_basic/src/
Dbasic_mgmt.c23 const struct flash_area *fa; in storage_erase()
/Zephyr-Core-3.6.0/tests/subsys/fs/littlefs/src/
Dtestfs_lfs.c66 const struct flash_area *pfa; in testfs_lfs_wipe_partition()
/Zephyr-Core-3.6.0/subsys/fs/fcb/
Dfcb_priv.h63 const struct flash_area *fcb_open_flash(const struct fcb *fcb);

12