Searched refs:ecc_odd (Results 1 – 2 of 2) sorted by relevance
383 unsigned short ecc_odd, ecc_even; in zynq_nand_correct_data() local393 ecc_odd = read_ecc_lower ^ calc_ecc_lower; in zynq_nand_correct_data()396 if ((ecc_odd == 0) && (ecc_even == 0)) in zynq_nand_correct_data()399 if (ecc_odd == (~ecc_even & 0xfff)) { in zynq_nand_correct_data()401 byte_addr = (ecc_odd >> 3) & 0x1ff; in zynq_nand_correct_data()403 bit_addr = ecc_odd & 0x7; in zynq_nand_correct_data()409 if (onehot(ecc_odd | ecc_even)) in zynq_nand_correct_data()
398 unsigned short ecc_odd, ecc_even, read_ecc_lower, read_ecc_upper; in pl35x_nand_correct_data() local412 ecc_odd = read_ecc_lower ^ calc_ecc_lower; in pl35x_nand_correct_data()416 if (likely(!ecc_odd && !ecc_even)) in pl35x_nand_correct_data()420 if (ecc_odd == (~ecc_even & PL35X_NAND_ECC_BITS_MASK)) { in pl35x_nand_correct_data()422 byte_addr = (ecc_odd >> 3) & PL35X_NAND_ECC_BYTE_OFF_MASK; in pl35x_nand_correct_data()424 bit_addr = ecc_odd & PL35X_NAND_ECC_BIT_OFF_MASK; in pl35x_nand_correct_data()432 if (hweight32(ecc_odd | ecc_even) == 1) in pl35x_nand_correct_data()