DOC_LAYOUT_OOB_SIZE
doc_write_page_putbytes(docg3, DOC_LAYOUT_OOB_SIZE, oob);
if (ooblen != DOC_LAYOUT_OOB_SIZE)
memcpy(docg3->oob_write_buf, ops->oobbuf, DOC_LAYOUT_OOB_SIZE);
ops->oobretlen = DOC_LAYOUT_OOB_SIZE;
u8 oob[DOC_LAYOUT_OOB_SIZE];
memcpy(oob, docg3->oob_write_buf, DOC_LAYOUT_OOB_SIZE);
memcpy(oob, oobbuf, DOC_LAYOUT_OOB_SIZE);
mtd->oobsize = DOC_LAYOUT_OOB_SIZE;
if (ooblen % DOC_LAYOUT_OOB_SIZE)
nboob = min_t(size_t, ooblen, (size_t)DOC_LAYOUT_OOB_SIZE);
doc_read_page_getbytes(docg3, DOC_LAYOUT_OOB_SIZE - nboob,
if (nboob >= DOC_LAYOUT_OOB_SIZE) {
u8 oob_write_buf[DOC_LAYOUT_OOB_SIZE];
(DOC_LAYOUT_PAGE_SIZE + DOC_LAYOUT_OOB_SIZE)