Lines Matching defs:lid
53 int nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid);
89 ebhdr->u.nor_hdr.lid = htole32(lnr);
101 ebhdr->u.nand_hdr.lid = htole32(lnr);
226 ebhdr->u.nor_hdr.lid = ebhdr->u.nor_hdr.lid
332 if (ebhdr->u.nor_hdr.crc == 0 && ebhdr->u.nor_hdr.lid == 0) {
339 lid_save = ebhdr->u.nor_hdr.lid;
341 // mark lid as not dirty for crc calc
342 ebhdr->u.nor_hdr.lid = ebhdr->u.nor_hdr.lid | htole32(
346 // restore the original lid value in ebh
347 ebhdr->u.nor_hdr.lid = lid_save;
428 * @lid: leb id (its bit number 31 will be set to 0)
435 nor_mark_eb_hdr_dirty_flash(struct chfs_ebh *ebh, int pebnr, int lid)
442 lid = htole32(lid & CHFS_LID_DIRTY_BIT_MASK);
446 + CHFS_GET_MEMBER_POS(struct chfs_nor_eb_hdr , lid);
448 ret = flash_write(ebh->flash_dev, ofs, sizeof(lid), &retlen,
449 (unsigned char *) &lid);
450 if (ret || retlen != sizeof(lid)) {
478 /* calculate position (!!! lid is directly behind crc !!!) */
558 * @lid: identifier of the logical eraseblock
1217 lnr = CHFS_GET_LID(ebhdr->u.nor_hdr.lid);
1326 lnr = CHFS_GET_LID(ebhdr->u.nor_hdr.lid);