Lines Matching defs:ecc
246 struct nand_ecc_props *conf = &nand->ecc.ctx.conf;
267 /* check if bbm locates in data chunk rather than ecc chunk */
292 dev_dbg(this->dev, "Set ecc to %d and bbm in chunk %d\n",
324 "unsupported nand chip. ecc bits : %d, ecc size : %d\n",
338 "unsupported nand chip. ecc size: %d, oob size : %d\n",
372 * C : the ecc chunk size, aka the "data" above.
461 /* sanity check for the minimum ecc nand required */
470 "unsupported NAND chip, minimum ecc required %d\n",
475 /* calculate the maximum ecc platform can support*/
485 * search a supported ecc strength that makes bbm
495 /* if none of them works, keep using the minimum ecc */
496 /* nand required but changing ecc page layout */
498 /* add extra ecc for meta data */
502 /* check if oob can afford this extra ecc chunk */
534 /* calculate the number of ecc chunk behind the bbm */
610 "ecc strength: %d cannot be supported by the controller (%d)\n"
611 "try to use minimum ecc strength that NAND chip required\n",
658 * : C >= O (C is the ecc chunk size)
701 "fsl,use-minimum-ecc");
720 /* otherwise use the minimum ecc nand chip required */
721 dev_dbg(this->dev, "use minimum ecc bch geometry\n");
1129 .ecc = gpmi_ooblayout_ecc,
1572 int size = chip->ecc.size; /* ECC chunk size */
1670 dev_dbg(this->dev, "ecc write page.\n");
1747 * ecc.read_page or ecc.read_page_raw function. Thus, the fact that MTD wants an
2141 status = chip->ecc.write_page_raw(chip, buffer, 0, page);
2256 struct nand_ecc_ctrl *ecc = &chip->ecc;
2266 ecc->read_page = gpmi_ecc_read_page;
2267 ecc->write_page = gpmi_ecc_write_page;
2268 ecc->read_oob = gpmi_ecc_read_oob;
2269 ecc->write_oob = gpmi_ecc_write_oob;
2270 ecc->read_page_raw = gpmi_ecc_read_page_raw;
2271 ecc->write_page_raw = gpmi_ecc_write_page_raw;
2272 ecc->read_oob_raw = gpmi_ecc_read_oob_raw;
2273 ecc->write_oob_raw = gpmi_ecc_write_oob_raw;
2274 ecc->engine_type = NAND_ECC_ENGINE_TYPE_ON_HOST;
2275 ecc->size = bch_geo->eccn_chunk_size;
2276 ecc->strength = bch_geo->ecc_strength;
2286 ecc->read_subpage = gpmi_ecc_read_subpage;