Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/fs/fcb/
Dfcb.c19 uint8_t fcb_get_align(const struct fcb *fcbp) in fcb_get_align() argument
23 if (fcbp->fap == NULL) { in fcb_get_align()
27 align = flash_area_align(fcbp->fap); in fcb_get_align()
32 int fcb_flash_read(const struct fcb *fcbp, const struct flash_sector *sector, off_t off, in fcb_flash_read() argument
41 if (fcbp->fap == NULL) { in fcb_flash_read()
45 rc = flash_area_read(fcbp->fap, sector->fs_off + off, dst, len); in fcb_flash_read()
54 int fcb_flash_write(const struct fcb *fcbp, const struct flash_sector *sector, off_t off, in fcb_flash_write() argument
63 if (fcbp->fap == NULL) { in fcb_flash_write()
67 rc = flash_area_write(fcbp->fap, sector->fs_off + off, src, len); in fcb_flash_write()
76 int fcb_erase_sector(const struct fcb *fcbp, const struct flash_sector *sector) in fcb_erase_sector() argument
[all …]
Dfcb_priv.h42 static inline uint32_t fcb_flash_magic(const struct fcb *fcbp) in fcb_flash_magic() argument
44 const uint8_t ev = fcbp->f_erase_value; in fcb_flash_magic()
46 return (fcbp->f_magic ^ ~MK32(ev)); in fcb_flash_magic()
56 int fcb_put_len(const struct fcb *fcbp, uint8_t *buf, uint16_t len);
57 int fcb_get_len(const struct fcb *fcbp, uint8_t *buf, uint16_t *len);
59 static inline int fcb_len_in_flash(struct fcb *fcbp, uint16_t len) in fcb_len_in_flash() argument
61 if (fcbp->f_align <= 1U) { in fcb_len_in_flash()
64 return (len + (fcbp->f_align - 1U)) & ~(fcbp->f_align - 1U); in fcb_len_in_flash()
67 const struct flash_area *fcb_open_flash(const struct fcb *fcbp);
68 uint8_t fcb_get_align(const struct fcb *fcbp);
[all …]
/Zephyr-latest/include/zephyr/fs/
Dfcb.h165 int fcb_init(int f_area_id, struct fcb *fcbp);
182 int fcb_append(struct fcb *fcbp, uint16_t len, struct fcb_entry *loc);
192 int fcb_append_finish(struct fcb *fcbp, struct fcb_entry *append_loc);
226 int fcb_walk(struct fcb *fcbp, struct flash_sector *sector, fcb_walk_cb cb, void *cb_arg);
244 int fcb_getnext(struct fcb *fcbp, struct fcb_entry *loc);
254 int fcb_rotate(struct fcb *fcbp);
266 int fcb_append_to_scratch(struct fcb *fcbp);
275 int fcb_free_sector_cnt(struct fcb *fcbp);
284 int fcb_is_empty(struct fcb *fcbp);
295 int fcb_offset_last_n(struct fcb *fcbp, uint8_t entries, struct fcb_entry *last_n_entry);
[all …]