Lines Matching refs:reg3
68 uint8_t idx, reg1, reg2, reg3, tmp1, tmp2; in nand_calculate_ecc() local
72 reg1 = reg2 = reg3 = 0; in nand_calculate_ecc()
82 reg3 ^= (uint8_t) i; in nand_calculate_ecc()
88 tmp1 = (reg3 & 0x80) >> 0; /* B7 -> B7 */ in nand_calculate_ecc()
90 tmp1 |= (reg3 & 0x40) >> 1; /* B6 -> B5 */ in nand_calculate_ecc()
92 tmp1 |= (reg3 & 0x20) >> 2; /* B5 -> B3 */ in nand_calculate_ecc()
94 tmp1 |= (reg3 & 0x10) >> 3; /* B4 -> B1 */ in nand_calculate_ecc()
97 tmp2 = (reg3 & 0x08) << 4; /* B3 -> B7 */ in nand_calculate_ecc()
99 tmp2 |= (reg3 & 0x04) << 3; /* B2 -> B5 */ in nand_calculate_ecc()
101 tmp2 |= (reg3 & 0x02) << 2; /* B1 -> B3 */ in nand_calculate_ecc()
103 tmp2 |= (reg3 & 0x01) << 1; /* B0 -> B1 */ in nand_calculate_ecc()