Home
last modified time | relevance | path

Searched refs:oob_poi (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.6.21/drivers/mtd/nand/raw/
Dnand_micron.c225 !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()
Dlpc32xx_slc.c388 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()
Dnand_base.c267 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 …]
Dmarvell_nand.c1091 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 …]
Dtegra_nand.c623 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()
Dsunxi_nand.c959 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 …]
Dcafe_nand.c349 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()
Dvf610_nfc.c580 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()
Drockchip-nand-controller.c204 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()
Dpl35x-nand-controller.c551 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()
Dhisi504_nand.c527 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()
Dfsl_ifc_nand.c641 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()
Ddenali.c386 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()
Drenesas-nand-controller.c448 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()
Dfsl_elbc_nand.c642 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()
Domap2.c1413 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()
Dstm32_fmc2_nand.c730 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()
Dcadence-nand-controller.c1447 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()
Dmeson_nand.c765 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()
Dintel-nand-controller.c424 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()
Dlpc32xx_mlc.c439 uint8_t *oobbuf = chip->oob_poi; in lpc32xx_read_page()
505 const uint8_t *oobbuf = chip->oob_poi; in lpc32xx_write_page_lowlevel()
Dmxc_nand.c823 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/
Dgpmi-nand.c1559 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/
Dbrcmnand.c2234 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/
Dnand-controller.c736 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()

12