Lines Matching refs:ecc
920 if (nand_chip->ecc.mode == NAND_ECC_HW && mtd->writesize) in preset_v1()
956 if (nand_chip->ecc.mode == NAND_ECC_HW) in preset_v2()
1030 if (chip->ecc.mode == NAND_ECC_HW) in preset_v3()
1510 this->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_probe()
1514 this->ecc.size = 512; in mxcnd_probe()
1515 this->ecc.layout = host->devtype_data->ecclayout_512; in mxcnd_probe()
1518 this->ecc.calculate = mxc_nand_calculate_ecc; in mxcnd_probe()
1519 this->ecc.hwctl = mxc_nand_enable_hwecc; in mxcnd_probe()
1520 this->ecc.correct = host->devtype_data->correct_data; in mxcnd_probe()
1521 this->ecc.mode = NAND_ECC_HW; in mxcnd_probe()
1523 this->ecc.mode = NAND_ECC_SOFT; in mxcnd_probe()
1589 this->ecc.layout = host->devtype_data->ecclayout_2k; in mxcnd_probe()
1591 this->ecc.layout = host->devtype_data->ecclayout_4k; in mxcnd_probe()
1593 if (this->ecc.mode == NAND_ECC_HW) { in mxcnd_probe()
1595 this->ecc.strength = 1; in mxcnd_probe()
1597 this->ecc.strength = (host->eccsize == 4) ? 4 : 8; in mxcnd_probe()