Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_spl_simple.c148 int eccsteps = ECCSTEPS; in nand_read_page() local
160 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
179 int eccsteps = ECCSTEPS; in nand_read_page() local
184 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
196 eccsteps = ECCSTEPS; in nand_read_page()
199 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
H A Dam335x_spl_bch.c158 int eccsteps = ECCSTEPS; in nand_read_page() local
162 uint32_t oob_pos = eccsize * eccsteps + nand_ecc_pos[0]; in nand_read_page()
166 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
186 eccsteps = ECCSTEPS; in nand_read_page()
189 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
H A Domap_gpmc.c588 int eccsteps = chip->ecc.steps; in omap_read_page_bch() local
602 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch()
622 eccsteps = chip->ecc.steps; in omap_read_page_bch()
625 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch()
715 int eccsteps = pagesize / SECTOR_BYTES; in omap_select_ecc_scheme() local
734 (3 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
748 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
766 (13 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
785 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
810 (14 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme()
[all …]
H A Dzynq_nand.c565 int i, eccsteps, eccsize = chip->ecc.size; in zynq_nand_write_page_hwecc() local
573 for (eccsteps = chip->ecc.steps; (eccsteps - 1); eccsteps--) { in zynq_nand_write_page_hwecc()
625 int eccsteps = chip->ecc.steps; in zynq_nand_write_page_swecc() local
631 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc()
666 for (eccsteps = chip->ecc.steps; (eccsteps - 1); eccsteps--) { in zynq_nand_read_page_hwecc()
703 eccsteps = chip->ecc.steps; in zynq_nand_read_page_hwecc()
707 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_hwecc()
730 int eccsteps = chip->ecc.steps; in zynq_nand_read_page_swecc() local
738 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_read_page_swecc()
744 eccsteps = chip->ecc.steps; in zynq_nand_read_page_swecc()
[all …]
H A Dnand_bch.c113 unsigned int m, t, eccsteps, i; in nand_bch_init() local
149 eccsteps = mtd->writesize/eccsize; in nand_bch_init()
162 layout->eccbytes = eccsteps*eccbytes; in nand_bch_init()
186 if (layout->eccbytes != (eccsteps*eccbytes)) { in nand_bch_init()
H A Dmxc_nand.c490 int eccsteps = chip->ecc.steps; local
498 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) {
534 eccsteps = chip->ecc.steps;
536 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) {
622 int eccsteps = chip->ecc.steps; local
629 eccsteps;
630 n++, eccsteps--, i += eccbytes, p += eccsize) {
H A Dnand_base.c1295 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
1301 eccsteps = chip->ecc.steps; in nand_read_page_swecc()
1304 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
1443 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
1453 eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
1456 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
1513 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first()
1562 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_syndrome()
2228 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_write_page_swecc()
2256 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_write_page_hwecc()
[all …]
H A Ddavinci_nand.c426 int eccsteps = chip->ecc.steps; in nand_davinci_read_page_hwecc() local
449 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
H A Datmel_nand.c1314 int eccsteps = ECCSTEPS; in nand_read_page() local
1319 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
1330 eccsteps = ECCSTEPS; in nand_read_page()
1333 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page()
H A Dfsmc_nand.c342 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc() local
355 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
/openbmc/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()
/openbmc/u-boot/tools/
H A Dsunxi-spl-image-builder.c346 int eccbytes, eccsteps; in check_image_info() local
386 eccsteps = info->usable_page_size / info->ecc_step_size; in check_image_info()
389 info->usable_page_size + (eccsteps * eccbytes)) { in check_image_info()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c683 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_read_page() local
694 for (i = mtd->writesize + FMC2_BBM_LEN, s = 0; s < eccsteps; in stm32_fmc2_nfc_read_page()
845 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_xfer() local
858 for_each_sg(nfc->dma_data_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer()
864 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer()
869 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer()
889 for_each_sg(nfc->dma_ecc_sg.sgl, sg, eccsteps, s) { in stm32_fmc2_nfc_xfer()
895 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer()
903 eccsteps, dma_transfer_dir, in stm32_fmc2_nfc_xfer()
958 eccsteps, dma_data_dir); in stm32_fmc2_nfc_xfer()
[all …]
H A Dnand_base.c3069 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
3077 eccsteps = chip->ecc.steps; in nand_read_page_swecc()
3080 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
3230 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3250 eccsteps = chip->ecc.steps; in nand_read_page_hwecc()
3253 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3313 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first()
3369 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_syndrome()
4176 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_write_page_swecc()
4208 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_write_page_hwecc()
[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.c2215 unsigned int eccsteps, eccbytes; in ns_attach_chip() local
2229 eccsteps = nsmtd->writesize / 512; in ns_attach_chip()
2233 if (nsmtd->oobsize < 64 || !eccsteps) { in ns_attach_chip()
2238 if (((eccbytes * eccsteps) + 2) > nsmtd->oobsize) { in ns_attach_chip()
H A Dfsmc_nand.c711 int eccsteps = chip->ecc.steps; in fsmc_read_page_hwecc() local
725 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
H A Domap2.c1218 int eccsteps = info->nsteps_per_eccpg; in omap_elm_correct_data() local
1254 for (i = 0; i < eccsteps ; i++) { in omap_elm_correct_data()
1316 for (i = 0; i < eccsteps; i++) { in omap_elm_correct_data()