Lines Matching refs:oobbuf
884 u8 *oobbuf = ops->oobbuf; in doc_read_oob() local
894 if (oobbuf) in doc_read_oob()
899 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) in doc_read_oob()
900 oobbuf += ops->ooboffs; in doc_read_oob()
903 from, ops->mode, buf, len, oobbuf, ooblen); in doc_read_oob()
935 ret = doc_read_page_getbytes(docg3, nboob, oobbuf, 0, 0); in doc_read_oob()
945 doc_dbg("OOB - INFO: %*phC\n", 7, oobbuf); in doc_read_oob()
946 doc_dbg("OOB - HAMMING: %02x\n", oobbuf[7]); in doc_read_oob()
947 doc_dbg("OOB - BCH_ECC: %*phC\n", 7, oobbuf + 8); in doc_read_oob()
948 doc_dbg("OOB - UNUSED: %02x\n", oobbuf[15]); in doc_read_oob()
978 oobbuf += nboob; in doc_read_oob()
1409 doc_fill_autooob(docg3->oob_write_buf, ops->oobbuf); in doc_backup_oob()
1412 memcpy(docg3->oob_write_buf, ops->oobbuf, DOC_LAYOUT_OOB_SIZE); in doc_backup_oob()
1438 u8 *oobbuf = ops->oobbuf; in doc_write_oob() local
1447 if (oobbuf) in doc_write_oob()
1452 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) in doc_write_oob()
1453 oobbuf += ops->ooboffs; in doc_write_oob()
1456 ofs, ops->mode, buf, len, oobbuf, ooblen); in doc_write_oob()
1495 doc_fill_autooob(oob, oobbuf); in doc_write_oob()
1497 memcpy(oob, oobbuf, DOC_LAYOUT_OOB_SIZE); in doc_write_oob()
1504 oobbuf += oobdelta; in doc_write_oob()
1540 ops.oobbuf = NULL; in doc_write()