Lines Matching refs:ecc
200 if (chip->ecc.mode == NAND_ECC_NONE) { in hisi_nfc_dma_transfer()
496 if (chip->ecc.mode == NAND_ECC_HW) in hisi_nfc_cmdfunc()
558 switch (chip->ecc.strength) { in hisi_nand_read_page_hwecc()
662 chip->ecc.size = size; in hisi_nfc_ecc_probe()
663 chip->ecc.strength = strength; in hisi_nfc_ecc_probe()
665 chip->ecc.read_page = hisi_nand_read_page_hwecc; in hisi_nfc_ecc_probe()
666 chip->ecc.read_oob = hisi_nand_read_oob; in hisi_nfc_ecc_probe()
667 chip->ecc.write_page = hisi_nand_write_page_hwecc; in hisi_nfc_ecc_probe()
669 switch (chip->ecc.strength) { in hisi_nfc_ecc_probe()
673 chip->ecc.layout = &nand_ecc_2K_16bits; in hisi_nfc_ecc_probe()
680 dev_err(dev, "not support strength: %d\n", chip->ecc.strength); in hisi_nfc_ecc_probe()
753 chip->ecc.mode = of_get_nand_ecc_mode(np); in hisi_nfc_probe()
799 if (chip->ecc.mode == NAND_ECC_HW) in hisi_nfc_probe()