Home
last modified time | relevance | path

Searched refs:eccsteps (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_bch.c109 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()
168 if (mtd_ooblayout_count_eccbytes(mtd) != (eccsteps*eccbytes)) { in nand_bch_init()
Dstm32_fmc2_nand.c726 int eccsteps = chip->ecc.steps; in stm32_fmc2_read_page() local
737 for (i = mtd->writesize + FMC2_BBM_LEN, s = 0; s < eccsteps; in stm32_fmc2_read_page()
894 int eccsteps = chip->ecc.steps; in stm32_fmc2_xfer() local
906 for_each_sg(fmc2->dma_data_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_xfer()
912 eccsteps, dma_data_dir); in stm32_fmc2_xfer()
917 eccsteps, dma_transfer_dir, in stm32_fmc2_xfer()
937 for_each_sg(fmc2->dma_ecc_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_xfer()
943 eccsteps, dma_data_dir); in stm32_fmc2_xfer()
949 eccsteps, dma_transfer_dir, in stm32_fmc2_xfer()
1006 eccsteps, dma_data_dir); in stm32_fmc2_xfer()
[all …]
Dnand_base.c2700 int eccsteps = chip->ecc.steps; in nand_read_page_swecc() local
2708 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
2716 eccsteps = chip->ecc.steps; in nand_read_page_swecc()
2719 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
2859 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc() local
2869 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
2888 eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
2891 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
2933 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc_oob_first() local
2953 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first()
[all …]
Dmtk_nand.c1122 u32 eccsteps; in mtk_nfc_ooblayout_free() local
1124 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_free()
1126 if (section >= eccsteps) in mtk_nfc_ooblayout_free()
1140 u32 eccsteps; in mtk_nfc_ooblayout_ecc() local
1145 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_ecc()
1146 oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; in mtk_nfc_ooblayout_ecc()
1194 u32 eccsteps, i, closest_spare = 0; in mtk_nfc_set_spare_per_sector() local
1196 eccsteps = mtd->writesize / nand->ecc.size; in mtk_nfc_set_spare_per_sector()
1197 *sps = mtd->oobsize / eccsteps; in mtk_nfc_set_spare_per_sector()
Dnandsim.c2181 unsigned int eccsteps, eccbytes; in ns_attach_chip() local
2192 eccsteps = nsmtd->writesize / 512; in ns_attach_chip()
2196 if (nsmtd->oobsize < 64 || !eccsteps) { in ns_attach_chip()
2201 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()
Dfsmc_nand.c677 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc() local
691 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
Domap2.c1357 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()