Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
Dnand_ecc.c132 uint32_t rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7; in __nand_calculate_ecc() local
141 rp4 = 0; in __nand_calculate_ecc()
162 rp4 ^= cur; in __nand_calculate_ecc()
168 rp4 ^= cur; in __nand_calculate_ecc()
175 rp4 ^= cur; in __nand_calculate_ecc()
182 rp4 ^= cur; in __nand_calculate_ecc()
189 rp4 ^= cur; in __nand_calculate_ecc()
198 rp4 ^= cur; in __nand_calculate_ecc()
206 rp4 ^= cur; in __nand_calculate_ecc()
213 rp4 ^= cur; in __nand_calculate_ecc()
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/mtd/
Dnand_ecc.rst45 byte 0: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp2 rp4 ... rp14
46 byte 1: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp1 rp2 rp4 ... rp14
47 byte 2: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp3 rp4 ... rp14
48 byte 3: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp1 rp3 rp4 ... rp14
83 - for rp4 the rule is cover 4 bytes, skip 4 bytes, cover 4 bytes, skip 4 etc.
85 so rp4 calculates parity over bytes 0, 1, 2, 3, 8, 9, 10, 11, 16, ...)
139 rp4 = bit7 ^ bit6 ^ bit5 ^ bit4 ^ bit3 ^ bit2 ^ bit1 ^ bit0 ^ rp4;
217 unsigned char rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7;
223 rp4 = 0; rp5 = 0; rp6 = 0; rp7 = 0;
233 if (i & 0x04) rp5 ^= cur; else rp4 ^= cur;
[all …]