Lines Matching refs:entry_ctx

116 					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()
180 cb(name, &entry_ctx, name_len + 1, cb_arg); in settings_fcb_load_priv()
201 struct fcb_entry_ctx *entry_ctx = ctx; in read_handler() local
203 if (off >= entry_ctx->loc.fe_data_len) { in read_handler()
208 if ((off + *len) > entry_ctx->loc.fe_data_len) { in read_handler()
209 *len = entry_ctx->loc.fe_data_len - off; in read_handler()
212 return flash_area_read(entry_ctx->fap, in read_handler()
213 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, buf, in read_handler()
309 struct fcb_entry_ctx *entry_ctx = ctx; in get_len_cb() local
311 return entry_ctx->loc.fe_data_len; in get_len_cb()
316 struct fcb_entry_ctx *entry_ctx = ctx; in write_handler() local
318 return flash_area_write(entry_ctx->fap, in write_handler()
319 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, in write_handler()