Searched refs:rp0 (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 321 rp0 = (par >> 8) & 0xff; in __nand_calculate_ecc() 325 rp0 = (par & 0xff); in __nand_calculate_ecc() 365 (invparity[rp0]); in __nand_calculate_ecc() 384 (invparity[rp0]); in __nand_calculate_ecc()
|
/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 42 byte 2: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp3 rp4 ... rp14 44 byte 4: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp2 rp5 ... rp14 46 byte 254: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp3 rp5 ... rp15 66 rp0 is the parity of all even bytes (0, 2, 4, 6, ... 252, 254) 110 rp0 = bit7 ^ bit6 ^ bit5 ^ bit4 ^ bit3 ^ bit2 ^ bit1 ^ bit0 ^ rp1; 194 unsigned char rp0, rp1, rp2, rp3, rp4, rp5, rp6, rp7; 199 rp0 = 0; rp1 = 0; rp2 = 0; rp3 = 0; 208 if (i & 0x01) rp1 ^= cur; else rp0 ^= cur; 225 (parity[rp0]); [all …]
|