Home
last modified time | relevance | path

Searched refs:ooblen (Results 1 – 17 of 17) sorted by relevance

/drivers/mtd/tests/
Doobtest.c80 ops.ooblen = use_len; in write_eraseblock()
190 ops.ooblen = use_len; in verify_eraseblock()
224 ops.ooblen = mtd->ecclayout->oobavail; in verify_eraseblock()
281 ops.ooblen = len; in verify_eraseblock_in_one_go()
502 ops.ooblen = 1; in mtd_oobtest_init()
522 ops.ooblen = 1; in mtd_oobtest_init()
546 ops.ooblen = mtd->ecclayout->oobavail + 1; in mtd_oobtest_init()
566 ops.ooblen = mtd->ecclayout->oobavail + 1; in mtd_oobtest_init()
590 ops.ooblen = mtd->ecclayout->oobavail; in mtd_oobtest_init()
610 ops.ooblen = mtd->ecclayout->oobavail; in mtd_oobtest_init()
[all …]
Dreadtest.c67 ops.ooblen = mtd->oobsize; in read_eraseblock_by_page()
Dnandbiterrs.c123 ops.ooblen = 0; in rewrite_page()
/drivers/mtd/devices/
Ddocg3.c864 size_t len, ooblen, nbdata, nboob; in doc_read_oob() local
873 ooblen = ops->ooblen; in doc_read_oob()
875 ooblen = 0; in doc_read_oob()
881 from, ops->mode, buf, len, oobbuf, ooblen); in doc_read_oob()
882 if (ooblen % DOC_LAYOUT_OOB_SIZE) in doc_read_oob()
893 while (ret >= 0 && (len > 0 || ooblen > 0)) { in doc_read_oob()
897 nboob = min_t(size_t, ooblen, (size_t)DOC_LAYOUT_OOB_SIZE); in doc_read_oob()
958 ooblen -= nboob; in doc_read_oob()
1376 int ooblen = ops->ooblen, autoecc; in doc_backup_oob() local
1378 if (ooblen != DOC_LAYOUT_OOB_SIZE) in doc_backup_oob()
[all …]
/drivers/mtd/onenand/
Donenand_bbt.c64 size_t readlen, ooblen; in create_bbt() local
73 scanlen = ooblen = 0; in create_bbt()
85 ops.ooblen = readlen; in create_bbt()
Donenand_base.c1116 size_t ooblen = ops->ooblen; in onenand_mlc_read_ops_nolock() local
1170 thisooblen = min_t(int, thisooblen, ooblen - oobread); in onenand_mlc_read_ops_nolock()
1221 size_t ooblen = ops->ooblen; in onenand_read_ops_nolock() local
1292 thisooblen = min_t(int, thisooblen, ooblen - oobread); in onenand_read_ops_nolock()
1354 size_t len = ops->ooblen; in onenand_read_oob_nolock()
1460 .ooblen = 0, in onenand_read()
1577 size_t len = ops->ooblen; in onenand_bbt_read_oob()
1865 size_t ooblen = ops->ooblen; in onenand_write_ops_nolock() local
1904 thisooblen = min_t(int, oobsize - oobcolumn, ooblen - oobwritten); in onenand_write_ops_nolock()
2053 size_t len = ops->ooblen; in onenand_write_oob_nolock()
[all …]
/drivers/mtd/
Dmtdchar.c386 ops.ooblen = length; in mtdchar_writeoob()
392 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_writeoob()
426 ops.ooblen = length; in mtdchar_readoob()
432 if (ops.ooboffs && ops.ooblen > (mtd->oobsize - ops.ooboffs)) in mtdchar_readoob()
550 !access_ok(VERIFY_READ, usr_oob, req.ooblen)) in mtdchar_write_ioctl()
558 ops.ooblen = (size_t)req.ooblen; in mtdchar_write_ioctl()
570 ops.oobbuf = memdup_user(usr_oob, ops.ooblen); in mtdchar_write_ioctl()
Dmtdconcat.c278 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_read_oob()
279 if (!devops.ooblen) in concat_read_oob()
326 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_write_oob()
327 if (!devops.ooblen) in concat_write_oob()
Dmtdswap.c326 if (ops->oobretlen < ops->ooblen) { in mtdswap_read_oob()
329 ops->oobretlen, ops->ooblen, from); in mtdswap_read_oob()
349 ops.ooblen = 2 * d->mtd->ecclayout->oobavail; in mtdswap_read_markers()
398 ops.ooblen = MTDSWAP_OOBSIZE; in mtdswap_write_marker()
402 ops.ooblen = sizeof(n.magic); in mtdswap_write_marker()
416 if (ops.oobretlen != ops.ooblen) { in mtdswap_write_marker()
419 offset, ops.oobretlen, ops.ooblen); in mtdswap_write_marker()
936 ops.ooblen = mtd->ecclayout->oobavail; in mtdswap_eblk_passes()
Dnftlcore.c145 ops.ooblen = len; in nftl_read_oob()
166 ops.ooblen = len; in nftl_write_oob()
189 ops.ooblen = mtd->oobsize; in nftl_write()
Dinftlcore.c157 ops.ooblen = len; in inftl_read_oob()
177 ops.ooblen = len; in inftl_write_oob()
197 ops.ooblen = mtd->oobsize; in inftl_write()
Dssfdc.c174 ops.ooblen = OOB_SIZE; in read_raw_oob()
Dsm_ftl.c258 ops.ooblen = SM_OOB_SIZE; in sm_read_sector()
340 ops.ooblen = SM_OOB_SIZE; in sm_write_sector()
Dmtdpart.c132 if (ops->ooboffs + ops->ooblen > pages * len) in part_read_oob()
/drivers/mtd/nand/
Dnand_bbt.c322 ops.ooblen = mtd->oobsize; in scan_read_oob()
361 ops.ooblen = mtd->oobsize; in scan_write_bbt()
419 ops.ooblen = mtd->oobsize; in scan_block_fast()
632 ops.ooblen = mtd->oobsize; in write_bbt()
731 ops.ooblen = (len >> this->page_shift) * mtd->oobsize; in write_bbt()
734 if (res < 0 || ops.oobretlen != ops.ooblen) in write_bbt()
Dnand_base.c393 ops.len = ops.ooblen = 2; in nand_default_block_markbad()
395 ops.len = ops.ooblen = 1; in nand_default_block_markbad()
1691 uint32_t oobreadlen = ops->ooblen; in nand_do_read_ops()
1849 ops->oobretlen = ops->ooblen - oobreadlen; in nand_do_read_ops()
2035 int readlen = ops->ooblen; in nand_do_read_oob()
2111 ops->oobretlen = ops->ooblen - readlen; in nand_do_read_oob()
2546 uint32_t oobwritelen = ops->ooblen; in nand_do_write_ops()
2587 if (oob && ops->ooboffs && (ops->ooboffs + ops->ooblen > oobmaxlen)) { in nand_do_write_ops()
2652 ops->oobretlen = ops->ooblen; in nand_do_write_ops()
2739 __func__, (unsigned int)to, (int)ops->ooblen); in nand_do_write_oob()
[all …]
Dsm_common.c54 ops.ooblen = mtd->oobsize; in sm_block_markbad()