Home
last modified time | relevance | path

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

/linux/drivers/mtd/nand/
H A Decc-sw-bch.c298 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_bch_prepare_io_req() local
320 eccsteps; in nand_ecc_sw_bch_prepare_io_req()
321 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_prepare_io_req()
336 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_bch_finish_io_req() local
364 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_finish_io_req()
368 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_bch_finish_io_req()
369 eccsteps; in nand_ecc_sw_bch_finish_io_req()
370 eccsteps--, i += eccbytes, data += eccsize) { in nand_ecc_sw_bch_finish_io_req()
H A Decc-sw-hamming.c552 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_hamming_prepare_io_req() local
574 eccsteps; in nand_ecc_sw_hamming_prepare_io_req()
575 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_prepare_io_req()
590 int eccsteps = nand->ecc.ctx.nsteps; in nand_ecc_sw_hamming_finish_io_req() local
618 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_finish_io_req()
622 for (eccsteps = nand->ecc.ctx.nsteps, i = 0, data = req->databuf.in; in nand_ecc_sw_hamming_finish_io_req()
623 eccsteps; in nand_ecc_sw_hamming_finish_io_req()
624 eccsteps--, i += eccbytes, data += eccsize) { in nand_ecc_sw_hamming_finish_io_req()
/linux/drivers/mtd/nand/raw/
H A Dnand_base.c2949 int eccsteps = chip->ecc.steps; in nand_read_page_swecc() local
2957 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
2965 eccsteps = chip->ecc.steps; in nand_read_page_swecc()
2968 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
3108 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc() local
3118 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3138 eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
3141 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3181 int eccsteps = chip->ecc.steps; in nand_read_page_hwecc_oob_first() local
3201 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first()
[all …]
H A Dstm32_fmc2_nand.c701 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_read_page() local
712 for (i = mtd->writesize + FMC2_BBM_LEN, s = 0; s < eccsteps; in stm32_fmc2_nfc_read_page()
863 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_xfer() local
876 for_each_sg(nfc->dma_data_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer()
882 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer()
887 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer()
906 for_each_sg(nfc->dma_ecc_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer()
914 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer()
967 dma_unmap_sg(nfc->dev, nfc->dma_data_sg.sgl, eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer()
1051 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_seq_correct() local
[all …]
H A Dmtk_nand.c1127 u32 eccsteps; in mtk_nfc_ooblayout_free() local
1129 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_free()
1131 if (section >= eccsteps) in mtk_nfc_ooblayout_free()
1145 u32 eccsteps; in mtk_nfc_ooblayout_ecc() local
1150 eccsteps = mtd->writesize / chip->ecc.size; in mtk_nfc_ooblayout_ecc()
1151 oob_region->offset = mtk_nand->fdm.reg_size * eccsteps; in mtk_nfc_ooblayout_ecc()
1199 u32 eccsteps, i, closest_spare = 0; in mtk_nfc_set_spare_per_sector() local
1201 eccsteps = mtd->writesize / nand->ecc.size; in mtk_nfc_set_spare_per_sector()
1202 *sps = mtd->oobsize / eccsteps; in mtk_nfc_set_spare_per_sector()
H A Dnandsim.c2214 unsigned int eccsteps, eccbytes; in ns_attach_chip() local
2228 eccsteps = nsmtd->writesize / 512; in ns_attach_chip()
2232 if (nsmtd->oobsize < 64 || !eccsteps) { in ns_attach_chip()
2237 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()