Home
last modified time | relevance | path

Searched refs:fe_sector (Results 1 – 17 of 17) sorted by relevance

/Zephyr-Core-3.7.0/tests/subsys/fs/fcb/src/
Dfcb_test_last_of_n.c49 zassert_true(areas[4].fe_sector == loc.fe_sector && in ZTEST()
57 zassert_true(areas[2].fe_sector == loc.fe_sector && in ZTEST()
65 zassert_true(areas[0].fe_sector == loc.fe_sector && in ZTEST()
73 zassert_true(areas[0].fe_sector == loc.fe_sector && in ZTEST()
Dfcb_test_append_too_big.c41 , fcb->f_active.fe_sector->fs_size); in ZTEST()
62 len = MIN(FCB_MAX_LEN, fcb->f_active.fe_sector->fs_size - overhead); in ZTEST()
Dfcb_test_append_fill.c38 if (loc.fe_sector == &test_fcb_sector[0]) { in ZTEST()
40 } else if (loc.fe_sector == &test_fcb_sector[1]) { in ZTEST()
Dfcb_test_multiple_scratch.c36 idx = loc.fe_sector - &test_fcb_sector[0]; in ZTEST()
64 idx = loc.fe_sector - &test_fcb_sector[0]; in ZTEST()
Dfcb_test_rotate.c39 if (loc.fe_sector == &test_fcb_sector[0]) { in ZTEST()
41 } else if (loc.fe_sector == &test_fcb_sector[1]) { in ZTEST()
Dmain.c108 idx = entry_ctx->loc.fe_sector - &test_fcb_sector[0]; in fcb_test_cnt_elems_cb()
/Zephyr-Core-3.7.0/subsys/fs/fcb/
Dfcb_getnext.c48 if (loc->fe_sector == NULL) { in fcb_getnext_nolock()
52 loc->fe_sector = fcb->f_oldest; in fcb_getnext_nolock()
88 if (loc->fe_sector == fcb->f_active.fe_sector) { in fcb_getnext_nolock()
91 loc->fe_sector = fcb_getnext_sector(fcb, loc->fe_sector); in fcb_getnext_nolock()
Dfcb_append.c23 cur = fcb->f_active.fe_sector; in fcb_new_sector()
53 fcb->f_active.fe_sector = sector; in fcb_append_to_scratch()
85 if (active->fe_elem_off + len + cnt > active->fe_sector->fs_size) { in fcb_append()
96 fcb->f_active.fe_sector = sector; in fcb_append()
101 rc = fcb_flash_write(fcb, active->fe_sector, active->fe_elem_off, tmp_str, cnt); in fcb_append()
106 append_loc->fe_sector = active->fe_sector; in fcb_append()
135 rc = fcb_flash_write(fcb, loc->fe_sector, off, em, fcb->f_align); in fcb_append_finish()
Dfcb_elem_info.c31 if (loc->fe_elem_off + 2 > loc->fe_sector->fs_size) { in fcb_elem_crc8()
35 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_crc8()
58 rc = fcb_flash_read(_fcb, loc->fe_sector, off, tmp_str, blk_sz); in fcb_elem_crc8()
81 if (loc->fe_elem_off + 2 > loc->fe_sector->fs_size) { in fcb_elem_endmarker_fixed()
85 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_endmarker_fixed()
133 rc = fcb_flash_read(_fcb, loc->fe_sector, off, &fl_em, sizeof(fl_em)); in fcb_elem_info()
Dfcb_rotate.c27 if (fcb->f_oldest == fcb->f_active.fe_sector) { in fcb_rotate()
37 fcb->f_active.fe_sector = sector; in fcb_rotate()
Dfcb_walk.c22 entry_ctx.loc.fe_sector = sector; in fcb_walk()
32 if (sector && entry_ctx.loc.fe_sector != sector) { in fcb_walk()
Dfcb.c156 fcbp->f_active.fe_sector = newest_sector; in fcb_init()
179 fa = fcbp->f_active.fe_sector; in fcb_free_sector_cnt()
191 return (fcbp->f_active.fe_sector == fcbp->f_oldest && in fcb_is_empty()
/Zephyr-Core-3.7.0/tests/subsys/settings/fcb/src/
Dsettings_test_compress_reset.c46 if (cf.cf_fcb.f_active.fe_sector == &fcb_sectors[2]) { in ZTEST()
61 fa = cf.cf_fcb.f_active.fe_sector; in ZTEST()
66 zassert_true(fa != cf.cf_fcb.f_active.fe_sector, in ZTEST()
87 zassert_true(fa == cf.cf_fcb.f_active.fe_sector, in ZTEST()
Dsettings_test_compress_deleted.c127 if (cf.cf_fcb.f_active.fe_sector == &fcb_small_sectors[1]) { in ZTEST()
/Zephyr-Core-3.7.0/include/zephyr/fs/
Dfcb.h52 struct flash_sector *fe_sector; member
70 #define FCB_ENTRY_FA_DATA_OFF(entry) (entry.fe_sector->fs_off +\
/Zephyr-Core-3.7.0/tests/subsys/settings/functional/fcb/
Dsettings_test_fcb.c22 loc.fe_sector = NULL; in ZTEST()
/Zephyr-Core-3.7.0/subsys/settings/src/
Dsettings_fcb.c78 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()
153 {.fe_sector = NULL, .fe_elem_off = 0}, in settings_fcb_load_priv()
236 loc1.loc.fe_sector = NULL; in settings_fcb_compress()
240 if (loc1.loc.fe_sector != cf->cf_fcb.f_oldest) { in settings_fcb_compress()