Home
last modified time | relevance | path

Searched refs:spare (Results 1 – 5 of 5) sorted by relevance

/fs/yaffs2/
Dyaffs_mtdif.c40 static inline void translate_spare2oob(const yaffs_Spare *spare, __u8 *oob) in translate_spare2oob() argument
42 oob[0] = spare->tagByte0; in translate_spare2oob()
43 oob[1] = spare->tagByte1; in translate_spare2oob()
44 oob[2] = spare->tagByte2; in translate_spare2oob()
45 oob[3] = spare->tagByte3; in translate_spare2oob()
46 oob[4] = spare->tagByte4; in translate_spare2oob()
47 oob[5] = spare->tagByte5 & 0x3f; in translate_spare2oob()
48 oob[5] |= spare->blockStatus == 'Y' ? 0 : 0x80; in translate_spare2oob()
49 oob[5] |= spare->pageStatus == 0 ? 0 : 0x40; in translate_spare2oob()
50 oob[6] = spare->tagByte6; in translate_spare2oob()
[all …]
Dyaffs_tagscompat.c24 const yaffs_Spare *spare);
26 const yaffs_Spare *spare);
58 void yaffs_CalcECC(const __u8 *data, yaffs_Spare *spare) in yaffs_CalcECC() argument
60 yaffs_ECCCalculate(data, spare->ecc1); in yaffs_CalcECC()
61 yaffs_ECCCalculate(&data[256], spare->ecc2); in yaffs_CalcECC()
157 static void yaffs_SpareInitialise(yaffs_Spare *spare) in yaffs_SpareInitialise() argument
159 memset(spare, 0xFF, sizeof(yaffs_Spare)); in yaffs_SpareInitialise()
164 yaffs_Spare *spare) in yaffs_WriteChunkToNAND() argument
173 return dev->writeChunkToNAND(dev, chunkInNAND, data, spare); in yaffs_WriteChunkToNAND()
179 yaffs_Spare *spare, in yaffs_ReadChunkFromNAND() argument
[all …]
Dyaffs_mtdif.h27 const __u8 *data, const yaffs_Spare *spare);
29 yaffs_Spare *spare);
Dyaffs_guts.h226 yaffs_Spare spare; member
571 const yaffs_Spare *spare);
574 yaffs_Spare *spare);
/fs/partitions/
Dsun.c38 unsigned char spare[148]; /* Padding */ in sun_partition() member