/u-boot/fs/yaffs2/ |
A D | yaffs_mtdif.c | 30 oob[0] = spare->tb0; in translate_spare2oob() 31 oob[1] = spare->tb1; in translate_spare2oob() 32 oob[2] = spare->tb2; in translate_spare2oob() 33 oob[3] = spare->tb3; in translate_spare2oob() 34 oob[4] = spare->tb4; in translate_spare2oob() 38 oob[6] = spare->tb6; in translate_spare2oob() 39 oob[7] = spare->tb7; in translate_spare2oob() 45 spare->tb0 = oob[0]; in translate_oob2spare() 46 spare->tb1 = oob[1]; in translate_oob2spare() 47 spare->tb2 = oob[2]; in translate_oob2spare() [all …]
|
/u-boot/drivers/mtd/nand/raw/ |
A D | lpc32xx_nand_mlc.c | 264 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->buff, 6); in lpc32xx_read_page_hwecc() 266 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->buff, 10); in lpc32xx_read_page_hwecc() 306 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->data, 6); in lpc32xx_read_page_raw() 308 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->data, 10); in lpc32xx_read_page_raw() 364 memcpy(&oob->free[i], lpc32xx_nand_mlc_registers->buff, 6); in lpc32xx_read_oob() 366 memcpy(&oob->ecc[i], lpc32xx_nand_mlc_registers->buff, 10); in lpc32xx_read_oob() 623 struct lpc32xx_oob *oob) in read_single_page() argument 723 struct lpc32xx_oob oob; in nand_spl_load_image() local 726 &oob); in nand_spl_load_image() 732 if ((oob.free[0].free_oob_bytes[0] != 0xff) in nand_spl_load_image() [all …]
|
A D | mxc_nand.c | 462 oob += chip->ecc.prepad; 466 oob += eccbytes; 470 oob += chip->ecc.postpad; 497 page, buf, oob); 511 oob += chip->ecc.prepad; 520 oob += eccbytes; 524 oob += chip->ecc.postpad; 597 oob += chip->ecc.prepad; 601 oob += eccbytes; 641 oob += chip->ecc.prepad; [all …]
|
A D | nand_base.c | 1826 oob += eccbytes; in nand_read_page_raw_syndrome() 2189 oob += eccbytes; in nand_read_page_syndrome() 2267 oob += bytes; in nand_transfer_oob() 2269 return oob; in nand_transfer_oob() 2376 !oob) in nand_do_read_ops() 2478 if (oob) in nand_do_read_ops() 2856 oob += eccbytes; in nand_write_page_raw_syndrome() 3059 oob += eccbytes; in nand_write_page_syndrome() 3176 oob += bytes; in nand_fill_oob() 3178 return oob; in nand_fill_oob() [all …]
|
A D | sunxi_nand.c | 814 u8 *oob, int oob_off, in sunxi_nfc_hw_ecc_read_chunk() argument 882 oob, ecc->bytes + 4, in sunxi_nfc_hw_ecc_read_chunk() 893 oob); in sunxi_nfc_hw_ecc_read_chunk() 911 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob() argument 942 const u8 *oob, int oob_off, in sunxi_nfc_hw_ecc_write_chunk() argument 960 memcpy(user_data, oob, 4); in sunxi_nfc_hw_ecc_write_chunk() 992 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_write_extra_oob() argument 1027 u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_page() local 1065 u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_subpage() local 1068 oob, oob_off + mtd->writesize, in sunxi_nfc_hw_ecc_read_subpage() [all …]
|
A D | fsl_elbc_nand.c | 75 unsigned int oob; /* Non zero if operating on OOB data */ member 156 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument 170 (oob ? FPAR_LP_MS : 0) | column); in set_addr() 176 (oob ? FPAR_SP_MS : 0) | column); in set_addr() 184 if (oob) in set_addr() 248 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read() argument 271 if (oob) in fsl_elbc_do_read() 385 ctrl->oob = 0; in fsl_elbc_cmdfunc() 413 ctrl->oob = 1; in fsl_elbc_cmdfunc() 424 set_addr(mtd, column, page_addr, ctrl->oob); in fsl_elbc_cmdfunc() [all …]
|
A D | am335x_spl_bch.c | 162 uint8_t *oob = &oob_data[0] + nand_ecc_pos[0]; in nand_read_page() local 175 this->read_buf(mtd, oob, eccbytes); in nand_read_page() 180 oob += eccbytes; in nand_read_page()
|
A D | denali.c | 711 uint8_t *oob = chip->oob_poi; in denali_read_page_raw() local 715 oob += oob_skip; in denali_read_page_raw() 727 memcpy(oob, tmp_buf + pos, len); in denali_read_page_raw() 728 oob += len; in denali_read_page_raw() 733 oob += len; in denali_read_page_raw() 738 len = oobsize - (oob - chip->oob_poi); in denali_read_page_raw() 845 const uint8_t *oob = chip->oob_poi; in denali_write_page_raw() local 849 oob += oob_skip; in denali_write_page_raw() 861 memcpy(tmp_buf + pos, oob, len); in denali_write_page_raw() 862 oob += len; in denali_write_page_raw() [all …]
|
A D | fsl_ifc_nand.c | 57 unsigned int oob; /* Non zero if operating on OOB data */ member 223 static void set_addr(struct mtd_info *mtd, int column, int page_addr, int oob) in set_addr() argument 235 ifc_out32(&ifc->ifc_nand.col0, (oob ? IFC_NAND_COL_MS : 0) | column); in set_addr() 243 if (oob) in set_addr() 332 int oob, in fsl_ifc_do_read() argument 359 if (oob) in fsl_ifc_do_read() 466 ctrl->oob = 0; in fsl_ifc_cmdfunc() 518 ctrl->oob = 1; in fsl_ifc_cmdfunc() 521 set_addr(mtd, column, page_addr, ctrl->oob); in fsl_ifc_cmdfunc() 527 if (ctrl->oob) in fsl_ifc_cmdfunc()
|
A D | fsmc_nand.c | 347 uint8_t oob[13] __attribute__ ((aligned (2))); in fsmc_read_page_hwecc() local 374 chip->read_buf(mtd, oob + j, len); in fsmc_read_page_hwecc() 378 memcpy(&ecc_code[i], oob, 13); in fsmc_read_page_hwecc()
|
A D | vf610_nfc.c | 556 uint8_t *oob, int page) in vf610_nfc_correct_data() argument 573 vf610_nfc_read_buf(mtd, oob, mtd->oobsize); in vf610_nfc_correct_data() 580 flips += count_written_bits(oob, mtd->oobsize, flips_threshold); in vf610_nfc_correct_data() 587 memset(oob, 0xff, mtd->oobsize); in vf610_nfc_correct_data()
|
A D | atmel_nand.c | 542 uint8_t *oob = chip->oob_poi; in atmel_nand_pmecc_read_page() local 556 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_pmecc_read_page() 572 if (pmecc_correction(mtd, stat, buf, &oob[eccpos[0]]) != 0) in atmel_nand_pmecc_read_page() 1044 uint8_t *oob = chip->oob_poi; in atmel_nand_read_page() local 1064 ecc_pos = oob + eccpos[0]; in atmel_nand_read_page() 1068 stat = chip->ecc.correct(mtd, p, oob, NULL); in atmel_nand_read_page() 1079 chip->read_buf(mtd, oob, mtd->oobsize); in atmel_nand_read_page()
|
A D | omap_gpmc.c | 594 uint8_t *oob = chip->oob_poi; in omap_read_page_bch() local 601 oob += chip->ecc.layout->eccpos[0]; in omap_read_page_bch() 604 oob += eccbytes) { in omap_read_page_bch() 612 chip->read_buf(mtd, oob, eccbytes); in omap_read_page_bch()
|
A D | nand_bbt.c | 356 uint8_t *buf, uint8_t *oob) in scan_write_bbt() argument 364 ops.oobbuf = oob; in scan_write_bbt()
|
/u-boot/doc/ |
A D | README.mediatek | 111 nandinfo: Desired NAND device type, a combination of page size, oob size and 113 2k+64 : for Serial NAND, 2KiB page size + 64B oob size 114 2k+120 : for Serial NAND, 2KiB page size + 120B oob size 115 2k+128 : for Serial NAND, 2KiB page size + 128B oob size 116 4k+256 : for Serial NAND, 4KiB page size + 256B oob size 117 1g:2k+64 : for Parallel NAND, 2KiB page size + 64B oob size, total 1Gbit size 118 2g:2k+64 : for Parallel NAND, 2KiB page size + 64B oob size, total 2Gbit size 119 4g:2k+64 : for Parallel NAND, 2KiB page size + 64B oob size, total 4Gbit size 120 2g:2k+128: for Parallel NAND, 2KiB page size + 128B oob size, total 2Gbit size 121 4g:2k+128: for Parallel NAND, 2KiB page size + 128B oob size, total 4Gbit size
|
A D | README.nand | 48 nand read.oob addr ofs|partition size 75 nand write.oob addr ofs|partition size 87 a packed sequence of "data, oob, data, oob, ..." -- no alignment of 293 "nand erase clean" additionally writes JFFS2-cleanmarkers in the oob.
|
/u-boot/drivers/mtd/nand/raw/brcmnand/ |
A D | brcmnand.c | 1147 (oob[j + 0] << 24) | in write_oob_to_regs() 1148 (oob[j + 1] << 16) | in write_oob_to_regs() 1149 (oob[j + 2] << 8) | in write_oob_to_regs() 1150 (oob[j + 3] << 0)); in write_oob_to_regs() 1629 if (oob) in brcmnand_read_by_pio() 1630 oob += read_oob_from_regs(ctrl, i, oob, in brcmnand_read_by_pio() 1736 if (oob) in brcmnand_read() 1743 if (oob) in brcmnand_read() 1894 } else if (oob) { in brcmnand_write() 1899 if (oob) { in brcmnand_write() [all …]
|
/u-boot/cmd/ |
A D | onenand.c | 62 size_t *retlen, u_char *buf, int oob) in onenand_block_read() argument 73 if (oob) in onenand_block_read() 87 if (oob) in onenand_block_read() 388 int oob = 0; in do_onenand_read() local 399 oob = 1; in do_onenand_read() 407 ret = onenand_block_read(ofs, len, &retlen, (u8 *)addr, oob); in do_onenand_read()
|
/u-boot/arch/mips/dts/ |
A D | brcm,bcm968380gerg.dts | 62 brcm,nand-oob-sector-size = <16>;
|
A D | comtrend,vr-3032u.dts | 111 brcm,nand-oob-sector-size = <64>;
|
/u-boot/arch/arm/dts/ |
A D | bcm963158.dts | 76 brcm,nand-oob-sector-size = <16>;
|
A D | bcm968580xref.dts | 76 brcm,nand-oob-sector-size = <16>;
|
A D | bcm968360bg.dts | 76 brcm,nand-oob-sector-size = <16>;
|
A D | tegra124.dtsi | 619 clock-names = "sata", "sata-oob", "cml1", "pll_e"; 623 reset-names = "sata", "sata-oob", "sata-cold";
|
/u-boot/drivers/mtd/onenand/ |
A D | onenand_base.c | 1422 const u_char *oob = ops->oobbuf; in onenand_write_ops_nolock() local 1467 if (oob) { in onenand_write_ops_nolock() 1474 onenand_fill_auto_oob(mtd, oobbuf, oob, oobcolumn, thisooblen); in onenand_write_ops_nolock() 1476 memcpy(oobbuf + oobcolumn, oob, thisooblen); in onenand_write_ops_nolock() 1479 oob += thisooblen; in onenand_write_ops_nolock()
|