Lines Matching refs:_fcb

20 fcb_elem_crc8(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *c8p)  in fcb_elem_crc8()  argument
35 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_crc8()
40 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_crc8()
44 loc->fe_data_off = loc->fe_elem_off + fcb_len_in_flash(_fcb, cnt); in fcb_elem_crc8()
58 rc = fcb_flash_read(_fcb, loc->fe_sector, off, tmp_str, blk_sz); in fcb_elem_crc8()
74 fcb_elem_endmarker_fixed(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *em) in fcb_elem_endmarker_fixed() argument
85 rc = fcb_flash_read(_fcb, loc->fe_sector, loc->fe_elem_off, tmp_str, 2); in fcb_elem_endmarker_fixed()
90 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_endmarker_fixed()
94 loc->fe_data_off = loc->fe_elem_off + fcb_len_in_flash(_fcb, cnt); in fcb_elem_endmarker_fixed()
106 fcb_elem_endmarker(struct fcb *_fcb, struct fcb_entry *loc, uint8_t *em) in fcb_elem_endmarker() argument
109 if (_fcb->f_flags & FCB_FLAGS_CRC_DISABLED) { in fcb_elem_endmarker()
110 return fcb_elem_endmarker_fixed(_fcb, loc, em); in fcb_elem_endmarker()
114 return fcb_elem_crc8(_fcb, loc, em); in fcb_elem_endmarker()
120 int fcb_elem_info(struct fcb *_fcb, struct fcb_entry *loc) in fcb_elem_info() argument
127 rc = fcb_elem_endmarker(_fcb, loc, &em); in fcb_elem_info()
131 off = loc->fe_data_off + fcb_len_in_flash(_fcb, loc->fe_data_len); in fcb_elem_info()
133 rc = fcb_flash_read(_fcb, loc->fe_sector, off, &fl_em, sizeof(fl_em)); in fcb_elem_info()
139 rc = fcb_elem_crc8(_fcb, loc, &em); in fcb_elem_info()