Searched refs:rp4 (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/mtd/nand/ |
D | nand_ecc.c | 168 uint32_t rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7; in __nand_calculate_ecc() local 177 rp4 = 0; in __nand_calculate_ecc() 198 rp4 ^= cur; in __nand_calculate_ecc() 204 rp4 ^= cur; in __nand_calculate_ecc() 211 rp4 ^= cur; in __nand_calculate_ecc() 218 rp4 ^= cur; in __nand_calculate_ecc() 225 rp4 ^= cur; in __nand_calculate_ecc() 234 rp4 ^= cur; in __nand_calculate_ecc() 242 rp4 ^= cur; in __nand_calculate_ecc() 249 rp4 ^= cur; in __nand_calculate_ecc() [all …]
|
/linux-2.6.39/Documentation/mtd/ |
D | nand_ecc.txt | 40 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 …]
|