Lines Matching defs:ecc
64 * For now, we expose only 64 out of 80 ecc bytes
91 .ecc = flexonenand_ooblayout_ecc,
131 .ecc = onenand_ooblayout_128_ecc,
170 .ecc = onenand_ooblayout_32_64_ecc,
521 * onenand_read_ecc - return ecc status
526 int ecc, i, result = 0;
532 ecc = this->read_word(this->base + ONENAND_REG_ECC_STATUS + i*2);
533 if (likely(!ecc))
535 if (ecc & FLEXONENAND_UNCORRECTABLE_ERROR)
583 int ecc = onenand_read_ecc(this);
584 if (ecc) {
585 if (ecc & ONENAND_ECC_2BIT_ALL) {
587 __func__, ecc);
590 } else if (ecc & ONENAND_ECC_1BIT_ALL) {
592 __func__, ecc);
1203 /* return max bitflips per ecc step; ONENANDs correct 1 bit only */
1332 /* return max bitflips per ecc step; ONENANDs correct 1 bit only */
1490 unsigned int interrupt, ctrl, ecc, addr1, addr8;
1506 ecc = onenand_read_ecc(this);
1507 if (ecc & ONENAND_ECC_2BIT_ALL) {
1508 printk(KERN_DEBUG "%s: ecc 0x%04x ctrl 0x%04x "
1510 __func__, ecc, ctrl, interrupt, addr1, addr8);