Home
last modified time | relevance | path

Searched refs:fap (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/tests/subsys/fs/multi-fs/src/
Dtest_utils.c29 const struct flash_area *fap; in test_clear_flash() local
31 rc = flash_area_open(TEST_PARTITION_ID, &fap); in test_clear_flash()
34 rc = flash_area_flatten(fap, 0, fap->fa_size); in test_clear_flash()
/Zephyr-latest/tests/subsys/settings/file/src/
Dsettings_setup_littlefs.c27 const struct flash_area *fap; in config_setup_fs() local
29 rc = flash_area_open(LITTLEFS_PARTITION_ID, &fap); in config_setup_fs()
32 rc = flash_area_flatten(fap, 0, fap->fa_size); in config_setup_fs()
/Zephyr-latest/subsys/settings/src/
Dsettings_fcb.c77 rc = flash_area_flatten(cf->cf_fcb.fap, in settings_fcb_src()
154 .fap = cf->cf_fcb.fap in settings_fcb_load_priv()
212 return flash_area_read(entry_ctx->fap, in read_handler()
232 rbs = flash_area_align(cf->cf_fcb.fap); in settings_fcb_compress()
234 loc1.fap = cf->cf_fcb.fap; in settings_fcb_compress()
318 return flash_area_write(entry_ctx->fap, in write_handler()
354 loc.fap = cf->cf_fcb.fap; in settings_fcb_save_priv()
410 const struct flash_area *fap; in settings_backend_init() local
422 rc = flash_area_open(settings_fcb_get_flash_area(), &fap); in settings_backend_init()
427 rc = flash_area_flatten(fap, 0, fap->fa_size); in settings_backend_init()
[all …]
/Zephyr-latest/subsys/fs/fcb/
Dfcb.c23 if (fcbp->fap == NULL) { in fcb_get_align()
27 align = flash_area_align(fcbp->fap); in fcb_get_align()
41 if (fcbp->fap == NULL) { in fcb_flash_read()
45 rc = flash_area_read(fcbp->fap, sector->fs_off + off, dst, len); in fcb_flash_read()
63 if (fcbp->fap == NULL) { in fcb_flash_write()
67 rc = flash_area_write(fcbp->fap, sector->fs_off + off, src, len); in fcb_flash_write()
80 if (fcbp->fap == NULL) { in fcb_erase_sector()
84 rc = flash_area_flatten(fcbp->fap, sector->fs_off, sector->fs_size); in fcb_erase_sector()
107 rc = flash_area_open(f_area_id, &fcbp->fap); in fcb_init()
112 fparam = flash_get_parameters(fcbp->fap->fa_dev); in fcb_init()
Dfcb_walk.c36 entry_ctx.fap = fcb->fap; in fcb_walk()
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dmain.c57 const struct flash_area *fap; in test_fcb_wipe() local
59 rc = flash_area_open(TEST_FCB_FLASH_AREA_ID, &fap); in test_fcb_wipe()
63 rc = flash_area_flatten(fap, test_fcb_sector[i].fs_off, in test_fcb_wipe()
92 rc = flash_area_read(entry_ctx->fap, in fcb_test_data_walk_cb()
Dfcb_test_reset.c42 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST()
80 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST()
122 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST()
Dfcb_test_multiple_scratch.c39 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
67 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
Dfcb_test_rotate.c48 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
79 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), test_data, in ZTEST()
Dfcb_test_append.c25 rc = flash_area_write(_fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in test_fcb_append()
Dfcb_test_crc_disabled_after_enabled.c24 rc = flash_area_write(test_fcb.fap, FCB_ENTRY_FA_DATA_OFF(loc), in fcb_pretest_crc_disabled_after_enabled()
Dfcb_test_append_fill.c47 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
Dfcb_test_last_of_n.c36 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c189 const struct flash_area *fap; in config_wipe_fcb() local
193 rc = flash_area_open(TEST_PARTITION_ID, &fap); in config_wipe_fcb()
196 rc = flash_area_flatten(fap, fs[i].fs_off, fs[i].fs_size); in config_wipe_fcb()
349 const struct flash_area *fap; in settings_config_fcb_setup() local
353 rc = flash_area_open(TEST_PARTITION_ID, &fap); in settings_config_fcb_setup()
356 wbs = flash_area_align(fap); in settings_config_fcb_setup()
Dsettings_test_compress_deleted.c74 rc = flash_area_read(entry_ctx->fap, in check_compressed_cb()
/Zephyr-latest/include/zephyr/fs/
Dfcb.h78 const struct flash_area *fap; member
131 const struct flash_area *fap; member
/Zephyr-latest/subsys/storage/flash_map/
Dflash_map.c29 int flash_area_open(uint8_t id, const struct flash_area **fap) in flash_area_open() argument
46 *fap = area; in flash_area_open()
/Zephyr-latest/drivers/disk/
Dflashdisk.c88 const struct flash_area *fap) in flashdisk_init_runtime() argument
158 const struct flash_area *fap; in disk_flash_access_init() local
163 rc = flash_area_open(ctx->area_id, &fap); in disk_flash_access_init()
171 disk->dev = flash_area_get_device(fap); in disk_flash_access_init()
173 rc = flashdisk_init_runtime(ctx, fap); in disk_flash_access_init()
175 flash_area_close(fap); in disk_flash_access_init()
/Zephyr-latest/tests/subsys/settings/functional/src/
Dsettings_basic_test.c42 const struct flash_area *fap; in ZTEST() local
45 rc = flash_area_open(TEST_FLASH_AREA_ID, &fap); in ZTEST()
48 rc = flash_area_flatten(fap, 0, fap->fa_size); in ZTEST()
49 flash_area_close(fap); in ZTEST()
/Zephyr-latest/subsys/fs/
Dlittlefs_fs.c653 const struct flash_area **fap = (const struct flash_area **)&fs->backend; in littlefs_flash_init() local
658 ret = flash_area_open(area_id, fap); in littlefs_flash_init()
659 if ((ret < 0) || (*fap == NULL)) { in littlefs_flash_init()
665 (uint32_t)(*fap)->fa_off, (uint32_t)(*fap)->fa_size); in littlefs_flash_init()
667 dev = flash_area_get_device(*fap); in littlefs_flash_init()
670 (*fap)->fa_dev->name); in littlefs_flash_init()
674 fs->backend = (void *) *fap; in littlefs_flash_init()