Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/nand/raw/
Dnand_ecc.c145 uint32_t rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7; in __nand_calculate_ecc() local
154 rp4 = 0; in __nand_calculate_ecc()
175 rp4 ^= cur; in __nand_calculate_ecc()
181 rp4 ^= cur; in __nand_calculate_ecc()
188 rp4 ^= cur; in __nand_calculate_ecc()
195 rp4 ^= cur; in __nand_calculate_ecc()
202 rp4 ^= cur; in __nand_calculate_ecc()
211 rp4 ^= cur; in __nand_calculate_ecc()
219 rp4 ^= cur; in __nand_calculate_ecc()
226 rp4 ^= cur; in __nand_calculate_ecc()
[all …]
/Linux-v4.19/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 …]