/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_utils.c | 29 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/ |
D | settings_setup_littlefs.c | 27 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/ |
D | settings_fcb.c | 77 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/ |
D | fcb.c | 23 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()
|
D | fcb_walk.c | 36 entry_ctx.fap = fcb->fap; in fcb_walk()
|
/Zephyr-latest/tests/subsys/fs/fcb/src/ |
D | main.c | 57 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()
|
D | fcb_test_reset.c | 42 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()
|
D | fcb_test_multiple_scratch.c | 39 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()
|
D | fcb_test_rotate.c | 48 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()
|
D | fcb_test_append.c | 25 rc = flash_area_write(_fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in test_fcb_append()
|
D | fcb_test_crc_disabled_after_enabled.c | 24 rc = flash_area_write(test_fcb.fap, FCB_ENTRY_FA_DATA_OFF(loc), in fcb_pretest_crc_disabled_after_enabled()
|
D | fcb_test_append_fill.c | 47 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
|
D | fcb_test_last_of_n.c | 36 rc = flash_area_write(fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in ZTEST()
|
/Zephyr-latest/tests/subsys/settings/fcb/src/ |
D | settings_test_fcb.c | 189 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()
|
D | settings_test_compress_deleted.c | 74 rc = flash_area_read(entry_ctx->fap, in check_compressed_cb()
|
/Zephyr-latest/include/zephyr/fs/ |
D | fcb.h | 78 const struct flash_area *fap; member 131 const struct flash_area *fap; member
|
/Zephyr-latest/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() argument 46 *fap = area; in flash_area_open()
|
/Zephyr-latest/drivers/disk/ |
D | flashdisk.c | 88 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/ |
D | settings_basic_test.c | 42 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/ |
D | littlefs_fs.c | 653 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()
|