Home
last modified time | relevance | path

Searched refs:oobbuf (Results 1 – 20 of 20) sorted by relevance

/drivers/mtd/tests/
Doobtest.c84 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock()
194 ops.oobbuf = readbuf; in verify_eraseblock()
231 ops.oobbuf = readbuf; in verify_eraseblock()
291 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go()
515 ops.oobbuf = writebuf; in mtd_oobtest_init()
535 ops.oobbuf = readbuf; in mtd_oobtest_init()
562 ops.oobbuf = writebuf; in mtd_oobtest_init()
582 ops.oobbuf = readbuf; in mtd_oobtest_init()
609 ops.oobbuf = writebuf; in mtd_oobtest_init()
629 ops.oobbuf = readbuf; in mtd_oobtest_init()
[all …]
Dreadtest.c52 void *oobbuf = iobuf1; in read_eraseblock_by_page() local
71 ops.oobbuf = oobbuf; in read_eraseblock_by_page()
82 oobbuf += mtd->oobsize; in read_eraseblock_by_page()
Dnandbiterrs.c127 ops.oobbuf = NULL; in rewrite_page()
/drivers/mtd/devices/
Ddocg3.c884 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()
[all …]
/drivers/mtd/
Dmtdchar.c191 ops.oobbuf = NULL; in mtdchar_read()
285 ops.oobbuf = NULL; in mtdchar_write()
394 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
395 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
396 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
407 kfree(ops.oobbuf); in mtdchar_writeoob()
434 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
435 if (!ops.oobbuf) in mtdchar_readoob()
443 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
447 kfree(ops.oobbuf); in mtdchar_readoob()
[all …]
Dmtdcore.c1272 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument
1287 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1315 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument
1330 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1387 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_eccbytes() argument
1389 return mtd_ooblayout_get_bytes(mtd, eccbuf, oobbuf, start, nbytes, in mtd_ooblayout_get_eccbytes()
1407 u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_set_eccbytes() argument
1409 return mtd_ooblayout_set_bytes(mtd, eccbuf, oobbuf, start, nbytes, in mtd_ooblayout_set_eccbytes()
1427 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_databytes() argument
1429 return mtd_ooblayout_get_bytes(mtd, databuf, oobbuf, start, nbytes, in mtd_ooblayout_get_databytes()
[all …]
Dmtdconcat.c277 if (devops.oobbuf) { in concat_read_oob()
281 devops.oobbuf += ops->oobretlen; in concat_read_oob()
325 if (devops.oobbuf) { in concat_write_oob()
329 devops.oobbuf += devops.oobretlen; in concat_write_oob()
Dnftlcore.c146 ops.oobbuf = buf; in nftl_read_oob()
167 ops.oobbuf = buf; in nftl_write_oob()
190 ops.oobbuf = oob; in nftl_write()
Dinftlcore.c158 ops.oobbuf = buf; in inftl_read_oob()
178 ops.oobbuf = buf; in inftl_write_oob()
198 ops.oobbuf = oob; in inftl_write()
Dssfdc.c175 ops.oobbuf = buf; in read_raw_oob()
Dmtdswap.c350 ops.oobbuf = d->oob_buf; in mtdswap_read_markers()
391 ops.oobbuf = (uint8_t *)&n; in mtdswap_write_marker()
939 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes()
Dsm_ftl.c260 ops.oobbuf = (void *)oob; in sm_read_sector()
342 ops.oobbuf = (void *)oob; in sm_write_sector()
Dmtdpart.c125 if (ops->oobbuf) { in part_read_oob()
/drivers/mtd/onenand/
Donenand_base.c1132 u_char *oobbuf = ops->oobbuf; in onenand_mlc_read_ops_nolock() local
1178 if (oobbuf) { in onenand_mlc_read_ops_nolock()
1183 onenand_transfer_auto_oob(mtd, oobbuf, oobcolumn, thisooblen); in onenand_mlc_read_ops_nolock()
1185 this->read_bufferram(mtd, ONENAND_SPARERAM, oobbuf, oobcolumn, thisooblen); in onenand_mlc_read_ops_nolock()
1187 oobbuf += thisooblen; in onenand_mlc_read_ops_nolock()
1233 u_char *oobbuf = ops->oobbuf; in onenand_read_ops_nolock() local
1296 if (oobbuf) { in onenand_read_ops_nolock()
1301 onenand_transfer_auto_oob(mtd, oobbuf, oobcolumn, thisooblen); in onenand_read_ops_nolock()
1303 this->read_bufferram(mtd, ONENAND_SPARERAM, oobbuf, oobcolumn, thisooblen); in onenand_read_ops_nolock()
1305 oobbuf += thisooblen; in onenand_read_ops_nolock()
[all …]
Donenand_bbt.c86 ops.oobbuf = buf; in create_bbt()
/drivers/mtd/nand/
Dlpc32xx_mlc.c449 uint8_t *oobbuf = chip->oob_poi; in lpc32xx_read_page() local
497 *((uint32_t *)(oobbuf)) = in lpc32xx_read_page()
499 oobbuf += 4; in lpc32xx_read_page()
515 const uint8_t *oobbuf = chip->oob_poi; in lpc32xx_write_page_lowlevel() local
542 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
543 oobbuf += 4; in lpc32xx_write_page_lowlevel()
544 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel()
545 oobbuf += 12; in lpc32xx_write_page_lowlevel()
Dsm_common.c116 ops.oobbuf = (void *)&oob; in sm_block_markbad()
Dnand_bbt.c327 ops.oobbuf = buf + ops.len; in scan_read_oob()
363 ops.oobbuf = oob; in scan_write_bbt()
420 ops.oobbuf = buf; in scan_block_fast()
801 ops.oobbuf = &buf[len]; in write_bbt()
Dnand_base.c483 ops.oobbuf = buf; in nand_default_block_markbad()
2005 oob = ops->oobbuf; in nand_do_read_ops()
2334 uint8_t *buf = ops->oobbuf; in nand_do_read_oob()
2822 uint8_t *oob = ops->oobbuf; in nand_do_write_ops()
3063 nand_fill_oob(mtd, ops->oobbuf, ops->ooblen, ops); in nand_do_write_oob()
/drivers/staging/goldfish/
Dgoldfish_nand.c154 if (ops->oobbuf) in goldfish_nand_read_oob()
156 ops->ooblen, ops->oobbuf); in goldfish_nand_read_oob()
186 if (ops->oobbuf) in goldfish_nand_write_oob()
188 ops->ooblen, ops->oobbuf); in goldfish_nand_write_oob()