/u-boot/drivers/mtd/nand/raw/ |
A D | lpc32xx_nand_mlc.c | 239 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_page_hwecc() 287 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_page_raw() 335 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_read_oob() 389 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_write_page_hwecc() 447 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_write_page_raw() 483 struct lpc32xx_oob *oob = (struct lpc32xx_oob *)chip->oob_poi; in lpc32xx_write_oob()
|
A D | mxs_nand_spl.c | 182 memset(chip->oob_poi, 0, mtd->oobsize); in is_badblock() 183 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in is_badblock() 185 return chip->oob_poi[0] != 0xff; in is_badblock() 213 nand_chip.oob_poi = nand_chip.buffers->databuf + mtd->writesize; in nand_init()
|
A D | zynq_nand.c | 450 p = chip->oob_poi; in zynq_nand_read_oob() 472 const u8 *buf = chip->oob_poi; in zynq_nand_write_oob() 510 p = chip->oob_poi; in zynq_nand_read_page_raw() 558 p = chip->oob_poi; in zynq_nand_write_page_raw() 610 chip->oob_poi[eccpos[i]] = ~(ecc_calc[i]); in zynq_nand_write_page_hwecc() 618 oob_ptr = chip->oob_poi; in zynq_nand_write_page_hwecc() 654 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in zynq_nand_write_page_swecc() 708 oob_ptr = chip->oob_poi; in zynq_nand_read_page_hwecc() 720 ecc_code[i] = ~(chip->oob_poi[eccpos[i]]); in zynq_nand_read_page_hwecc() 761 ecc_code[i] = chip->oob_poi[eccpos[i]]; in zynq_nand_read_page_swecc()
|
A D | mxc_nand.c | 390 uint8_t *buf = chip->oob_poi; 447 uint8_t *oob = chip->oob_poi; 474 size = mtd->oobsize - (oob - chip->oob_poi); 494 uint8_t *oob = chip->oob_poi; 529 n = mtd->oobsize - (oob - chip->oob_poi); 537 oob = chip->oob_poi + chip->ecc.prepad; 556 const uint8_t *bufpoi = chip->oob_poi; 584 uint8_t *oob = chip->oob_poi; 609 size = mtd->oobsize - (oob - chip->oob_poi); 626 uint8_t *oob = chip->oob_poi; [all …]
|
A D | tegra_nand.c | 552 memcpy(tag_ptr, chip->oob_poi + free->offset, in nand_rw_page() 575 bounce_buffer_start(&bbstate_oob, (void *)chip->oob_poi, in nand_rw_page() 630 memcpy(chip->oob_poi, tag_ptr, in nand_rw_page() 632 memcpy(chip->oob_poi + free->offset, in nand_rw_page() 736 if (((int)chip->oob_poi) & 0x03) in nand_rw_oob() 765 bounce_buffer_start(&bbstate_oob, (void *)chip->oob_poi, tag_size, in nand_rw_oob() 811 (u8 *)(chip->oob_poi + free->offset), in nand_rw_oob()
|
A D | nand_base.c | 1803 uint8_t *oob = chip->oob_poi; in nand_read_page_raw_syndrome() 1874 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_swecc() 1952 chip->oob_poi, mtd->oobsize, in nand_read_subpage() 1970 &chip->oob_poi[aligned_pos], in nand_read_subpage() 2043 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_read_page_hwecc() 2160 uint8_t *oob = chip->oob_poi; in nand_read_page_syndrome() 2515 uint8_t *bufpoi = chip->oob_poi; in nand_read_oob_syndrome() 2583 const uint8_t *bufpoi = chip->oob_poi; in nand_write_oob_syndrome() 2833 uint8_t *oob = chip->oob_poi; in nand_write_page_raw_syndrome() 2962 uint8_t *oob_buf = chip->oob_poi; in nand_write_subpage_hwecc() [all …]
|
A D | lpc32xx_nand_slc.c | 435 lpc32xx_dma_read_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_read_page_hwecc() 438 ecc_code[i] = chip->oob_poi[eccpos[i]]; in lpc32xx_read_page_hwecc() 474 chip->oob_poi[eccpos[i]] = ecc_calc[i]; in lpc32xx_write_page_hwecc() 476 lpc32xx_dma_write_buf(mtd, chip->oob_poi, mtd->oobsize); in lpc32xx_write_page_hwecc()
|
A D | cortina_nand.c | 599 ecc_code[i] = chip->oob_poi[eccoob.eccpos[i]]; in ca_do_bch_decode() 700 chip->oob_poi[eccoob.eccpos[i + j]] = reg_v & OOB_MASK; in ca_do_bch_encode() 701 chip->oob_poi[eccoob.eccpos[i + j + 1]] = in ca_do_bch_encode() 703 chip->oob_poi[eccoob.eccpos[i + j + 2]] = in ca_do_bch_encode() 705 chip->oob_poi[eccoob.eccpos[i + j + 3]] = in ca_do_bch_encode() 825 tx_desc[dma_index].buf_adr = (uintptr_t)(chip->oob_poi); in nand_rw_page() 829 rx_desc[dma_index].buf_adr = (uintptr_t)(chip->oob_poi); in nand_rw_page() 1082 pwrite = (unsigned int *)chip->oob_poi; in nand_rw_oob() 1085 pread = (unsigned int *)chip->oob_poi; in nand_rw_oob()
|
A D | sunxi_nand.c | 1027 u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_page() 1040 sunxi_nfc_hw_ecc_read_extra_oob(mtd, chip->oob_poi, &cur_off, in sunxi_nfc_hw_ecc_read_page() 1065 u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_subpage() 1093 const u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_write_page() 1103 sunxi_nfc_hw_ecc_write_extra_oob(mtd, chip->oob_poi, in sunxi_nfc_hw_ecc_write_page() 1127 const u8 *oob = chip->oob_poi + oob_off; in sunxi_nfc_hw_ecc_write_subpage() 1157 u8 *oob = chip->oob_poi + (i * (ecc->bytes + 4)); in sunxi_nfc_hw_syndrome_ecc_read_page() 1169 sunxi_nfc_hw_ecc_read_extra_oob(mtd, chip->oob_poi, &cur_off, in sunxi_nfc_hw_syndrome_ecc_read_page() 1191 const u8 *oob = chip->oob_poi + (i * (ecc->bytes + 4)); in sunxi_nfc_hw_syndrome_ecc_write_page() 1201 sunxi_nfc_hw_ecc_write_extra_oob(mtd, chip->oob_poi, in sunxi_nfc_hw_syndrome_ecc_write_page()
|
A D | denali.c | 299 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in denali_check_erased_page() 618 uint8_t *bufpoi = chip->oob_poi; in denali_oob_xfer() 662 len = oobsize - (bufpoi - chip->oob_poi); in denali_oob_xfer() 711 uint8_t *oob = chip->oob_poi; 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() 872 len = oobsize - (oob - chip->oob_poi); in denali_write_page_raw()
|
A D | mxs_nand.c | 817 memset(nand->oob_poi, 0xff, mtd->oobsize); in mxs_nand_ecc_read_page() 819 nand->oob_poi[0] = nand_info->oob_buf[0]; in mxs_nand_ecc_read_page() 845 memcpy(nand_info->oob_buf, nand->oob_poi, mtd->oobsize); in mxs_nand_ecc_write_page() 1040 nand->read_buf(mtd, nand->oob_poi, mtd->oobsize); in mxs_nand_ecc_read_oob() 1046 memset(nand->oob_poi, 0xff, mtd->oobsize); in mxs_nand_ecc_read_oob() 1049 mxs_nand_read_buf(mtd, nand->oob_poi, 1); in mxs_nand_ecc_read_oob()
|
A D | vf610_nfc.c | 599 vf610_nfc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in vf610_nfc_read_page() 601 stat = vf610_nfc_correct_data(mtd, buf, chip->oob_poi, page); in vf610_nfc_read_page() 622 vf610_nfc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in vf610_nfc_write_page()
|
A D | pxa3xx_nand.c | 1258 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in pxa3xx_nand_write_page_hwecc() 1272 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in pxa3xx_nand_read_page_hwecc() 1286 chip->oob_poi, mtd->oobsize, in pxa3xx_nand_read_page_hwecc() 1335 chip->oob_poi + in pxa3xx_nand_read_page_raw() 1339 chip->oob_poi + ecc_off_buf + in pxa3xx_nand_read_page_raw() 1349 chip->oob_poi + in pxa3xx_nand_read_page_raw() 1353 chip->oob_poi + ecc_off_buf + in pxa3xx_nand_read_page_raw()
|
A D | fsl_elbc_nand.c | 603 fsl_elbc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_read_page() 619 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_page() 634 fsl_elbc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_subpage()
|
A D | octeontx_nand.c | 1615 memcpy(chip->oob_poi, tn->buf.dmabuf + mtd->writesize, mtd->oobsize); in octeontx_nand_hw_bch_read_page() 1620 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in octeontx_nand_hw_bch_read_page() 1682 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, 0, in octeontx_nand_hw_bch_write_page() 1688 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in octeontx_nand_hw_bch_write_page() 1710 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in octeontx_nand_write_page_raw() 1727 const u8 *buf = chip->oob_poi; in octeontx_nand_write_oob_std() 1756 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in octeontx_nand_read_page_raw() 1766 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in octeontx_nand_read_oob_std()
|
A D | davinci_nand.c | 445 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in nand_davinci_read_page_hwecc() 449 ecc_code[i] = chip->oob_poi[eccpos[i]]; in nand_davinci_read_page_hwecc()
|
A D | fsl_ifc_nand.c | 715 u8 *ecc = chip->oob_poi; in check_erased_page() 748 fsl_ifc_read_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 766 fsl_ifc_write_buf(mtd, chip->oob_poi, mtd->oobsize); in fsl_ifc_write_page()
|
A D | atmel_nand.c | 542 uint8_t *oob = chip->oob_poi; in atmel_nand_pmecc_read_page() 616 chip->oob_poi[eccpos[pos]] = in atmel_nand_pmecc_write_page() 620 chip->write_buf(mtd, chip->oob_poi, mtd->oobsize); in atmel_nand_pmecc_write_page() 1044 uint8_t *oob = chip->oob_poi; in atmel_nand_read_page()
|
A D | omap_gpmc.c | 594 uint8_t *oob = chip->oob_poi; in omap_read_page_bch() 621 ecc_code[i] = chip->oob_poi[eccpos[i]]; in omap_read_page_bch()
|
A D | arasan_nfc.c | 622 chip->read_buf(mtd, chip->oob_poi, (mtd->oobsize)); in arasan_nand_read_oob() 631 const u8 *buf = chip->oob_poi; in arasan_nand_write_oob()
|
A D | stm32_fmc2_nand.c | 548 chip->read_buf(mtd, chip->oob_poi, mtd->oobsize); in stm32_fmc2_nfc_read_page()
|
/u-boot/drivers/mtd/nand/raw/brcmnand/ |
A D | brcmnand.c | 1676 void *oob = chip->oob_poi; in brcmstb_nand_verify_erased_page() 1803 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page() 1815 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page_raw() 1832 NULL, (u8 *)chip->oob_poi); in brcmnand_read_oob() 1843 NULL, (u8 *)chip->oob_poi); in brcmnand_read_oob_raw() 1925 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page() 1938 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page_raw() 1952 NULL, chip->oob_poi); in brcmnand_write_oob() 1963 (u8 *)chip->oob_poi); in brcmnand_write_oob_raw()
|
/u-boot/include/linux/mtd/ |
A D | rawnand.h | 955 uint8_t *oob_poi; member
|