Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/mtd/
H A Dmtdchar.c173 ops.oobbuf = NULL; in mtdchar_read()
267 ops.oobbuf = NULL; in mtdchar_write()
378 kfree(ops.oobbuf); in mtdchar_writeoob()
403 if (!ops.oobbuf) in mtdchar_readoob()
415 kfree(ops.oobbuf); in mtdchar_readoob()
634 if (!oobbuf) { in mtdchar_write_ioctl()
646 .oobbuf = oobbuf, in mtdchar_write_ioctl()
686 kvfree(oobbuf); in mtdchar_write_ioctl()
744 if (!oobbuf) { in mtdchar_read_ioctl()
757 .oobbuf = oobbuf, in mtdchar_read_ioctl()
[all …]
H A 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()
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
2050 u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_set_eccbytes() argument
2070 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_databytes() argument
[all …]
/openbmc/u-boot/drivers/mtd/nand/spi/
H A Dcore.c261 adjreq.oobbuf.in = spinand->oobbuf; in spinand_read_from_cache_op()
264 buf = spinand->oobbuf; in spinand_read_from_cache_op()
300 spinand->oobbuf, in spinand_read_from_cache_op()
304 memcpy(req->oobbuf.in, spinand->oobbuf + req->ooboffs, in spinand_read_from_cache_op()
340 spinand->oobbuf, in spinand_write_to_cache_op()
344 memcpy(spinand->oobbuf + req->ooboffs, req->oobbuf.out, in spinand_write_to_cache_op()
351 buf = spinand->oobbuf; in spinand_write_to_cache_op()
658 .oobbuf.in = spinand->oobbuf, in spinand_isbad()
663 memset(spinand->oobbuf, 0, 2); in spinand_isbad()
672 if (spinand->oobbuf[0] != 0xff || spinand->oobbuf[1] != 0xff) in spinand_isbad()
[all …]
/openbmc/linux/drivers/mtd/tests/
H A Doobtest.c182 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()
654 ops.oobbuf = writebuf + pg * sz; in mtd_oobtest_init()
[all …]
H A 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()
/openbmc/u-boot/cmd/
H A Donenand.c88 ops.oobbuf = buf; in onenand_block_read()
120 ops.oobbuf = (u_char *)buf; in onenand_write_oneblock_withoob()
308 u_char *datbuf, *oobbuf, *p; in onenand_dump() local
313 oobbuf = malloc(mtd->oobsize); in onenand_dump()
314 if (!datbuf || !oobbuf) { in onenand_dump()
322 ops.oobbuf = oobbuf; in onenand_dump()
330 free(oobbuf); in onenand_dump()
348 p = oobbuf; in onenand_dump()
356 free(oobbuf); in onenand_dump()
H A Dnand.c45 u_char *datbuf, *oobbuf, *p; in nand_dump() local
60 oobbuf = memalign(ARCH_DMA_MINALIGN, mtd->oobsize); in nand_dump()
61 if (!oobbuf) { in nand_dump()
71 ops.oobbuf = oobbuf; in nand_dump()
99 p = oobbuf; in nand_dump()
107 free(oobbuf); in nand_dump()
250 ops.oobbuf = (void *) oob_buf; in do_nand_env_oob()
322 .oobbuf = ((u8 *)addr) + mtd->writesize, in raw_access()
632 .oobbuf = (u8 *)addr, in do_nand()
H A Dmtd.c190 if (op->oobbuf[i] != 0xff) in mtd_oob_write_is_empty()
327 io_op.oobbuf = woob ? &buf[len] : NULL; in do_mtd_io()
358 io_op.oobbuf += io_op.oobretlen; in do_mtd_io()
/openbmc/linux/drivers/mtd/nand/onenand/
H A Donenand_base.c1122 u_char *oobbuf = ops->oobbuf; in onenand_mlc_read_ops_nolock() local
1168 if (oobbuf) { 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()
1808 u_char *oobbuf; in onenand_write_ops_nolock() local
1984 u_char *oobbuf; in onenand_write_oob_nolock() local
2451 .oobbuf = buf, in onenand_default_block_markbad()
2782 u_char *oobbuf; in onenand_otp_write_oob_nolock() local
2915 .oobbuf = NULL, in do_otp_read()
2967 ops.oobbuf = NULL; in do_otp_write()
[all …]
/openbmc/linux/drivers/mtd/devices/
H A Ddocg3.c870 u8 *oobbuf = ops->oobbuf; in doc_read_oob() local
881 if (oobbuf) in doc_read_oob()
887 oobbuf += ops->ooboffs; in doc_read_oob()
963 oobbuf += nboob; in doc_read_oob()
1387 u8 *oobbuf = ops->oobbuf; in doc_write_oob() local
1396 if (oobbuf) in doc_write_oob()
1402 oobbuf += ops->ooboffs; in doc_write_oob()
1405 ofs, ops->mode, buf, len, oobbuf, ooblen); in doc_write_oob()
1442 doc_fill_autooob(oob, oobbuf); in doc_write_oob()
1444 memcpy(oob, oobbuf, DOC_LAYOUT_OOB_SIZE); in doc_write_oob()
[all …]
/openbmc/u-boot/drivers/mtd/onenand/
H A Donenand_base.c855 u_char *oobbuf = ops->oobbuf; in onenand_read_ops_nolock() local
927 if (oobbuf) { in onenand_read_ops_nolock()
936 oobbuf += thisooblen; in onenand_read_ops_nolock()
1006 u_char *buf = ops->oobbuf; in onenand_read_oob_nolock()
1108 .oobbuf = NULL, in onenand_read()
1420 u_char *oobbuf; in onenand_write_ops_nolock() local
1465 oobbuf = this->oob_buf; in onenand_write_ops_nolock()
1538 u_char *oobbuf; in onenand_write_oob_nolock() local
1578 oobbuf = this->oob_buf; in onenand_write_oob_nolock()
1656 .oobbuf = NULL, in onenand_write()
[all …]
/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c1047 if (!ops->oobbuf) in mtd_check_oob_ops()
1079 if (!mtd->_read_oob && (!mtd->_read || ops->oobbuf)) in mtd_read_oob()
1117 if (!mtd->_write_oob && (!mtd->_write || ops->oobbuf)) in mtd_write_oob()
1278 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument
1293 memcpy(buf, oobbuf + oobregion.offset, cnt); in mtd_ooblayout_get_bytes()
1321 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument
1336 memcpy(oobbuf + oobregion.offset, buf, cnt); in mtd_ooblayout_set_bytes()
1393 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_eccbytes() argument
1413 u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_set_eccbytes() argument
1433 const u8 *oobbuf, int start, int nbytes) in mtd_ooblayout_get_databytes() argument
[all …]
/openbmc/linux/drivers/mtd/nand/spi/
H A 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 …]
/openbmc/linux/drivers/mtd/nand/
H A 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()
H A 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()
/openbmc/linux/drivers/mtd/nand/raw/
H A 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()
/openbmc/linux/fs/jffs2/
H A Dwbuf.c1042 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()
H A Djffs2_fs_sb.h139 unsigned char *oobbuf; member
/openbmc/u-boot/include/linux/mtd/
H A Dnand.h109 } oobbuf; member
614 iter->req.oobbuf.in = req->oobbuf; in nanddev_io_iter_init()
634 iter->req.oobbuf.in += iter->req.ooblen; in nanddev_io_iter_next_page()
H A Dmtd.h91 uint8_t *oobbuf; member
377 const u8 *oobbuf, int start, int nbytes);
379 u8 *oobbuf, int start, int nbytes);
383 const u8 *oobbuf, int start, int nbytes);
385 u8 *oobbuf, int start, int nbytes);
/openbmc/linux/include/linux/mtd/
H A Dmtd.h78 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);
H A Dnand.h126 } 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()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_mtdif.c87 ops.oobbuf = spareAsBytes; in nandmtd_WriteChunkToNAND()
122 ops.oobbuf = spareAsBytes; in nandmtd_ReadChunkFromNAND()
H A Dyaffs_mtdif2.c85 ops.oobbuf = (dev->param.inband_tags) ? NULL : packed_tags_ptr; in nandmtd2_write_chunk_tags()
132 ops.oobbuf = local_spare; in nandmtd2_read_chunk_tags()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_util.c144 ops.oobbuf = (uint8_t *)&cleanmarker; in nand_erase_opts()
491 vops.oobbuf = vops.datbuf + mtd->writesize; in nand_verify_page_oob()
497 rval = memcmp(ops->oobbuf, vops.oobbuf, vops.ooblen); in nand_verify_page_oob()

12