Lines Matching refs:ecc
564 int flips_threshold = nfc->chip.ecc.strength / 2; in vf610_nfc_correct_data()
580 return nand_check_erased_ecc_chunk(dat, nfc->chip.ecc.size, oob, in vf610_nfc_correct_data()
588 int eccsize = chip->ecc.size; in vf610_nfc_read_page()
649 if (nfc->chip.ecc.mode == NAND_ECC_HW) { in vf610_nfc_init_controller()
766 if (chip->ecc.mode == NAND_ECC_HW) { in vf610_nfc_probe()
773 if (chip->ecc.size != mtd->writesize) { in vf610_nfc_probe()
783 if (chip->ecc.strength == 32) { in vf610_nfc_probe()
785 chip->ecc.bytes = 60; in vf610_nfc_probe()
786 chip->ecc.layout = &vf610_nfc_ecc60; in vf610_nfc_probe()
787 } else if (chip->ecc.strength == 24) { in vf610_nfc_probe()
789 chip->ecc.bytes = 45; in vf610_nfc_probe()
790 chip->ecc.layout = &vf610_nfc_ecc45; in vf610_nfc_probe()
798 mtd->ecclayout = chip->ecc.layout; in vf610_nfc_probe()
799 chip->ecc.read_page = vf610_nfc_read_page; in vf610_nfc_probe()
800 chip->ecc.write_page = vf610_nfc_write_page; in vf610_nfc_probe()
802 chip->ecc.size = PAGE_2K; in vf610_nfc_probe()