Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/mtd/nand/raw/
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()