CHFS_EB_EC_HDR_SIZE
CHFS_EB_EC_HDR_SIZE + CHFS_EB_HDR_NOR_SIZE;
ofs, CHFS_EB_EC_HDR_SIZE,
if (ret || retlen != CHFS_EB_EC_HDR_SIZE)
ofs += CHFS_EB_EC_HDR_SIZE;
CHFS_EB_EC_HDR_SIZE - CHFS_EB_HDR_NOR_SIZE;
ofs, CHFS_EB_EC_HDR_SIZE, &retlen,
if (ret || retlen != CHFS_EB_EC_HDR_SIZE)
off_t ofs = pebnr * ebh->flash_if->erasesize + CHFS_EB_EC_HDR_SIZE;
0xFF, 0, CHFS_EB_EC_HDR_SIZE)) {
0xFF, 0, CHFS_EB_EC_HDR_SIZE)) {
ofs = pebnr * ebh->flash_if->erasesize + CHFS_EB_EC_HDR_SIZE
ofs = pebnr * ebh->flash_if->erasesize + CHFS_EB_EC_HDR_SIZE
KASSERT(sizeof(ebhdr->ec_hdr) == CHFS_EB_EC_HDR_SIZE);
ofs, CHFS_EB_EC_HDR_SIZE, &retlen,
if (ret || retlen != CHFS_EB_EC_HDR_SIZE) {
#define MINSIZE MAX(MAX(CHFS_EB_EC_HDR_SIZE, CHFS_EB_HDR_NOR_SIZE), \
memcpy(buf, &ebhdr.ec_hdr, CHFS_EB_EC_HDR_SIZE);
memset(buf + CHFS_EB_EC_HDR_SIZE, 0xFF,
opts->pagesize - CHFS_EB_EC_HDR_SIZE);