Home
last modified time | relevance | path

Searched refs:ecc_odd (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dzynq_nand.c383 unsigned short ecc_odd, ecc_even; in zynq_nand_correct_data() local
393 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()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dpl35x-nand-controller.c398 unsigned short ecc_odd, ecc_even, read_ecc_lower, read_ecc_upper; in pl35x_nand_correct_data() local
412 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()