Lines Matching refs:ooblen
872 size_t len, ooblen, nbdata, nboob; in doc_read_oob() local
881 ooblen = ops->ooblen; in doc_read_oob()
883 ooblen = 0; in doc_read_oob()
889 from, ops->mode, buf, len, oobbuf, ooblen); in doc_read_oob()
890 if (ooblen % DOC_LAYOUT_OOB_SIZE) in doc_read_oob()
898 while (ret >= 0 && (len > 0 || ooblen > 0)) { in doc_read_oob()
902 nboob = min_t(size_t, ooblen, (size_t)DOC_LAYOUT_OOB_SIZE); in doc_read_oob()
963 ooblen -= nboob; in doc_read_oob()
1339 int ooblen = ops->ooblen, autoecc; in doc_backup_oob() local
1341 if (ooblen != DOC_LAYOUT_OOB_SIZE) in doc_backup_oob()
1381 size_t len, ooblen; in doc_write_oob() local
1389 ooblen = ops->ooblen; in doc_write_oob()
1391 ooblen = 0; in doc_write_oob()
1397 ofs, ops->mode, buf, len, oobbuf, ooblen); in doc_write_oob()
1409 if ((len % DOC_LAYOUT_PAGE_SIZE) || (ooblen % oobdelta) || in doc_write_oob()
1412 if (len && ooblen && in doc_write_oob()
1413 (len / DOC_LAYOUT_PAGE_SIZE) != (ooblen / oobdelta)) in doc_write_oob()
1419 if (len == 0 && ooblen == 0) in doc_write_oob()
1421 if (len == 0 && ooblen > 0) in doc_write_oob()
1433 else if (ooblen > 0 && ops->mode == MTD_OPS_AUTO_OOB) in doc_write_oob()
1435 else if (ooblen > 0) in doc_write_oob()
1442 if (ooblen) { in doc_write_oob()
1444 ooblen -= oobdelta; in doc_write_oob()