Lines Matching full:fcb
10 #include <fs/fcb.h>
14 fcb_getnext_in_sector(struct fcb *fcb, struct fcb_entry *loc) in fcb_getnext_in_sector() argument
18 rc = fcb_elem_info(fcb, loc); in fcb_getnext_in_sector()
22 fcb_len_in_flash(fcb, loc->fe_data_len) + in fcb_getnext_in_sector()
23 fcb_len_in_flash(fcb, FCB_CRC_SZ); in fcb_getnext_in_sector()
24 rc = fcb_elem_info(fcb, loc); in fcb_getnext_in_sector()
34 fcb_getnext_sector(struct fcb *fcb, struct flash_sector *sector) in fcb_getnext_sector() argument
37 if (sector >= &fcb->f_sectors[fcb->f_sector_cnt]) { in fcb_getnext_sector()
38 sector = &fcb->f_sectors[0]; in fcb_getnext_sector()
44 fcb_getnext_nolock(struct fcb *fcb, struct fcb_entry *loc) in fcb_getnext_nolock() argument
52 loc->fe_sector = fcb->f_oldest; in fcb_getnext_nolock()
59 rc = fcb_elem_info(fcb, loc); in fcb_getnext_nolock()
69 rc = fcb_getnext_in_sector(fcb, loc); in fcb_getnext_nolock()
78 rc = fcb_getnext_in_sector(fcb, loc); 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()
93 rc = fcb_elem_info(fcb, loc); in fcb_getnext_nolock()
109 fcb_getnext(struct fcb *fcb, struct fcb_entry *loc) in fcb_getnext() argument
113 rc = k_mutex_lock(&fcb->f_mtx, K_FOREVER); in fcb_getnext()
117 rc = fcb_getnext_nolock(fcb, loc); in fcb_getnext()
118 k_mutex_unlock(&fcb->f_mtx); in fcb_getnext()