Lines Matching defs:data
21 * The ECC can correct single bit errors in a 256-byte page of data. Thus, two such ECC
28 * for each byte of data. These are instead provided in a table in bits7..2.
99 /* Calculate the ECC for a 256-byte block of data */
100 void yaffs_ECCCalculate(const unsigned char *data, unsigned char *ecc)
111 b = column_parity_table[*data++];
171 /* Correct the ECC on a 256 byte block of data */
173 int yaffs_ECCCorrect(unsigned char *data, unsigned char *read_ecc,
188 /* Single bit (recoverable) error in data */
228 data[byte] ^= (1 << bit);
253 * ECCxxxOther does ECC calcs on arbitrary n bytes of data
255 void yaffs_ECCCalculateOther(const unsigned char *data, unsigned nBytes,
266 b = column_parity_table[*data++];
282 int yaffs_ECCCorrectOther(unsigned char *data, unsigned nBytes,
301 /* Single bit (recoverable) error in data */
315 data[lDelta] ^= (1 << bit);