Home | History | Annotate | Download | only in yaffs2

Lines Matching refs:oob

42 static inline void translate_spare2oob(const yaffs_Spare *spare, __u8 *oob)
44 oob[0] = spare->tagByte0;
45 oob[1] = spare->tagByte1;
46 oob[2] = spare->tagByte2;
47 oob[3] = spare->tagByte3;
48 oob[4] = spare->tagByte4;
49 oob[5] = spare->tagByte5 & 0x3f;
50 oob[5] |= spare->blockStatus == 'Y' ? 0: 0x80;
51 oob[5] |= spare->pageStatus == 0 ? 0: 0x40;
52 oob[6] = spare->tagByte6;
53 oob[7] = spare->tagByte7;
56 static inline void translate_oob2spare(yaffs_Spare *spare, __u8 *oob)
59 spare->tagByte0 = oob[0];
60 spare->tagByte1 = oob[1];
61 spare->tagByte2 = oob[2];
62 spare->tagByte3 = oob[3];
63 spare->tagByte4 = oob[4];
64 spare->tagByte5 = oob[5] == 0xff ? 0xff : oob[5] & 0x3f;
65 spare->blockStatus = oob[5] & 0x80 ? 0xff : 'Y';
66 spare->pageStatus = oob[5] & 0x40 ? 0xff : 0;
67 spare->tagByte6 = oob[6];
68 spare->tagByte7 = oob[7];
86 __u8 spareAsBytes[8]; /* OOB */
150 __u8 spareAsBytes[8]; /* OOB */