Lines Matching defs:data
19 * The ECC can correct single bit errors in a 256-byte page of data. Thus, two such ECC
26 * for each byte of data. These are instead provided in a table in bits7..2.
94 /* Calculate the ECC for a 256-byte block of data */
95 void yaffs_ecc_cacl(const unsigned char *data, unsigned char *ecc)
106 b = column_parity_table[*data++];
164 /* Correct the ECC on a 256 byte block of data */
166 int yaffs_ecc_correct(unsigned char *data, unsigned char *read_ecc,
181 /* Single bit (recoverable) error in data */
221 data[byte] ^= (1 << bit);
246 * ECCxxxOther does ECC calcs on arbitrary n bytes of data
248 void yaffs_ecc_calc_other(const unsigned char *data, unsigned n_bytes,
259 b = column_parity_table[*data++];
275 int yaffs_ecc_correct_other(unsigned char *data, unsigned n_bytes,
293 /* Single bit (recoverable) error in data */
307 data[lDelta] ^= (1 << bit);