Lines Matching refs:syndrome
234 u32 syndrome[5]; in bf5xx_nand_correct_data_256() local
243 syndrome[0] = (calced ^ stored); in bf5xx_nand_correct_data_256()
250 if (!syndrome[0] || !calced || !stored) in bf5xx_nand_correct_data_256()
258 if (hweight32(syndrome[0]) == 1) { in bf5xx_nand_correct_data_256()
263 syndrome[1] = (calced & 0x7FF) ^ (stored & 0x7FF); in bf5xx_nand_correct_data_256()
264 syndrome[2] = (calced & 0x7FF) ^ ((calced >> 11) & 0x7FF); in bf5xx_nand_correct_data_256()
265 syndrome[3] = (stored & 0x7FF) ^ ((stored >> 11) & 0x7FF); in bf5xx_nand_correct_data_256()
266 syndrome[4] = syndrome[2] ^ syndrome[3]; in bf5xx_nand_correct_data_256()
269 dev_info(info->device, "syndrome[%d] 0x%08x\n", i, syndrome[i]); in bf5xx_nand_correct_data_256()
281 if (hweight32(syndrome[0]) == 11 && syndrome[4] == 0x7FF) { in bf5xx_nand_correct_data_256()
285 "syndrome[1] 0x%08x\n", syndrome[1]); in bf5xx_nand_correct_data_256()
287 failing_bit = syndrome[1] & 0x7; in bf5xx_nand_correct_data_256()
288 failing_byte = syndrome[1] >> 0x3; in bf5xx_nand_correct_data_256()