/drivers/mtd/tests/ |
D | oobtest.c | 72 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock() 182 ops.oobbuf = readbuf; in verify_eraseblock() 219 ops.oobbuf = readbuf; in verify_eraseblock() 279 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go() 503 ops.oobbuf = writebuf; in mtd_oobtest_init() 523 ops.oobbuf = readbuf; in mtd_oobtest_init() 550 ops.oobbuf = writebuf; in mtd_oobtest_init() 570 ops.oobbuf = readbuf; in mtd_oobtest_init() 597 ops.oobbuf = writebuf; in mtd_oobtest_init() 617 ops.oobbuf = readbuf; in mtd_oobtest_init() [all …]
|
D | readtest.c | 40 void *oobbuf = iobuf1; in read_eraseblock_by_page() local 59 ops.oobbuf = oobbuf; in read_eraseblock_by_page() 70 oobbuf += mtd->oobsize; in read_eraseblock_by_page()
|
D | nandbiterrs.c | 114 ops.oobbuf = NULL; in rewrite_page()
|
/drivers/mtd/ |
D | mtdchar.c | 181 ops.oobbuf = NULL; in mtdchar_read() 275 ops.oobbuf = NULL; in mtdchar_write() 373 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob() 374 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob() 375 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob() 386 kfree(ops.oobbuf); in mtdchar_writeoob() 410 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob() 411 if (!ops.oobbuf) in mtdchar_readoob() 419 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob() 423 kfree(ops.oobbuf); in mtdchar_readoob() [all …]
|
D | mtdcore.c | 1284 if (!ops->oobbuf) in mtd_check_oob_ops() 1392 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc() 1416 if (!master->_read_oob && (!master->_read || ops->oobbuf)) in mtd_read_oob() 1458 if (!master->_write_oob && (!master->_write || ops->oobbuf)) in mtd_write_oob() 1622 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument 1637 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes() 1665 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument 1680 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes() 1737 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_eccbytes() argument 1739 return mtd_ooblayout_get_bytes(mtd, eccbuf, oobbuf, start, nbytes, in mtd_ooblayout_get_eccbytes() [all …]
|
D | mtdconcat.c | 304 if (devops.oobbuf) { in concat_read_oob() 308 devops.oobbuf += ops->oobretlen; in concat_read_oob() 352 if (devops.oobbuf) { in concat_write_oob() 356 devops.oobbuf += devops.oobretlen; in concat_write_oob()
|
D | nftlcore.c | 133 ops.oobbuf = buf; in nftl_read_oob() 154 ops.oobbuf = buf; in nftl_write_oob() 177 ops.oobbuf = oob; in nftl_write()
|
D | inftlcore.c | 145 ops.oobbuf = buf; in inftl_read_oob() 165 ops.oobbuf = buf; in inftl_write_oob() 185 ops.oobbuf = oob; in inftl_write()
|
D | ssfdc.c | 172 ops.oobbuf = buf; in read_raw_oob()
|
D | mtdswap.c | 335 ops.oobbuf = d->oob_buf; in mtdswap_read_markers() 376 ops.oobbuf = (uint8_t *)&n; in mtdswap_write_marker() 890 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes()
|
D | sm_ftl.c | 262 ops.oobbuf = (void *)oob; in sm_read_sector() 344 ops.oobbuf = (void *)oob; in sm_write_sector()
|
/drivers/mtd/nand/onenand/ |
D | onenand_base.c | 1122 u_char *oobbuf = ops->oobbuf; in onenand_mlc_read_ops_nolock() local 1168 if (oobbuf) { in onenand_mlc_read_ops_nolock() 1173 onenand_transfer_auto_oob(mtd, oobbuf, oobcolumn, thisooblen); in onenand_mlc_read_ops_nolock() 1175 this->read_bufferram(mtd, ONENAND_SPARERAM, oobbuf, oobcolumn, thisooblen); in onenand_mlc_read_ops_nolock() 1177 oobbuf += thisooblen; in onenand_mlc_read_ops_nolock() 1223 u_char *oobbuf = ops->oobbuf; in onenand_read_ops_nolock() local 1286 if (oobbuf) { in onenand_read_ops_nolock() 1291 onenand_transfer_auto_oob(mtd, oobbuf, oobcolumn, thisooblen); in onenand_read_ops_nolock() 1293 this->read_bufferram(mtd, ONENAND_SPARERAM, oobbuf, oobcolumn, thisooblen); in onenand_read_ops_nolock() 1295 oobbuf += thisooblen; in onenand_read_ops_nolock() [all …]
|
D | onenand_bbt.c | 85 ops.oobbuf = buf; in create_bbt()
|
/drivers/mtd/devices/ |
D | docg3.c | 870 u8 *oobbuf = ops->oobbuf; in doc_read_oob() local 880 if (oobbuf) in doc_read_oob() 885 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) in doc_read_oob() 886 oobbuf += ops->ooboffs; in doc_read_oob() 889 from, ops->mode, buf, len, oobbuf, ooblen); in doc_read_oob() 918 ret = doc_read_page_getbytes(docg3, nboob, oobbuf, 0, 0); in doc_read_oob() 928 doc_dbg("OOB - INFO: %*phC\n", 7, oobbuf); in doc_read_oob() 929 doc_dbg("OOB - HAMMING: %02x\n", oobbuf[7]); in doc_read_oob() 930 doc_dbg("OOB - BCH_ECC: %*phC\n", 7, oobbuf + 8); in doc_read_oob() 931 doc_dbg("OOB - UNUSED: %02x\n", oobbuf[15]); in doc_read_oob() [all …]
|
/drivers/mtd/nand/spi/ |
D | core.c | 233 buf = spinand->oobbuf; in spinand_read_from_cache_op() 259 mtd_ooblayout_get_databytes(mtd, req->oobbuf.in, in spinand_read_from_cache_op() 260 spinand->oobbuf, in spinand_read_from_cache_op() 264 memcpy(req->oobbuf.in, spinand->oobbuf + req->ooboffs, in spinand_read_from_cache_op() 297 mtd_ooblayout_set_databytes(mtd, req->oobbuf.out, in spinand_write_to_cache_op() 298 spinand->oobbuf, in spinand_write_to_cache_op() 302 memcpy(spinand->oobbuf + req->ooboffs, req->oobbuf.out, in spinand_write_to_cache_op() 578 .oobbuf.in = marker, in spinand_isbad() 613 .oobbuf.out = marker, in spinand_markbad() 1024 spinand->oobbuf = spinand->databuf + nanddev_page_size(nand); in spinand_init()
|
/drivers/mtd/nand/raw/ |
D | lpc32xx_mlc.c | 440 uint8_t *oobbuf = chip->oob_poi; in lpc32xx_read_page() local 488 *((uint32_t *)(oobbuf)) = in lpc32xx_read_page() 490 oobbuf += 4; in lpc32xx_read_page() 506 const uint8_t *oobbuf = chip->oob_poi; in lpc32xx_write_page_lowlevel() local 535 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel() 536 oobbuf += 4; in lpc32xx_write_page_lowlevel() 537 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel() 538 oobbuf += 12; in lpc32xx_write_page_lowlevel()
|
D | meson_nand.c | 355 u8 *buf, u8 *oobbuf) in meson_nfc_get_data_oob() argument 368 memcpy(oobbuf, osrc, oob_len); in meson_nfc_get_data_oob() 369 oobbuf += oob_len; in meson_nfc_get_data_oob() 374 const u8 *buf, u8 *oobbuf) in meson_nfc_set_data_oob() argument 387 memcpy(osrc, oobbuf, oob_len); in meson_nfc_set_data_oob() 388 oobbuf += oob_len; in meson_nfc_set_data_oob()
|
D | sm_common.c | 114 ops.oobbuf = (void *)&oob; in sm_block_markbad()
|
D | nand_bbt.c | 326 ops.oobbuf = buf + ops.len; in scan_read_oob() 363 ops.oobbuf = oob; in scan_write_bbt() 423 ops.oobbuf = buf; in scan_block_fast() 803 ops.oobbuf = &buf[len]; in write_bbt()
|
D | nand_base.c | 430 nand_fill_oob(chip, ops->oobbuf, ops->ooblen, ops); in nand_do_write_oob() 464 ops.oobbuf = buf; in nand_default_block_markbad() 3140 oob = ops->oobbuf; in nand_do_read_ops() 3456 uint8_t *buf = ops->oobbuf; in nand_do_read_oob() 3965 uint8_t *oob = ops->oobbuf; in nand_do_write_ops()
|
/drivers/mtd/parsers/ |
D | sharpslpart.c | 105 ops.oobbuf = buf; in sharpsl_nand_read_oob()
|