Home
last modified time | relevance | path

Searched refs:_fcb (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/fs/fcb/
Dfcb_elem_info.c20 fcb_elem_crc8(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *c8p) in fcb_elem_crc8() argument
35 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_crc8()
40 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_crc8()
44 loc->fe_data_off = loc->fe_elem_off + fcb_len_in_flash(_fcb, cnt); in fcb_elem_crc8()
58 rc = fcb_flash_read(_fcb, loc->fe_sector, off, tmp_str, blk_sz); in fcb_elem_crc8()
74 fcb_elem_endmarker_fixed(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *em) in fcb_elem_endmarker_fixed() argument
85 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_endmarker_fixed()
90 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_endmarker_fixed()
94 loc->fe_data_off = loc->fe_elem_off + fcb_len_in_flash(_fcb, cnt); in fcb_elem_endmarker_fixed()
106 fcb_elem_endmarker(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *em) in fcb_elem_endmarker() argument
[all …]
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dfcb_test_append.c10 static void test_fcb_append(struct fcb *_fcb) in test_fcb_append() argument
23 rc = fcb_append(_fcb, i, &loc); in test_fcb_append()
25 rc = flash_area_write(_fcb->fap, FCB_ENTRY_FA_DATA_OFF(loc), in test_fcb_append()
28 rc = fcb_append_finish(_fcb, &loc); in test_fcb_append()
33 rc = fcb_walk(_fcb, 0, fcb_test_data_walk_cb, &var_cnt); in test_fcb_append()
Dmain.c115 void fcb_tc_pretest(int sectors, struct fcb *_fcb) in fcb_tc_pretest() argument
120 _fcb->f_erase_value = fcb_test_erase_value; in fcb_tc_pretest()
121 _fcb->f_sector_cnt = sectors; in fcb_tc_pretest()
122 _fcb->f_sectors = test_fcb_sector; /* XXX */ in fcb_tc_pretest()
125 rc = fcb_init(TEST_FCB_FLASH_AREA_ID, _fcb); in fcb_tc_pretest()