Home
last modified time | relevance | path

Searched refs:rp4 (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/mtd/nand/
Dnand_ecc.c167 uint32_t rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7; in __nand_calculate_ecc() local
176 rp4 = 0; in __nand_calculate_ecc()
197 rp4 ^= cur; in __nand_calculate_ecc()
203 rp4 ^= cur; in __nand_calculate_ecc()
210 rp4 ^= cur; in __nand_calculate_ecc()
217 rp4 ^= cur; in __nand_calculate_ecc()
224 rp4 ^= cur; in __nand_calculate_ecc()
233 rp4 ^= cur; in __nand_calculate_ecc()
241 rp4 ^= cur; in __nand_calculate_ecc()
248 rp4 ^= cur; in __nand_calculate_ecc()
[all …]
/linux-4.4.14/Documentation/mtd/
Dnand_ecc.txt40 byte 0: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp2 rp4 ... rp14
41 byte 1: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp1 rp2 rp4 ... rp14
42 byte 2: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp3 rp4 ... rp14
43 byte 3: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp1 rp3 rp4 ... rp14
71 for rp4 the rule is cover 4 bytes, skip 4 bytes, cover 4 bytes, skip 4 etc.
72 so rp4 calculates parity over bytes 0, 1, 2, 3, 8, 9, 10, 11, 16, ...)
118 rp4 = bit7 ^ bit6 ^ bit5 ^ bit4 ^ bit3 ^ bit2 ^ bit1 ^ bit0 ^ rp4;
194 unsigned char rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7;
200 rp4 = 0; rp5 = 0; rp6 = 0; rp7 = 0;
210 if (i & 0x04) rp5 ^= cur; else rp4 ^= cur;
[all …]