Lines Matching full:oob

550  * 1. Both DATA and OOB need to be checked for number of 0. The
551 * top-level API can be called with only data buf or OOB buf so use
552 * chip->data_buf if data buf is null and chip->oob_poi if oob buf
555 * 3. For each CW, check the number of 0 in cw_data and usable OOB bytes.
790 dev_err(nandc->dev, "failure to read page/oob\n"); in read_page_ecc()
798 * a helper that copies the last step/codeword of a page (containing free oob)
1012 * to oob for the first n - 1 codewords since these oob regions in qcom_nandc_write_page()
1015 * write to the free oob area. in qcom_nandc_write_page()
1115 * the NAND controller cannot write only data or only OOB within a codeword
1116 * since ECC is calculated for the combined codeword. So update the OOB from
1125 u8 *oob = chip->oob_poi; in qcom_nandc_write_oob() local
1135 /* calculate the data and oob size for the last codeword/step */ in qcom_nandc_write_oob()
1140 /* override new oob content to last codeword */ in qcom_nandc_write_oob()
1141 mtd_ooblayout_get_databytes(mtd, nandc->data_buffer + data_size, oob, in qcom_nandc_write_oob()
1154 dev_err(nandc->dev, "failure to write oob\n"); in qcom_nandc_write_oob()
1174 * portion of oob. we just want the first few bytes from this codeword in qcom_nandc_block_bad()
1298 * the following OOB layout arrangement:
1306 * first n - 1 nth OOB region
1307 * OOB regions
1311 * * = FREE OOB bytes
1317 * inaccessible Bad Block byte(s) are ignored when we write to a page/oob,
1318 * and assumed as 0xffs when we read a page/oob. The ECC, unused and
1390 * Each CW has 4 available OOB bytes which will be protected with ECC in qcom_nand_attach_chip()
1450 * step. It gives us a clean representation of the oob area (even if in qcom_nand_attach_chip()