Home
last modified time | relevance | path

Searched refs:entry_ctx (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/subsys/fs/fcb/
Dfcb_walk.c19 struct fcb_entry_ctx entry_ctx; in fcb_walk() local
22 entry_ctx.loc.fe_sector = sector; in fcb_walk()
23 entry_ctx.loc.fe_elem_off = 0U; in fcb_walk()
29 while ((rc = fcb_getnext_nolock(fcb, &entry_ctx.loc)) != in fcb_walk()
32 if (sector && entry_ctx.loc.fe_sector != sector) { in fcb_walk()
36 entry_ctx.fap = fcb->fap; in fcb_walk()
38 rc = cb(&entry_ctx, cb_arg); in fcb_walk()
/Zephyr-latest/subsys/settings/src/
Dsettings_fcb.c116 const struct fcb_entry_ctx *entry_ctx, in settings_fcb_check_duplicate() argument
119 struct fcb_entry_ctx entry2_ctx = *entry_ctx; in settings_fcb_check_duplicate()
138 static int read_entry_len(const struct fcb_entry_ctx *entry_ctx, off_t off) in read_entry_len() argument
140 if (off >= entry_ctx->loc.fe_data_len) { in read_entry_len()
143 return entry_ctx->loc.fe_data_len - off; in read_entry_len()
152 struct fcb_entry_ctx entry_ctx = { in settings_fcb_load_priv() local
158 while ((rc = fcb_getnext(&cf->cf_fcb, &entry_ctx.loc)) == 0) { in settings_fcb_load_priv()
165 (void *)&entry_ctx); in settings_fcb_load_priv()
173 (!read_entry_len(&entry_ctx, name_len+1) || in settings_fcb_load_priv()
174 settings_fcb_check_duplicate(cf, &entry_ctx, name))) { in settings_fcb_load_priv()
[all …]
Dsettings_file.c79 const struct line_entry_ctx *entry_ctx, in settings_file_check_duplicate() argument
82 struct line_entry_ctx entry2_ctx = *entry_ctx; in settings_file_check_duplicate()
106 static int read_entry_len(const struct line_entry_ctx *entry_ctx, off_t off) in read_entry_len() argument
108 if (off >= entry_ctx->len) { in read_entry_len()
111 return entry_ctx->len - off; in read_entry_len()
122 struct line_entry_ctx entry_ctx = { in settings_file_load_priv() local
146 rc = settings_next_line_ctx(&entry_ctx); in settings_file_load_priv()
147 if (rc || entry_ctx.len == 0) { in settings_file_load_priv()
152 &entry_ctx); in settings_file_load_priv()
160 (!read_entry_len(&entry_ctx, name_len+1) || in settings_file_load_priv()
[all …]
Dsettings_line.c123 int settings_next_line_ctx(struct line_entry_ctx *entry_ctx) in settings_next_line_ctx() argument
129 entry_ctx->seek += entry_ctx->len; /* to begin of next line */ in settings_next_line_ctx()
131 entry_ctx->len = 0; /* ask read handler to ignore len */ in settings_next_line_ctx()
134 &len_read, entry_ctx); in settings_next_line_ctx()
141 entry_ctx->seek += sizeof(readout); in settings_next_line_ctx()
142 entry_ctx->len = readout; in settings_next_line_ctx()
Dsettings_priv.h55 int settings_next_line_ctx(struct line_entry_ctx *entry_ctx);
/Zephyr-latest/tests/subsys/fs/fcb/src/
Dfcb_test.h40 int fcb_test_empty_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
42 int fcb_test_data_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
43 int fcb_test_cnt_elems_cb(struct fcb_entry_ctx *entry_ctx, void *arg);
Dmain.c69 int fcb_test_empty_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg) in fcb_test_empty_walk_cb() argument
80 int fcb_test_data_walk_cb(struct fcb_entry_ctx *entry_ctx, void *arg) in fcb_test_data_walk_cb() argument
88 len = entry_ctx->loc.fe_data_len; in fcb_test_data_walk_cb()
92 rc = flash_area_read(entry_ctx->fap, in fcb_test_data_walk_cb()
93 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc), in fcb_test_data_walk_cb()
105 int fcb_test_cnt_elems_cb(struct fcb_entry_ctx *entry_ctx, void *arg) in fcb_test_cnt_elems_cb() argument
110 idx = entry_ctx->loc.fe_sector - &test_fcb_sector[0]; in fcb_test_cnt_elems_cb()
/Zephyr-latest/tests/subsys/settings/fcb/src/
Dsettings_test_compress_deleted.c62 static int check_compressed_cb(struct fcb_entry_ctx *entry_ctx, void *arg) in check_compressed_cb() argument
69 len = entry_ctx->loc.fe_data_len; in check_compressed_cb()
74 rc = flash_area_read(entry_ctx->fap, in check_compressed_cb()
75 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc), buf, len); in check_compressed_cb()