Lines Matching refs:ecc_size
1517 int ecc_size = chip->ecc.size; in cadence_nand_write_page_raw() local
1541 pos = i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw()
1542 len = ecc_size; in cadence_nand_write_page_raw()
1551 if (len < ecc_size) { in cadence_nand_write_page_raw()
1552 len = ecc_size - len; in cadence_nand_write_page_raw()
1576 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_write_page_raw()
1710 int ecc_size = chip->ecc.size; in cadence_nand_read_page_raw() local
1742 pos = i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw()
1743 len = ecc_size; in cadence_nand_read_page_raw()
1752 if (len < ecc_size) { in cadence_nand_read_page_raw()
1753 len = ecc_size - len; in cadence_nand_read_page_raw()
1778 pos = ecc_size + i * (ecc_size + ecc_bytes); in cadence_nand_read_page_raw()
2642 u32 ecc_size; in cadence_nand_attach_chip() local
2678 ecc_size = cdns_chip->sector_count * chip->ecc.bytes; in cadence_nand_attach_chip()
2680 cdns_chip->avail_oob_size = mtd->oobsize - ecc_size; in cadence_nand_attach_chip()
2685 if ((cdns_chip->avail_oob_size + cdns_chip->bbm_len + ecc_size) in cadence_nand_attach_chip()