Lines Matching refs:cf_fcb

61 	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()
227 rc = fcb_append_to_scratch(&cf->cf_fcb); in settings_fcb_compress()
232 rbs = flash_area_align(cf->cf_fcb.fap); in settings_fcb_compress()
234 loc1.fap = cf->cf_fcb.fap; in settings_fcb_compress()
239 while (fcb_getnext(&cf->cf_fcb, &loc1.loc) == 0) { in settings_fcb_compress()
240 if (loc1.loc.fe_sector != cf->cf_fcb.f_oldest) { in settings_fcb_compress()
262 while (fcb_getnext(&cf->cf_fcb, &loc2.loc) == 0) { in settings_fcb_compress()
284 rc = fcb_append(&cf->cf_fcb, loc1.loc.fe_data_len, &loc2.loc); in settings_fcb_compress()
294 rc = fcb_append_finish(&cf->cf_fcb, &loc2.loc); in settings_fcb_compress()
300 rc = fcb_rotate(&cf->cf_fcb); in settings_fcb_compress()
339 for (i = 0; i < cf->cf_fcb.f_sector_cnt; i++) { in settings_fcb_save_priv()
340 rc = fcb_append(&cf->cf_fcb, len, &loc.loc); in settings_fcb_save_priv()
346 if (i < (cf->cf_fcb.f_sector_cnt - 1)) { in settings_fcb_save_priv()
354 loc.fap = cf->cf_fcb.fap; in settings_fcb_save_priv()
359 i = fcb_append_finish(&cf->cf_fcb, &loc.loc); in settings_fcb_save_priv()
394 rbs = cf->cf_fcb.f_align; in settings_mount_fcb_backend()
404 .cf_fcb.f_magic = CONFIG_SETTINGS_FCB_MAGIC, in settings_backend_init()
405 .cf_fcb.f_sectors = settings_fcb_area, in settings_backend_init()
418 config_init_settings_fcb.cf_fcb.f_sector_cnt = cnt; in settings_backend_init()
454 return &cf->cf_fcb; in settings_fcb_storage_get()