Lines Matching +full:0 +full:x0c
31 * Bit 0 of each entry indicates whether the entry has an odd or even parity,
36 0x00, 0x55, 0x59, 0x0c, 0x65, 0x30, 0x3c, 0x69,
37 0x69, 0x3c, 0x30, 0x65, 0x0c, 0x59, 0x55, 0x00,
38 0x95, 0xc0, 0xcc, 0x99, 0xf0, 0xa5, 0xa9, 0xfc,
39 0xfc, 0xa9, 0xa5, 0xf0, 0x99, 0xcc, 0xc0, 0x95,
40 0x99, 0xcc, 0xc0, 0x95, 0xfc, 0xa9, 0xa5, 0xf0,
41 0xf0, 0xa5, 0xa9, 0xfc, 0x95, 0xc0, 0xcc, 0x99,
42 0x0c, 0x59, 0x55, 0x00, 0x69, 0x3c, 0x30, 0x65,
43 0x65, 0x30, 0x3c, 0x69, 0x00, 0x55, 0x59, 0x0c,
44 0xa5, 0xf0, 0xfc, 0xa9, 0xc0, 0x95, 0x99, 0xcc,
45 0xcc, 0x99, 0x95, 0xc0, 0xa9, 0xfc, 0xf0, 0xa5,
46 0x30, 0x65, 0x69, 0x3c, 0x55, 0x00, 0x0c, 0x59,
47 0x59, 0x0c, 0x00, 0x55, 0x3c, 0x69, 0x65, 0x30,
48 0x3c, 0x69, 0x65, 0x30, 0x59, 0x0c, 0x00, 0x55,
49 0x55, 0x00, 0x0c, 0x59, 0x30, 0x65, 0x69, 0x3c,
50 0xa9, 0xfc, 0xf0, 0xa5, 0xcc, 0x99, 0x95, 0xc0,
51 0xc0, 0x95, 0x99, 0xcc, 0xa5, 0xf0, 0xfc, 0xa9,
52 0xa9, 0xfc, 0xf0, 0xa5, 0xcc, 0x99, 0x95, 0xc0,
53 0xc0, 0x95, 0x99, 0xcc, 0xa5, 0xf0, 0xfc, 0xa9,
54 0x3c, 0x69, 0x65, 0x30, 0x59, 0x0c, 0x00, 0x55,
55 0x55, 0x00, 0x0c, 0x59, 0x30, 0x65, 0x69, 0x3c,
56 0x30, 0x65, 0x69, 0x3c, 0x55, 0x00, 0x0c, 0x59,
57 0x59, 0x0c, 0x00, 0x55, 0x3c, 0x69, 0x65, 0x30,
58 0xa5, 0xf0, 0xfc, 0xa9, 0xc0, 0x95, 0x99, 0xcc,
59 0xcc, 0x99, 0x95, 0xc0, 0xa9, 0xfc, 0xf0, 0xa5,
60 0x0c, 0x59, 0x55, 0x00, 0x69, 0x3c, 0x30, 0x65,
61 0x65, 0x30, 0x3c, 0x69, 0x00, 0x55, 0x59, 0x0c,
62 0x99, 0xcc, 0xc0, 0x95, 0xfc, 0xa9, 0xa5, 0xf0,
63 0xf0, 0xa5, 0xa9, 0xfc, 0x95, 0xc0, 0xcc, 0x99,
64 0x95, 0xc0, 0xcc, 0x99, 0xf0, 0xa5, 0xa9, 0xfc,
65 0xfc, 0xa9, 0xa5, 0xf0, 0x99, 0xcc, 0xc0, 0x95,
66 0x00, 0x55, 0x59, 0x0c, 0x65, 0x30, 0x3c, 0x69,
67 0x69, 0x3c, 0x30, 0x65, 0x0c, 0x59, 0x55, 0x00,
75 unsigned char col_parity = 0; in yaffs_ecc_calc()
76 unsigned char line_parity = 0; in yaffs_ecc_calc()
77 unsigned char line_parity_prime = 0; in yaffs_ecc_calc()
81 for (i = 0; i < 256; i++) { in yaffs_ecc_calc()
85 if (b & 0x01) { /* odd number of bits in the byte */ in yaffs_ecc_calc()
91 ecc[2] = (~col_parity) | 0x03; in yaffs_ecc_calc()
93 t = 0; in yaffs_ecc_calc()
94 if (line_parity & 0x80) in yaffs_ecc_calc()
95 t |= 0x80; in yaffs_ecc_calc()
96 if (line_parity_prime & 0x80) in yaffs_ecc_calc()
97 t |= 0x40; in yaffs_ecc_calc()
98 if (line_parity & 0x40) in yaffs_ecc_calc()
99 t |= 0x20; in yaffs_ecc_calc()
100 if (line_parity_prime & 0x40) in yaffs_ecc_calc()
101 t |= 0x10; in yaffs_ecc_calc()
102 if (line_parity & 0x20) in yaffs_ecc_calc()
103 t |= 0x08; in yaffs_ecc_calc()
104 if (line_parity_prime & 0x20) in yaffs_ecc_calc()
105 t |= 0x04; in yaffs_ecc_calc()
106 if (line_parity & 0x10) in yaffs_ecc_calc()
107 t |= 0x02; in yaffs_ecc_calc()
108 if (line_parity_prime & 0x10) in yaffs_ecc_calc()
109 t |= 0x01; in yaffs_ecc_calc()
112 t = 0; in yaffs_ecc_calc()
113 if (line_parity & 0x08) in yaffs_ecc_calc()
114 t |= 0x80; in yaffs_ecc_calc()
115 if (line_parity_prime & 0x08) in yaffs_ecc_calc()
116 t |= 0x40; in yaffs_ecc_calc()
117 if (line_parity & 0x04) in yaffs_ecc_calc()
118 t |= 0x20; in yaffs_ecc_calc()
119 if (line_parity_prime & 0x04) in yaffs_ecc_calc()
120 t |= 0x10; in yaffs_ecc_calc()
121 if (line_parity & 0x02) in yaffs_ecc_calc()
122 t |= 0x08; in yaffs_ecc_calc()
123 if (line_parity_prime & 0x02) in yaffs_ecc_calc()
124 t |= 0x04; in yaffs_ecc_calc()
125 if (line_parity & 0x01) in yaffs_ecc_calc()
126 t |= 0x02; in yaffs_ecc_calc()
127 if (line_parity_prime & 0x01) in yaffs_ecc_calc()
128 t |= 0x01; in yaffs_ecc_calc()
129 ecc[0] = ~t; in yaffs_ecc_calc()
140 d0 = read_ecc[0] ^ test_ecc[0]; in yaffs_ecc_correct()
144 if ((d0 | d1 | d2) == 0) in yaffs_ecc_correct()
145 return 0; /* no error */ in yaffs_ecc_correct()
147 if (((d0 ^ (d0 >> 1)) & 0x55) == 0x55 && in yaffs_ecc_correct()
148 ((d1 ^ (d1 >> 1)) & 0x55) == 0x55 && in yaffs_ecc_correct()
149 ((d2 ^ (d2 >> 1)) & 0x54) == 0x54) { in yaffs_ecc_correct()
155 bit = byte = 0; in yaffs_ecc_correct()
157 if (d1 & 0x80) in yaffs_ecc_correct()
158 byte |= 0x80; in yaffs_ecc_correct()
159 if (d1 & 0x20) in yaffs_ecc_correct()
160 byte |= 0x40; in yaffs_ecc_correct()
161 if (d1 & 0x08) in yaffs_ecc_correct()
162 byte |= 0x20; in yaffs_ecc_correct()
163 if (d1 & 0x02) in yaffs_ecc_correct()
164 byte |= 0x10; in yaffs_ecc_correct()
165 if (d0 & 0x80) in yaffs_ecc_correct()
166 byte |= 0x08; in yaffs_ecc_correct()
167 if (d0 & 0x20) in yaffs_ecc_correct()
168 byte |= 0x04; in yaffs_ecc_correct()
169 if (d0 & 0x08) in yaffs_ecc_correct()
170 byte |= 0x02; in yaffs_ecc_correct()
171 if (d0 & 0x02) in yaffs_ecc_correct()
172 byte |= 0x01; in yaffs_ecc_correct()
174 if (d2 & 0x80) in yaffs_ecc_correct()
175 bit |= 0x04; in yaffs_ecc_correct()
176 if (d2 & 0x20) in yaffs_ecc_correct()
177 bit |= 0x02; in yaffs_ecc_correct()
178 if (d2 & 0x08) in yaffs_ecc_correct()
179 bit |= 0x01; in yaffs_ecc_correct()
189 read_ecc[0] = test_ecc[0]; in yaffs_ecc_correct()
209 unsigned char col_parity = 0; in yaffs_ecc_calc_other()
210 unsigned line_parity = 0; in yaffs_ecc_calc_other()
211 unsigned line_parity_prime = 0; in yaffs_ecc_calc_other()
214 for (i = 0; i < n_bytes; i++) { in yaffs_ecc_calc_other()
218 if (b & 0x01) { in yaffs_ecc_calc_other()
226 ecc_other->col_parity = (col_parity >> 2) & 0x3f; in yaffs_ecc_calc_other()
245 if ((delta_col | delta_line | delta_line_prime) == 0) in yaffs_ecc_correct_other()
246 return 0; /* no error */ in yaffs_ecc_correct_other()
249 (((delta_col ^ (delta_col >> 1)) & 0x15) == 0x15)) { in yaffs_ecc_correct_other()
252 bit = 0; in yaffs_ecc_correct_other()
254 if (delta_col & 0x20) in yaffs_ecc_correct_other()
255 bit |= 0x04; in yaffs_ecc_correct_other()
256 if (delta_col & 0x08) in yaffs_ecc_correct_other()
257 bit |= 0x02; in yaffs_ecc_correct_other()
258 if (delta_col & 0x02) in yaffs_ecc_correct_other()
259 bit |= 0x01; in yaffs_ecc_correct_other()