Searched refs:rp14 (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/ |
D | nand_ecc.c | 133 uint32_t rp8, rp9, rp10, rp11, rp12, rp13, rp14, rp15, rp16; in __nand_calculate_ecc() local 146 rp14 = 0; in __nand_calculate_ecc() 221 rp14 ^= tmppar; in __nand_calculate_ecc() 247 rp14 ^= (rp14 >> 16); in __nand_calculate_ecc() 248 rp14 ^= (rp14 >> 8); in __nand_calculate_ecc() 249 rp14 &= 0xff; in __nand_calculate_ecc() 310 rp15 = (par ^ rp14) & 0xff; in __nand_calculate_ecc() 325 code[1] = (invparity[rp15] << 7) | (invparity[rp14] << 6) | in __nand_calculate_ecc() 334 code[0] = (invparity[rp15] << 7) | (invparity[rp14] << 6) | in __nand_calculate_ecc()
|
/kernel/linux/linux-5.10/Documentation/driver-api/mtd/ |
D | nand_ecc.rst | 45 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 49 byte 4: bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 rp0 rp2 rp5 ... rp14 98 - rp14 covers 128 bytes then skips 128 108 ECC 1 rp15 rp14 rp13 rp12 rp11 rp10 rp09 rp08 159 rp14 = bit7 ^ bit6 ^ bit5 ^ bit4 ^ bit3 ^ bit2 ^ bit1 ^ bit0 ^ rp14; 218 unsigned char rp8, rp9, rp10, rp11, rp12, rp13, rp14, rp15; 225 rp12 = 0; rp13 = 0; rp14 = 0; rp15 = 0; [all …]
|