/linux-6.6.21/drivers/mtd/nand/raw/ |
D | nand_micron.c | 225 !nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, false, in micron_nand_on_die_ecc_status_4() 230 ret = nand_read_data_op(chip, chip->oob_poi, in micron_nand_on_die_ecc_status_4() 234 chip->oob_poi, in micron_nand_on_die_ecc_status_4() 260 corrbuf = chip->oob_poi + offs; in micron_nand_on_die_ecc_status_4() 344 ret = nand_read_data_op(chip, chip->oob_poi, in micron_nand_read_page_on_die_ecc() 351 chip->oob_poi, in micron_nand_read_page_on_die_ecc()
|
D | lpc32xx_slc.c | 388 return nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_oob_syndrome() 398 return nand_prog_page_op(chip, page, mtd->writesize, chip->oob_poi, in lpc32xx_nand_write_oob_syndrome() 616 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_syndrome() 626 oobecc = chip->oob_poi + oobregion.offset; in lpc32xx_nand_read_page_syndrome() 658 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_read_page_raw_syndrome() 692 pb = chip->oob_poi + oobregion.offset; in lpc32xx_nand_write_page_syndrome() 696 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_syndrome() 714 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in lpc32xx_nand_write_page_raw_syndrome()
|
D | nand_base.c | 267 bad = chip->oob_poi[chip->badblockpos]; in nand_block_bad() 395 memset(chip->oob_poi, 0xff, mtd->oobsize); in nand_fill_oob() 401 memcpy(chip->oob_poi + ops->ooboffs, oob, len); in nand_fill_oob() 405 ret = mtd_ooblayout_set_databytes(mtd, oob, chip->oob_poi, in nand_fill_oob() 2926 ret = nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, in nand_read_page_raw() 2992 uint8_t *oob = chip->oob_poi; in nand_read_page_raw_syndrome() 3031 size = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_raw_syndrome() 3065 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in nand_read_page_swecc() 3142 chip->oob_poi, mtd->oobsize, in nand_read_subpage() 3161 &chip->oob_poi[aligned_pos], in nand_read_subpage() [all …]
|
D | marvell_nand.c | 1091 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi, in marvell_nfc_hw_ecc_hmg_read_page_raw() 1105 marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi, false, in marvell_nfc_hw_ecc_hmg_read_page() 1140 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi, in marvell_nfc_hw_ecc_hmg_read_oob_raw() 1218 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi, in marvell_nfc_hw_ecc_hmg_write_page_raw() 1230 ret = marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi, in marvell_nfc_hw_ecc_hmg_write_page() 1251 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi, in marvell_nfc_hw_ecc_hmg_write_oob_raw() 1261 u8 *oob = chip->oob_poi; in marvell_nfc_hw_ecc_bch_read_page_raw() 1273 memset(chip->oob_poi, 0xFF, mtd->oobsize); in marvell_nfc_hw_ecc_bch_read_page_raw() 1377 u8 *data = buf, *spare = chip->oob_poi; in marvell_nfc_hw_ecc_bch_read_page() 1390 memset(chip->oob_poi, 0xFF, mtd->oobsize); in marvell_nfc_hw_ecc_bch_read_page() [all …]
|
D | tegra_nand.c | 623 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_read_page_raw() 633 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_write_page_raw() 643 return tegra_nand_page_xfer(mtd, chip, NULL, chip->oob_poi, in tegra_nand_read_oob() 651 return tegra_nand_page_xfer(mtd, chip, NULL, chip->oob_poi, in tegra_nand_write_oob() 661 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_read_page_hwecc() 728 u8 *oob = chip->oob_poi + nand->ecc.offset + in tegra_nand_read_page_hwecc() 770 void *oob_buf = oob_required ? chip->oob_poi : NULL; in tegra_nand_write_page_hwecc()
|
D | sunxi_nand.c | 959 u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_chunks_dma() 991 u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_chunks_dma() 1023 sunxi_nfc_hw_ecc_read_extra_oob(nand, nand->oob_poi, in sunxi_nfc_hw_ecc_read_chunks_dma() 1110 u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_page() 1123 sunxi_nfc_hw_ecc_read_extra_oob(nand, nand->oob_poi, &cur_off, in sunxi_nfc_hw_ecc_read_page() 1169 u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_read_subpage() 1223 const u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_write_page() 1233 sunxi_nfc_hw_ecc_write_extra_oob(nand, nand->oob_poi, in sunxi_nfc_hw_ecc_write_page() 1261 const u8 *oob = nand->oob_poi + oob_off; in sunxi_nfc_hw_ecc_write_subpage() 1298 const u8 *oob = nand->oob_poi + (i * (ecc->bytes + 4)); in sunxi_nfc_hw_ecc_write_page_dma() [all …]
|
D | cafe_nand.c | 349 return nand_prog_page_op(chip, page, mtd->writesize, chip->oob_poi, in cafe_nand_write_oob() 358 return nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in cafe_nand_read_oob() 382 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in cafe_nand_read_page() 387 u8 *oob = chip->oob_poi; in cafe_nand_read_page() 541 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in cafe_nand_write_page_lowlevel()
|
D | vf610_nfc.c | 580 vf610_nfc_rd_from_sram(chip->oob_poi, in vf610_nfc_read_page() 585 stat = vf610_nfc_correct_data(chip, buf, chip->oob_poi, page); in vf610_nfc_read_page() 663 ret = nand_write_data_op(chip, chip->oob_poi, mtd->oobsize, in vf610_nfc_write_page_raw() 693 chip->oob_poi, mtd->oobsize); in vf610_nfc_write_oob()
|
D | rockchip-nand-controller.c | 204 poi = chip->oob_poi + i * NFC_SYS_DATA_SIZE; in rk_nfc_buf_to_oob_ptr() 214 poi = chip->oob_poi + rknand->metadata_size + chip->ecc.bytes * i; in rk_nfc_buf_to_oob_ecc_ptr() 645 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc() 647 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc() 819 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc() 821 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc()
|
D | pl35x-nand-controller.c | 551 memset(chip->oob_poi, 0xFF, mtd->oobsize); in pl35x_nand_write_page_hwecc() 553 ret = mtd_ooblayout_set_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, in pl35x_nand_write_page_hwecc() 559 pl35x_nand_write_data_op(chip, chip->oob_poi, mtd->oobsize, false, 0, in pl35x_nand_write_page_hwecc() 644 pl35x_nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, false, in pl35x_nand_read_page_hwecc() 646 ret = mtd_ooblayout_get_eccbytes(mtd, nfc->ecc_buf, chip->oob_poi, 0, in pl35x_nand_read_page_hwecc()
|
D | hisi504_nand.c | 527 chip->legacy.read_buf(chip, chip->oob_poi, mtd->oobsize); in hisi_nand_read_page_hwecc() 556 nand_read_oob_op(chip, page, 0, chip->oob_poi, mtd->oobsize); in hisi_nand_read_oob() 575 chip->legacy.write_buf(chip, chip->oob_poi, mtd->oobsize); in hisi_nand_write_page_hwecc()
|
D | fsl_ifc_nand.c | 641 u8 *ecc = chip->oob_poi; in check_erased_page() 677 fsl_ifc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 681 fsl_ifc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_read_page() 701 fsl_ifc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_ifc_write_page()
|
D | denali.c | 386 return denali_read_raw(chip, buf, oob_required ? chip->oob_poi : NULL, in denali_read_page_raw() 393 return denali_write_raw(chip, buf, oob_required ? chip->oob_poi : NULL, in denali_write_page_raw() 399 return denali_read_raw(chip, NULL, chip->oob_poi, page); in denali_read_oob() 404 return denali_write_raw(chip, NULL, chip->oob_poi, page); in denali_write_oob() 414 u8 *ecc_code = chip->oob_poi + denali->oob_skip_bytes; in denali_check_erased_page()
|
D | renesas-nand-controller.c | 448 chip->oob_poi, mtd->oobsize, in rnandc_read_page_hw_ecc() 461 chip->oob_poi + 2 + eccoff, in rnandc_read_page_hw_ecc() 544 chip->oob_poi, mtd->oobsize, in rnandc_read_subpage_hw_ecc() 555 chip->oob_poi + eccoff, in rnandc_read_subpage_hw_ecc() 627 return nand_change_write_column_op(chip, mtd->writesize, chip->oob_poi, in rnandc_write_page_hw_ecc()
|
D | fsl_elbc_nand.c | 642 fsl_elbc_read_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_read_page() 659 fsl_elbc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_page() 675 fsl_elbc_write_buf(chip, chip->oob_poi, mtd->oobsize); in fsl_elbc_write_subpage()
|
D | omap2.c | 1413 chip->oob_poi, in omap_write_page_bch() 1421 info->data_out(chip, chip->oob_poi, mtd->oobsize, false); in omap_write_page_bch() 1492 ret = mtd_ooblayout_set_eccbytes(mtd, ecc_calc, chip->oob_poi, in omap_write_subpage_bch() 1500 info->data_out(chip, chip->oob_poi, mtd->oobsize, false); in omap_write_subpage_bch() 1548 chip->oob_poi + BBM_LEN + in omap_read_page_bch() 1562 chip->oob_poi, in omap_read_page_bch()
|
D | stm32_fmc2_nand.c | 730 chip->oob_poi, mtd->oobsize, in stm32_fmc2_nfc_read_page() 983 chip->oob_poi, mtd->oobsize, in stm32_fmc2_nfc_seq_write() 1114 chip->oob_poi, in stm32_fmc2_nfc_seq_read_page() 1122 chip->oob_poi, mtd->oobsize, false); in stm32_fmc2_nfc_seq_read_page() 1126 ret = mtd_ooblayout_get_eccbytes(mtd, ecc_code, chip->oob_poi, 0, in stm32_fmc2_nfc_seq_read_page() 1156 chip->oob_poi, mtd->oobsize, in stm32_fmc2_nfc_seq_read_page_raw()
|
D | cadence-nand-controller.c | 1447 marker_val = *(u16 *)(chip->oob_poi in cadence_nand_write_page() 1464 oob = chip->oob_poi; in cadence_nand_write_page() 1484 memcpy(cdns_ctrl->buf + mtd->writesize, chip->oob_poi, in cadence_nand_write_page() 1564 const u8 *oob = chip->oob_poi; in cadence_nand_write_page_raw() 1643 oob = chip->oob_poi; in cadence_nand_read_page() 1666 memcpy(chip->oob_poi, in cadence_nand_read_page() 1690 if (cadence_nand_read_bbm(chip, page, chip->oob_poi)) in cadence_nand_read_page() 1765 u8 *oob = chip->oob_poi; in cadence_nand_read_page_raw()
|
D | meson_nand.c | 765 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_raw() 777 u8 *oob_buf = nand->oob_poi; in meson_nfc_write_page_hwecc() 850 u8 *oob_buf = nand->oob_poi; in meson_nfc_read_page_raw() 870 u8 *oob_buf = nand->oob_poi; in meson_nfc_read_page_hwecc() 894 u8 *oob = nand->oob_poi + i * (ecc->bytes + 2); in meson_nfc_read_page_hwecc()
|
D | intel-nand-controller.c | 424 reg = get_unaligned_le32(chip->oob_poi); in ebu_nand_write_page_hwecc() 427 reg = get_unaligned_le32(chip->oob_poi + 4); in ebu_nand_write_page_hwecc()
|
D | lpc32xx_mlc.c | 439 uint8_t *oobbuf = chip->oob_poi; in lpc32xx_read_page() 505 const uint8_t *oobbuf = chip->oob_poi; in lpc32xx_write_page_lowlevel()
|
D | mxc_nand.c | 823 oob_buf = chip->oob_poi; in mxc_nand_read_page() 837 oob_buf = chip->oob_poi; in mxc_nand_read_page_raw() 848 return host->devtype_data->read_page(chip, NULL, chip->oob_poi, 0, in mxc_nand_read_oob() 864 copy_spare(mtd, false, chip->oob_poi); in mxc_nand_write_page()
|
/linux-6.6.21/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 1559 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_page() 1560 chip->oob_poi[0] = ((uint8_t *)this->auxiliary_virt)[0]; in gpmi_ecc_read_page() 1675 memcpy(this->auxiliary_virt, chip->oob_poi, nfc_geo->auxiliary_size); in gpmi_ecc_write_page() 1758 memset(chip->oob_poi, ~0, mtd->oobsize); in gpmi_ecc_read_oob() 1761 ret = nand_read_page_op(chip, page, mtd->writesize, chip->oob_poi, in gpmi_ecc_read_oob() 1773 ret = nand_read_page_op(chip, page, 0, chip->oob_poi, 1); in gpmi_ecc_read_oob() 1795 chip->oob_poi + of.offset, of.length); in gpmi_ecc_write_oob() 1822 uint8_t *oob = chip->oob_poi; in gpmi_ecc_read_page_raw() 1904 uint8_t *oob = chip->oob_poi; in gpmi_ecc_write_page_raw()
|
/linux-6.6.21/drivers/mtd/nand/raw/brcmnand/ |
D | brcmnand.c | 2234 ecc_bytes = chip->oob_poi + ecc.offset; in brcmstb_nand_verify_erased_page() 2347 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page() 2360 u8 *oob = oob_required ? (u8 *)chip->oob_poi : NULL; in brcmnand_read_page_raw() 2378 NULL, (u8 *)chip->oob_poi); in brcmnand_read_oob() 2389 NULL, (u8 *)chip->oob_poi); in brcmnand_read_oob_raw() 2470 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page() 2483 void *oob = oob_required ? chip->oob_poi : NULL; in brcmnand_write_page_raw() 2497 chip->oob_poi); in brcmnand_write_oob() 2508 (u8 *)chip->oob_poi); in brcmnand_write_oob_raw()
|
/linux-6.6.21/drivers/mtd/nand/raw/atmel/ |
D | nand-controller.c | 736 memcpy_toio(nc->sram.virt + mtd->writesize, chip->oob_poi, in atmel_nfc_copy_to_sram() 758 memcpy_fromio(chip->oob_poi, nc->sram.virt + mtd->writesize, in atmel_nfc_copy_from_sram() 838 eccbuf = chip->oob_poi + oobregion.offset; in atmel_nand_pmecc_generate_eccbytes() 873 eccbuf = chip->oob_poi + oobregion.offset; in atmel_nand_pmecc_correct_data() 924 nand_write_data_op(chip, chip->oob_poi, mtd->oobsize, false); in atmel_nand_pmecc_write_pg() 958 ret = nand_read_data_op(chip, chip->oob_poi, mtd->oobsize, false, false); in atmel_nand_pmecc_read_pg() 1022 nand_write_data_op(chip, chip->oob_poi, mtd->oobsize, false); in atmel_hsmc_nand_pmecc_write_pg()
|