Home
last modified time | relevance | path

Searched refs:cf_fcb (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_compress_reset.c24 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
25 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
26 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
46 if (cf.cf_fcb.f_active.fe_sector == &fcb_sectors[2]) { in ZTEST()
61 fa = cf.cf_fcb.f_active.fe_sector; in ZTEST()
62 rc = fcb_append_to_scratch(&cf.cf_fcb); in ZTEST()
64 zassert_true(fcb_free_sector_cnt(&cf.cf_fcb) == 0, in ZTEST()
66 zassert_true(fa != cf.cf_fcb.f_active.fe_sector, in ZTEST()
73 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
74 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
[all …]
Dsettings_test_save_unaligned.c21 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
22 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
23 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
28 if (cf.cf_fcb.f_align == 1) { in ZTEST()
30 cf.cf_fcb.f_align = 4; in ZTEST()
Dsettings_test_empty_fcb.c19 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
20 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
21 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
Dsettings_test_save_1_fcb.c22 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
23 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
24 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
Dsettings_test_delete_fcb.c20 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
21 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
22 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
Dsettings_test_save_3_fcb.c28 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
29 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
30 cf.cf_fcb.f_sector_cnt = 4; in ZTEST()
Dsettings_test_compress_deleted.c97 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
98 cf.cf_fcb.f_sectors = fcb_small_sectors; in ZTEST()
99 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_small_sectors); in ZTEST()
127 if (cf.cf_fcb.f_active.fe_sector == &fcb_small_sectors[1]) { in ZTEST()
136 rc = fcb_walk(&cf.cf_fcb, &fcb_small_sectors[1], check_compressed_cb, in ZTEST()
Dsettings_test_save_one_fcb.c26 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
27 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
28 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
Dsettings_test_save_2_fcb.c32 cf.cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC; in ZTEST()
33 cf.cf_fcb.f_sectors = fcb_sectors; in ZTEST()
34 cf.cf_fcb.f_sector_cnt = ARRAY_SIZE(fcb_sectors); in ZTEST()
/Zephyr-latest/subsys/settings/src/
Dsettings_fcb.c61 cf->cf_fcb.f_version = SETTINGS_FCB_VERS; in settings_fcb_src()
62 cf->cf_fcb.f_scratch_cnt = 1; in settings_fcb_src()
65 rc = fcb_init(settings_fcb_get_flash_area(), &cf->cf_fcb); in settings_fcb_src()
75 if (fcb_free_sector_cnt(&cf->cf_fcb) < 1) { in settings_fcb_src()
77 rc = flash_area_flatten(cf->cf_fcb.fap, in settings_fcb_src()
78 cf->cf_fcb.f_active.fe_sector->fs_off, in settings_fcb_src()
79 cf->cf_fcb.f_active.fe_sector->fs_size); in settings_fcb_src()
121 while (fcb_getnext(&cf->cf_fcb, &entry2_ctx.loc) == 0) { in settings_fcb_check_duplicate()
154 .fap = cf->cf_fcb.fap in settings_fcb_load_priv()
158 while ((rc = fcb_getnext(&cf->cf_fcb, &entry_ctx.loc)) == 0) { in settings_fcb_load_priv()
[all …]
/Zephyr-latest/subsys/settings/include/settings/
Dsettings_fcb.h20 struct fcb cf_fcb; member