Home
last modified time | relevance | path

Searched refs:oobretlen (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/mtd/tests/
Doobtest.c69 ops.oobretlen = 0; in write_eraseblock()
74 if (err || ops.oobretlen != use_len) { in write_eraseblock()
179 ops.oobretlen = 0; in verify_eraseblock()
187 if (err || ops.oobretlen != use_len) { in verify_eraseblock()
216 ops.oobretlen = 0; in verify_eraseblock()
224 if (err || ops.oobretlen != mtd->oobavail) { in verify_eraseblock()
276 ops.oobretlen = 0; in verify_eraseblock_in_one_go()
286 if (err || ops.oobretlen != len) { in verify_eraseblock_in_one_go()
500 ops.oobretlen = 0; in mtd_oobtest_init()
519 ops.oobretlen = 0; in mtd_oobtest_init()
[all …]
Dreadtest.c56 ops.oobretlen = 0; in read_eraseblock_by_page()
62 ops.oobretlen != mtd->oobsize) { in read_eraseblock_by_page()
Dnandbiterrs.c111 ops.oobretlen = 0; in rewrite_page()
/linux-6.1.9/drivers/mtd/
Dmtdconcat.c266 ops->retlen = ops->oobretlen = 0; in concat_read_oob()
282 ops->oobretlen += devops.oobretlen; in concat_read_oob()
305 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_read_oob()
308 devops.oobbuf += ops->oobretlen; in concat_read_oob()
326 ops->retlen = ops->oobretlen = 0; in concat_write_oob()
342 ops->oobretlen += devops.oobretlen; in concat_write_oob()
353 devops.ooblen = ops->ooblen - ops->oobretlen; in concat_write_oob()
356 devops.oobbuf += devops.oobretlen; in concat_write_oob()
Dmtdchar.c372 if (ops.oobretlen > 0xFFFFFFFFU) in mtdchar_writeoob()
374 retlen = ops.oobretlen; in mtdchar_writeoob()
409 if (put_user(ops.oobretlen, retp)) in mtdchar_readoob()
411 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
412 ops.oobretlen)) in mtdchar_readoob()
681 req.ooblen -= ops.oobretlen; in mtdchar_write_ioctl()
682 usr_oob += ops.oobretlen; in mtdchar_write_ioctl()
783 copy_to_user(usr_oob, ops.oobbuf, ops.oobretlen)) { in mtdchar_read_ioctl()
792 req.ooblen -= ops.oobretlen; in mtdchar_read_ioctl()
793 usr_oob += ops.oobretlen; in mtdchar_read_ioctl()
Dmtdcore.c1598 while (ops->retlen < ops->len || ops->oobretlen < ops->ooblen) { in mtd_io_emulated_slc()
1613 adjops.ooblen = ops->ooblen - ops->oobretlen; in mtd_io_emulated_slc()
1630 ops->oobretlen += adjops.oobretlen; in mtd_io_emulated_slc()
1632 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1647 ops->retlen = ops->oobretlen = 0; in mtd_read_oob()
1691 ops->retlen = ops->oobretlen = 0; in mtd_write_oob()
Dnftlcore.c137 *retlen = ops.oobretlen; in nftl_read_oob()
158 *retlen = ops.oobretlen; in nftl_write_oob()
Dmtdswap.c311 if (ops->oobretlen < ops->ooblen) { in mtdswap_read_oob()
314 ops->oobretlen, ops->ooblen, from); in mtdswap_read_oob()
401 if (ops.oobretlen != ops.ooblen) { in mtdswap_write_marker()
404 offset, ops.oobretlen, ops.ooblen); in mtdswap_write_marker()
Dssfdc.c176 if (ret < 0 || ops.oobretlen != OOB_SIZE) in read_raw_oob()
Dinftlcore.c149 *retlen = ops.oobretlen; in inftl_read_oob()
169 *retlen = ops.oobretlen; in inftl_write_oob()
Dsm_ftl.c296 WARN_ON(ops.oobretlen != SM_OOB_SIZE); in sm_read_sector()
360 WARN_ON(ops.oobretlen != SM_OOB_SIZE); in sm_write_sector()
/linux-6.1.9/fs/jffs2/
Dwbuf.c1043 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_oob_empty()
1047 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_oob_empty()
1049 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_oob_empty()
1085 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_check_nand_cleanmarker()
1089 if ((ret && !mtd_is_bitflip(ret)) || ops.oobretlen != ops.ooblen) { in jffs2_check_nand_cleanmarker()
1091 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_check_nand_cleanmarker()
1110 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in jffs2_write_nand_cleanmarker()
1114 if (ret || ops.oobretlen != ops.ooblen) { in jffs2_write_nand_cleanmarker()
1116 jeb->offset, ops.ooblen, ops.oobretlen, ret); in jffs2_write_nand_cleanmarker()
/linux-6.1.9/drivers/mtd/nand/onenand/
Donenand_base.c1139 ops->oobretlen = 0; in onenand_mlc_read_ops_nolock()
1195 ops->oobretlen = oobread; in onenand_mlc_read_ops_nolock()
1240 ops->oobretlen = 0; in onenand_read_ops_nolock()
1324 ops->oobretlen = oobread; in onenand_read_ops_nolock()
1361 ops->oobretlen = 0; in onenand_read_oob_nolock()
1420 ops->oobretlen = read; in onenand_read_oob_nolock()
1551 ops->oobretlen = 0; in onenand_bbt_read_oob()
1602 ops->oobretlen = read; in onenand_bbt_read_oob()
1816 ops->oobretlen = 0; in onenand_write_ops_nolock()
1964 ops->oobretlen = oobwritten; in onenand_write_ops_nolock()
[all …]
Donenand_bbt.c86 ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0; in create_bbt()
/linux-6.1.9/drivers/mtd/nand/raw/
Dsm_common.c119 if (ret < 0 || ops.oobretlen != SM_OOB_SIZE) { in sm_block_markbad()
Dnand_base.c485 ops->oobretlen = ops->ooblen; in nand_do_write_oob()
3560 ops->oobretlen = ops->ooblen - oobreadlen; in nand_do_read_ops()
3796 ops->oobretlen = ops->ooblen - readlen; in nand_do_read_oob()
4373 ops->oobretlen = ops->ooblen; in nand_do_write_ops()
Dnand_bbt.c838 if (res < 0 || ops.oobretlen != ops.ooblen) in write_bbt()
/linux-6.1.9/drivers/mtd/devices/
Ddocg3.c894 ops->oobretlen = 0; in doc_read_oob()
961 ops->oobretlen += nboob; in doc_read_oob()
1359 ops->oobretlen = 8; in doc_backup_oob()
1362 ops->oobretlen = DOC_LAYOUT_OOB_SIZE; in doc_backup_oob()
1424 ops->oobretlen = 0; in doc_write_oob()
1453 ops->oobretlen += oobdelta; in doc_write_oob()
/linux-6.1.9/drivers/mtd/parsers/
Dsharpslpart.c108 if (ret != 0 || mtd->oobsize != ops.oobretlen) in sharpsl_nand_read_oob()
/linux-6.1.9/drivers/mtd/nand/spi/
Dcore.c671 ops->oobretlen += iter.req.ooblen; in spinand_mtd_read()
716 ops->oobretlen += iter.req.ooblen; in spinand_mtd_write()
/linux-6.1.9/include/linux/mtd/
Dmtd.h75 size_t oobretlen; member