Searched refs:eccsteps (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | nand_bch.c | 124 unsigned int m, t, eccsteps, i; in nand_bch_init() local 159 eccsteps = mtd->writesize/eccsize; in nand_bch_init() 181 nand->ecc.steps = eccsteps; in nand_bch_init() 182 nand->ecc.total = eccsteps * eccbytes; in nand_bch_init() 183 if (mtd_ooblayout_count_eccbytes(mtd) != (eccsteps*eccbytes)) { in nand_bch_init()
|
D | nand_base.c | 3094 int eccsteps = chip->ecc.steps; in nand_read_page_swecc() local 3102 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 3110 eccsteps = chip->ecc.steps; in nand_read_page_swecc() 3113 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 3254 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc() local 3264 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 3283 eccsteps = chip->ecc.steps; in nand_read_page_hwecc() 3286 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 3328 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc_oob_first() local 3348 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first() [all …]
|
D | mtk_nand.c | 1086 u32 eccsteps; in mtk_nfc_ooblayout_free() local 1088 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_free() 1090 if (section >= eccsteps) in mtk_nfc_ooblayout_free() 1104 u32 eccsteps; in mtk_nfc_ooblayout_ecc() local 1109 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_ecc() 1110 oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; in mtk_nfc_ooblayout_ecc() 1158 u32 eccsteps, i, closest_spare = 0; in mtk_nfc_set_spare_per_sector() local 1160 eccsteps = mtd->writesize / nand->ecc.size; in mtk_nfc_set_spare_per_sector() 1161 *sps = mtd->oobsize / eccsteps; in mtk_nfc_set_spare_per_sector()
|
D | nandsim.c | 2197 unsigned int eccsteps, eccbytes; in ns_attach_chip() local 2208 eccsteps = nsmtd->writesize / 512; in ns_attach_chip() 2212 if (nsmtd->oobsize < 64 || !eccsteps) { in ns_attach_chip() 2217 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()
|
D | fsmc_nand.c | 727 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc() local 741 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
|
D | omap2.c | 1356 int eccsteps = info->nand.ecc.steps; in omap_elm_correct_data() local 1392 for (i = 0; i < eccsteps ; i++) { in omap_elm_correct_data() 1454 for (i = 0; i < eccsteps; i++) { in omap_elm_correct_data()
|
/Linux-v4.19/drivers/staging/mt29f_spinand/ |
D | mt29f_spinand.c | 640 int eccsteps = chip->ecc.steps; in spinand_write_page_hwecc() local 643 return nand_prog_page_op(chip, page, 0, p, eccsize * eccsteps); in spinand_write_page_hwecc() 653 int eccsteps = chip->ecc.steps; in spinand_read_page_hwecc() local 658 nand_read_page_op(chip, page, 0, p, eccsize * eccsteps); in spinand_read_page_hwecc()
|