Searched refs:eccsteps (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.10/drivers/mtd/nand/raw/ |
| D | nand_bch.c | 109 unsigned int m, t, eccsteps, i; in nand_bch_init() local 144 eccsteps = mtd->writesize/eccsize; in nand_bch_init() 166 nand->ecc.steps = eccsteps; in nand_bch_init() 167 nand->ecc.total = eccsteps * eccbytes; in nand_bch_init() 169 if (mtd_ooblayout_count_eccbytes(mtd) != (eccsteps*eccbytes)) { in nand_bch_init()
|
| D | stm32_fmc2_nand.c | 679 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_read_page() local 690 for (i = mtd->writesize + FMC2_BBM_LEN, s = 0; s < eccsteps; in stm32_fmc2_nfc_read_page() 841 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_xfer() local 854 for_each_sg(nfc->dma_data_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer() 860 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer() 865 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer() 885 for_each_sg(nfc->dma_ecc_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer() 891 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer() 897 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer() 952 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer() [all …]
|
| D | nand_base.c | 2734 int eccsteps = chip->ecc.steps; in nand_read_page_swecc() local 2742 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 2750 eccsteps = chip->ecc.steps; in nand_read_page_swecc() 2753 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 2893 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc() local 2903 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2923 eccsteps = chip->ecc.steps; in nand_read_page_hwecc() 2926 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2965 int eccsteps = chip->ecc.steps; in nand_read_page_syndrome() local 2975 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_syndrome() [all …]
|
| D | mtk_nand.c | 1154 u32 eccsteps; in mtk_nfc_ooblayout_free() local 1156 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_free() 1158 if (section >= eccsteps) in mtk_nfc_ooblayout_free() 1172 u32 eccsteps; in mtk_nfc_ooblayout_ecc() local 1177 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_ecc() 1178 oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; in mtk_nfc_ooblayout_ecc() 1226 u32 eccsteps, i, closest_spare = 0; in mtk_nfc_set_spare_per_sector() local 1228 eccsteps = mtd->writesize / nand->ecc.size; in mtk_nfc_set_spare_per_sector() 1229 *sps = mtd->oobsize / eccsteps; in mtk_nfc_set_spare_per_sector()
|
| D | davinci_nand.c | 394 int eccsteps = chip->ecc.steps; in nand_davinci_read_page_hwecc_oob_first() local 414 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc_oob_first()
|
| D | nandsim.c | 2212 unsigned int eccsteps, eccbytes; in ns_attach_chip() local 2223 eccsteps = nsmtd->writesize / 512; in ns_attach_chip() 2227 if (nsmtd->oobsize < 64 || !eccsteps) { in ns_attach_chip() 2232 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()
|
| D | fsmc_nand.c | 680 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc() local 694 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
|
| D | omap2.c | 1357 int eccsteps = info->nand.ecc.steps; in omap_elm_correct_data() local 1393 for (i = 0; i < eccsteps ; i++) { in omap_elm_correct_data() 1455 for (i = 0; i < eccsteps; i++) { in omap_elm_correct_data()
|