Home
last modified time | relevance | path

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

/drivers/mtd/
Dmtdchar.c173 ops.oobbuf = NULL; in mtdchar_read()
267 ops.oobbuf = NULL; in mtdchar_write()
365 ops.oobbuf = memdup_user(ptr, length); in mtdchar_writeoob()
366 if (IS_ERR(ops.oobbuf)) in mtdchar_writeoob()
367 return PTR_ERR(ops.oobbuf); in mtdchar_writeoob()
378 kfree(ops.oobbuf); in mtdchar_writeoob()
402 ops.oobbuf = kmalloc(length, GFP_KERNEL); in mtdchar_readoob()
403 if (!ops.oobbuf) in mtdchar_readoob()
411 else if (ops.oobretlen && copy_to_user(ptr, ops.oobbuf, in mtdchar_readoob()
415 kfree(ops.oobbuf); in mtdchar_readoob()
[all …]
Dmtdcore.c1572 if (!ops->oobbuf) in mtd_check_oob_ops()
1680 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc()
1704 if (!master->_read_oob && (!master->_read || ops->oobbuf)) in mtd_read_oob()
1751 if (!master->_write_oob && (!master->_write || ops->oobbuf)) in mtd_write_oob()
1915 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument
1930 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1958 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument
1973 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
2030 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_eccbytes() argument
2032 return mtd_ooblayout_get_bytes(mtd, eccbuf, oobbuf, start, nbytes, in mtd_ooblayout_get_eccbytes()
[all …]
Dmtdconcat.c304 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()
Dnftlcore.c133 ops.oobbuf = buf; in nftl_read_oob()
154 ops.oobbuf = buf; in nftl_write_oob()
177 ops.oobbuf = oob; in nftl_write()
Dinftlcore.c145 ops.oobbuf = buf; in inftl_read_oob()
165 ops.oobbuf = buf; in inftl_write_oob()
185 ops.oobbuf = oob; in inftl_write()
Dssfdc.c172 ops.oobbuf = buf; in read_raw_oob()
Dmtdswap.c335 ops.oobbuf = d->oob_buf; in mtdswap_read_markers()
376 ops.oobbuf = (uint8_t *)&n; in mtdswap_write_marker()
889 ops.oobbuf = d->oob_buf; in mtdswap_eblk_passes()
Dsm_ftl.c261 ops.oobbuf = (void *)oob; in sm_read_sector()
345 ops.oobbuf = (void *)oob; in sm_write_sector()
/drivers/mtd/tests/
Doobtest.c72 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()
522 ops.oobbuf = readbuf; in mtd_oobtest_init()
548 ops.oobbuf = writebuf; in mtd_oobtest_init()
567 ops.oobbuf = readbuf; in mtd_oobtest_init()
593 ops.oobbuf = writebuf; in mtd_oobtest_init()
612 ops.oobbuf = readbuf; in mtd_oobtest_init()
[all …]
Dreadtest.c40 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()
Dnandbiterrs.c114 ops.oobbuf = NULL; in rewrite_page()
/drivers/mtd/nand/onenand/
Donenand_base.c1122 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 …]
Donenand_bbt.c85 ops.oobbuf = buf; in create_bbt()
/drivers/mtd/devices/
Ddocg3.c870 u8 *oobbuf = ops->oobbuf; in doc_read_oob() local
881 if (oobbuf) in doc_read_oob()
886 if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) in doc_read_oob()
887 oobbuf += ops->ooboffs; in doc_read_oob()
890 from, ops->mode, buf, len, oobbuf, ooblen); in doc_read_oob()
920 ret = doc_read_page_getbytes(docg3, nboob, oobbuf, 0, 0); in doc_read_oob()
930 doc_dbg("OOB - INFO: %*phC\n", 7, oobbuf); in doc_read_oob()
931 doc_dbg("OOB - HAMMING: %02x\n", oobbuf[7]); in doc_read_oob()
932 doc_dbg("OOB - BCH_ECC: %*phC\n", 7, oobbuf + 8); in doc_read_oob()
933 doc_dbg("OOB - UNUSED: %02x\n", oobbuf[15]); in doc_read_oob()
[all …]
/drivers/mtd/nand/spi/
Dcore.c291 memset(spinand->oobbuf, 0xff, nanddev_per_page_oobsize(nand)); in spinand_ondie_ecc_prepare_io_req()
379 buf = spinand->oobbuf; in spinand_read_from_cache_op()
408 mtd_ooblayout_get_databytes(mtd, req->oobbuf.in, in spinand_read_from_cache_op()
409 spinand->oobbuf, in spinand_read_from_cache_op()
413 memcpy(req->oobbuf.in, spinand->oobbuf + req->ooboffs, in spinand_read_from_cache_op()
449 mtd_ooblayout_set_databytes(mtd, req->oobbuf.out, in spinand_write_to_cache_op()
450 spinand->oobbuf, in spinand_write_to_cache_op()
454 memcpy(spinand->oobbuf + req->ooboffs, req->oobbuf.out, in spinand_write_to_cache_op()
732 .oobbuf.in = marker, in spinand_isbad()
767 .oobbuf.out = marker, in spinand_markbad()
[all …]
/drivers/mtd/nand/
Decc.c551 tweak->oobbuf.in = ctx->spare_oobbuf; in nand_ecc_tweak_req()
552 memset(tweak->oobbuf.in, 0xFF, ctx->oob_buffer_size); in nand_ecc_tweak_req()
562 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req()
563 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req()
584 memcpy(orig->oobbuf.in, in nand_ecc_restore_req()
585 tweak->oobbuf.in + orig->ooboffs, in nand_ecc_restore_req()
Decc-mxic.c570 ctx->req->oobbuf.out); in mxic_ecc_prepare_io_req_external()
603 (u8 *)ctx->req->oobbuf.out + offset, in mxic_ecc_prepare_io_req_external()
628 mxic_ecc_add_room_in_oobbuf(ctx, ctx->oobwithstat, ctx->req->oobbuf.in); in mxic_ecc_finish_io_req_external()
660 mxic_ecc_reconstruct_oobbuf(ctx, ctx->req->oobbuf.in, ctx->oobwithstat); in mxic_ecc_finish_io_req_external()
682 mxic_ecc_add_room_in_oobbuf(ctx, ctx->oobwithstat, ctx->req->oobbuf.in); in mxic_ecc_prepare_io_req_pipelined()
716 mxic_ecc_reconstruct_oobbuf(ctx, ctx->req->oobbuf.in, in mxic_ecc_finish_io_req_pipelined()
Decc-sw-bch.c324 return mtd_ooblayout_set_eccbytes(mtd, ecccalc, (void *)req->oobbuf.out, in nand_ecc_sw_bch_prepare_io_req()
358 ret = mtd_ooblayout_get_eccbytes(mtd, ecccode, req->oobbuf.in, 0, in nand_ecc_sw_bch_finish_io_req()
Decc-sw-hamming.c578 return mtd_ooblayout_set_eccbytes(mtd, ecccalc, (void *)req->oobbuf.out, in nand_ecc_sw_hamming_prepare_io_req()
612 ret = mtd_ooblayout_get_eccbytes(mtd, ecccode, req->oobbuf.in, 0, in nand_ecc_sw_hamming_finish_io_req()
/drivers/mtd/nand/raw/
Dlpc32xx_mlc.c440 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()
Dmeson_nand.c387 u8 *buf, u8 *oobbuf) in meson_nfc_get_data_oob() argument
400 memcpy(oobbuf, osrc, oob_len); in meson_nfc_get_data_oob()
401 oobbuf += oob_len; in meson_nfc_get_data_oob()
406 const u8 *buf, u8 *oobbuf) in meson_nfc_set_data_oob() argument
419 memcpy(osrc, oobbuf, oob_len); in meson_nfc_set_data_oob()
420 oobbuf += oob_len; in meson_nfc_set_data_oob()
Dsm_common.c114 ops.oobbuf = (void *)&oob; in sm_block_markbad()
Dnand_bbt.c326 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()
836 ops.oobbuf = &buf[len]; in write_bbt()
Dnand_base.c473 nand_fill_oob(chip, ops->oobbuf, ops->ooblen, ops); in nand_do_write_oob()
507 ops.oobbuf = buf; in nand_default_block_markbad()
3585 oob = ops->oobbuf; in nand_do_read_ops()
3906 uint8_t *buf = ops->oobbuf; in nand_do_read_oob()
4429 uint8_t *oob = ops->oobbuf; in nand_do_write_ops()
/drivers/mtd/parsers/
Dsharpslpart.c105 ops.oobbuf = buf; in sharpsl_nand_read_oob()