/u-boot/drivers/mtd/nand/raw/ |
A D | nand_spl_simple.c | 148 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()
|
A D | am335x_spl_bch.c | 159 int eccsteps = ECCSTEPS; in nand_read_page() local 163 uint32_t oob_pos = eccsize * eccsteps + nand_ecc_pos[0]; in nand_read_page() 167 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 187 eccsteps = ECCSTEPS; in nand_read_page() 190 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
|
A D | omap_gpmc.c | 589 int eccsteps = chip->ecc.steps; in omap_read_page_bch() local 603 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch() 623 eccsteps = chip->ecc.steps; in omap_read_page_bch() 626 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch() 716 int eccsteps = pagesize / SECTOR_BYTES; in omap_select_ecc_scheme() local 735 (3 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme() 749 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 767 (13 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme() 786 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 811 (14 * eccsteps) + BADBLOCK_MARKER_LENGTH)); in omap_select_ecc_scheme() [all …]
|
A D | zynq_nand.c | 584 int i, eccsteps, eccsize = chip->ecc.size; in zynq_nand_write_page_hwecc() local 592 for (eccsteps = chip->ecc.steps; (eccsteps - 1); eccsteps--) { in zynq_nand_write_page_hwecc() 644 int eccsteps = chip->ecc.steps; in zynq_nand_write_page_swecc() local 650 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc() 685 for (eccsteps = chip->ecc.steps; (eccsteps - 1); eccsteps--) { in zynq_nand_read_page_hwecc() 722 eccsteps = chip->ecc.steps; in zynq_nand_read_page_hwecc() 726 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_hwecc() 749 int eccsteps = chip->ecc.steps; in zynq_nand_read_page_swecc() local 757 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_read_page_swecc() 763 eccsteps = chip->ecc.steps; in zynq_nand_read_page_swecc() [all …]
|
A D | nand_bch.c | 115 unsigned int m, t, eccsteps, i; in nand_bch_init() local 151 eccsteps = mtd->writesize/eccsize; in nand_bch_init() 164 layout->eccbytes = eccsteps*eccbytes; in nand_bch_init() 188 if (layout->eccbytes != (eccsteps*eccbytes)) { in nand_bch_init()
|
A D | mxc_nand.c | 492 int eccsteps = chip->ecc.steps; local 500 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) { 536 eccsteps = chip->ecc.steps; 538 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) { 624 int eccsteps = chip->ecc.steps; local 631 eccsteps; 632 n++, eccsteps--, i += eccbytes, p += eccsize) {
|
A D | nand_base.c | 1870 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 1876 eccsteps = chip->ecc.steps; in nand_read_page_swecc() 1879 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 2028 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2045 eccsteps = chip->ecc.steps; in nand_read_page_hwecc() 2048 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2110 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc_oob_first() 2163 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_syndrome() 2897 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_write_page_swecc() 2926 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_write_page_hwecc() [all …]
|
A D | cortina_nand.c | 595 int ret, i, j, k, n, step, eccsteps, max_bitflips = 0; in ca_do_bch_decode() local 601 for (i = 0, eccsteps = chip->ecc.steps; eccsteps; in ca_do_bch_decode() 602 i += chip->ecc.bytes, eccsteps--) { in ca_do_bch_decode() 689 int i, j, n, eccsteps, gen_index; in ca_do_bch_encode() local 693 for (i = 0, n = 0, eccsteps = chip->ecc.steps; eccsteps; in ca_do_bch_encode() 694 i += chip->ecc.bytes, eccsteps--, n++) { in ca_do_bch_encode()
|
A D | davinci_nand.c | 428 int eccsteps = chip->ecc.steps; in nand_davinci_read_page_hwecc() local 451 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
|
A D | atmel_nand.c | 1330 int eccsteps = ECCSTEPS; in nand_read_page() local 1335 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 1346 eccsteps = ECCSTEPS; in nand_read_page() 1349 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page()
|
A D | fsmc_nand.c | 342 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()
|
A D | octeontx_nand.c | 1609 int eccsteps = chip->ecc.steps; in octeontx_nand_hw_bch_read_page() local 1625 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in octeontx_nand_hw_bch_read_page() 1655 int eccsteps = chip->ecc.steps; in octeontx_nand_hw_bch_write_page() local 1670 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in octeontx_nand_hw_bch_write_page()
|
A D | stm32_fmc2_nand.c | 509 int eccsteps = chip->ecc.steps; in stm32_fmc2_nfc_read_page() local 516 for (i = mtd->writesize + FMC2_BBM_LEN, s = 0; s < eccsteps; in stm32_fmc2_nfc_read_page()
|
/u-boot/tools/ |
A D | sunxi-spl-image-builder.c | 346 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()
|