Lines Matching +full:0 +full:x5a
41 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00,
42 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65,
43 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66,
44 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03,
45 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69,
46 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c,
47 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f,
48 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a,
49 0x6a, 0x3f, 0x3c, 0x69, 0x33, 0x66, 0x65, 0x30, 0x30, 0x65, 0x66, 0x33, 0x69, 0x3c, 0x3f, 0x6a,
50 0x0f, 0x5a, 0x59, 0x0c, 0x56, 0x03, 0x00, 0x55, 0x55, 0x00, 0x03, 0x56, 0x0c, 0x59, 0x5a, 0x0f,
51 0x0c, 0x59, 0x5a, 0x0f, 0x55, 0x00, 0x03, 0x56, 0x56, 0x03, 0x00, 0x55, 0x0f, 0x5a, 0x59, 0x0c,
52 0x69, 0x3c, 0x3f, 0x6a, 0x30, 0x65, 0x66, 0x33, 0x33, 0x66, 0x65, 0x30, 0x6a, 0x3f, 0x3c, 0x69,
53 0x03, 0x56, 0x55, 0x00, 0x5a, 0x0f, 0x0c, 0x59, 0x59, 0x0c, 0x0f, 0x5a, 0x00, 0x55, 0x56, 0x03,
54 0x66, 0x33, 0x30, 0x65, 0x3f, 0x6a, 0x69, 0x3c, 0x3c, 0x69, 0x6a, 0x3f, 0x65, 0x30, 0x33, 0x66,
55 0x65, 0x30, 0x33, 0x66, 0x3c, 0x69, 0x6a, 0x3f, 0x3f, 0x6a, 0x69, 0x3c, 0x66, 0x33, 0x30, 0x65,
56 0x00, 0x55, 0x56, 0x03, 0x59, 0x0c, 0x0f, 0x5a, 0x5a, 0x0f, 0x0c, 0x59, 0x03, 0x56, 0x55, 0x00
72 reg1 = reg2 = reg3 = 0; in nand_calculate_ecc()
75 for(i = 0; i < 256; i++) { in nand_calculate_ecc()
78 reg1 ^= (idx & 0x3f); in nand_calculate_ecc()
81 if (idx & 0x40) { in nand_calculate_ecc()
88 tmp1 = (reg3 & 0x80) >> 0; /* B7 -> B7 */ in nand_calculate_ecc()
89 tmp1 |= (reg2 & 0x80) >> 1; /* B7 -> B6 */ in nand_calculate_ecc()
90 tmp1 |= (reg3 & 0x40) >> 1; /* B6 -> B5 */ in nand_calculate_ecc()
91 tmp1 |= (reg2 & 0x40) >> 2; /* B6 -> B4 */ in nand_calculate_ecc()
92 tmp1 |= (reg3 & 0x20) >> 2; /* B5 -> B3 */ in nand_calculate_ecc()
93 tmp1 |= (reg2 & 0x20) >> 3; /* B5 -> B2 */ in nand_calculate_ecc()
94 tmp1 |= (reg3 & 0x10) >> 3; /* B4 -> B1 */ in nand_calculate_ecc()
95 tmp1 |= (reg2 & 0x10) >> 4; /* B4 -> B0 */ in nand_calculate_ecc()
97 tmp2 = (reg3 & 0x08) << 4; /* B3 -> B7 */ in nand_calculate_ecc()
98 tmp2 |= (reg2 & 0x08) << 3; /* B3 -> B6 */ in nand_calculate_ecc()
99 tmp2 |= (reg3 & 0x04) << 3; /* B2 -> B5 */ in nand_calculate_ecc()
100 tmp2 |= (reg2 & 0x04) << 2; /* B2 -> B4 */ in nand_calculate_ecc()
101 tmp2 |= (reg3 & 0x02) << 2; /* B1 -> B3 */ in nand_calculate_ecc()
102 tmp2 |= (reg2 & 0x02) << 1; /* B1 -> B2 */ in nand_calculate_ecc()
103 tmp2 |= (reg3 & 0x01) << 1; /* B0 -> B1 */ in nand_calculate_ecc()
104 tmp2 |= (reg2 & 0x01) << 0; /* B7 -> B0 */ in nand_calculate_ecc()
107 ecc_code[0] = ~tmp1; in nand_calculate_ecc()
109 ecc_code[2] = ((~reg1) << 2) | 0x03; in nand_calculate_ecc()
111 return 0; in nand_calculate_ecc()
117 int res = 0; in countbits()
120 res += byte & 0x01; in countbits()
138 s1 = calc_ecc[0] ^ read_ecc[0]; in nand_correct_data()
141 if ((s0 | s1 | s2) == 0) in nand_correct_data()
142 return 0; in nand_correct_data()
145 if( ((s0 ^ (s0 >> 1)) & 0x55) == 0x55 && in nand_correct_data()
146 ((s1 ^ (s1 >> 1)) & 0x55) == 0x55 && in nand_correct_data()
147 ((s2 ^ (s2 >> 1)) & 0x54) == 0x54) { in nand_correct_data()
151 byteoffs = (s1 << 0) & 0x80; in nand_correct_data()
152 byteoffs |= (s1 << 1) & 0x40; in nand_correct_data()
153 byteoffs |= (s1 << 2) & 0x20; in nand_correct_data()
154 byteoffs |= (s1 << 3) & 0x10; in nand_correct_data()
156 byteoffs |= (s0 >> 4) & 0x08; in nand_correct_data()
157 byteoffs |= (s0 >> 3) & 0x04; in nand_correct_data()
158 byteoffs |= (s0 >> 2) & 0x02; in nand_correct_data()
159 byteoffs |= (s0 >> 1) & 0x01; in nand_correct_data()
161 bitnum = (s2 >> 5) & 0x04; in nand_correct_data()
162 bitnum |= (s2 >> 4) & 0x02; in nand_correct_data()
163 bitnum |= (s2 >> 3) & 0x01; in nand_correct_data()