/linux-6.1.9/drivers/mtd/ |
D | mtdchar.c | 173 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 …]
|
D | mtdcore.c | 1524 if (!ops->oobbuf) in mtd_check_oob_ops() 1632 adjops.oobbuf += adjops.oobretlen; in mtd_io_emulated_slc() 1656 if (!master->_read_oob && (!master->_read || ops->oobbuf)) in mtd_read_oob() 1703 if (!master->_write_oob && (!master->_write || ops->oobbuf)) in mtd_write_oob() 1867 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument 1882 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes() 1910 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument 1925 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes() 1982 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_eccbytes() argument 1984 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()
|
/linux-6.1.9/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() 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 …]
|
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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/mtd/devices/ |
D | docg3.c | 870 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 …]
|
/linux-6.1.9/drivers/mtd/nand/spi/ |
D | core.c | 291 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 …]
|
/linux-6.1.9/drivers/mtd/nand/ |
D | ecc.c | 551 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()
|
D | ecc-mxic.c | 569 ctx->req->oobbuf.out); in mxic_ecc_prepare_io_req_external() 602 (u8 *)ctx->req->oobbuf.out + offset, in mxic_ecc_prepare_io_req_external() 627 mxic_ecc_add_room_in_oobbuf(ctx, ctx->oobwithstat, ctx->req->oobbuf.in); in mxic_ecc_finish_io_req_external() 659 mxic_ecc_reconstruct_oobbuf(ctx, ctx->req->oobbuf.in, ctx->oobwithstat); in mxic_ecc_finish_io_req_external() 681 mxic_ecc_add_room_in_oobbuf(ctx, ctx->oobwithstat, ctx->req->oobbuf.in); in mxic_ecc_prepare_io_req_pipelined() 715 mxic_ecc_reconstruct_oobbuf(ctx, ctx->req->oobbuf.in, in mxic_ecc_finish_io_req_pipelined()
|
D | ecc-sw-bch.c | 324 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()
|
D | ecc-sw-hamming.c | 578 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()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | lpc32xx_mlc.c | 439 uint8_t *oobbuf = chip->oob_poi; in lpc32xx_read_page() local 487 *((uint32_t *)(oobbuf)) = in lpc32xx_read_page() 489 oobbuf += 4; in lpc32xx_read_page() 505 const uint8_t *oobbuf = chip->oob_poi; in lpc32xx_write_page_lowlevel() local 534 writel(*((uint32_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel() 535 oobbuf += 4; in lpc32xx_write_page_lowlevel() 536 writew(*((uint16_t *)(oobbuf)), MLC_BUFF(host->io_base)); in lpc32xx_write_page_lowlevel() 537 oobbuf += 12; in lpc32xx_write_page_lowlevel()
|
D | meson_nand.c | 357 u8 *buf, u8 *oobbuf) in meson_nfc_get_data_oob() argument 370 memcpy(oobbuf, osrc, oob_len); in meson_nfc_get_data_oob() 371 oobbuf += oob_len; in meson_nfc_get_data_oob() 376 const u8 *buf, u8 *oobbuf) in meson_nfc_set_data_oob() argument 389 memcpy(osrc, oobbuf, oob_len); in meson_nfc_set_data_oob() 390 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() 836 ops.oobbuf = &buf[len]; in write_bbt()
|
/linux-6.1.9/fs/jffs2/ |
D | wbuf.c | 1042 ops.oobbuf = c->oobbuf; in jffs2_check_oob_empty() 1060 if (ops.oobbuf[i] != 0xFF) { in jffs2_check_oob_empty() 1062 "%08x\n", ops.oobbuf[i], i, jeb->offset); in jffs2_check_oob_empty() 1084 ops.oobbuf = c->oobbuf; in jffs2_check_nand_cleanmarker() 1097 return !!memcmp(&oob_cleanmarker, c->oobbuf, cmlen); in jffs2_check_nand_cleanmarker() 1109 ops.oobbuf = (uint8_t *)&oob_cleanmarker; in jffs2_write_nand_cleanmarker() 1211 c->oobbuf = kmalloc_array(NR_OOB_SCAN_PAGES, c->oobavail, GFP_KERNEL); in jffs2_nand_flash_setup() 1212 if (!c->oobbuf) { in jffs2_nand_flash_setup() 1220 kfree(c->oobbuf); in jffs2_nand_flash_setup() 1234 kfree(c->oobbuf); in jffs2_nand_flash_cleanup()
|
D | jffs2_fs_sb.h | 139 unsigned char *oobbuf; member
|
/linux-6.1.9/include/linux/mtd/ |
D | mtd.h | 78 uint8_t *oobbuf; member 437 const u8 *oobbuf, int start, int nbytes); 439 u8 *oobbuf, int start, int nbytes); 443 const u8 *oobbuf, int start, int nbytes); 445 u8 *oobbuf, int start, int nbytes);
|
D | nand.h | 126 } oobbuf; member 936 iter->req.oobbuf.in = req->oobbuf; in nanddev_io_iter_init() 956 iter->req.oobbuf.in += iter->req.ooblen; in nanddev_io_iter_next_page()
|
/linux-6.1.9/drivers/mtd/parsers/ |
D | sharpslpart.c | 105 ops.oobbuf = buf; in sharpsl_nand_read_oob()
|