/u-boot/drivers/mtd/nand/raw/ |
A D | nand_bch.c | 123 if (!eccbytes && eccstrength) { in nand_bch_init() 125 nand->ecc.bytes = eccbytes; in nand_bch_init() 128 if (!eccsize || !eccbytes) { in nand_bch_init() 134 t = (eccbytes*8)/m; in nand_bch_init() 145 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 147 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init() 164 layout->eccbytes = eccsteps*eccbytes; in nand_bch_init() 170 eccbytes); in nand_bch_init() 188 if (layout->eccbytes != (eccsteps*eccbytes)) { in nand_bch_init() 205 memset(nbc->eccmask, 0, eccbytes); in nand_bch_init() [all …]
|
A D | am335x_spl_bch.c | 158 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local 167 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 175 this->read_buf(mtd, oob, eccbytes); in nand_read_page() 179 oob_pos += eccbytes; in nand_read_page() 180 oob += eccbytes; in nand_read_page() 190 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
|
A D | omap_gpmc.c | 588 int eccbytes = chip->ecc.bytes; in omap_read_page_bch() local 604 oob += eccbytes) { in omap_read_page_bch() 612 chip->read_buf(mtd, oob, eccbytes); in omap_read_page_bch() 617 oob_pos += eccbytes; in omap_read_page_bch() 749 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 750 for (i = 0; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme() 786 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 788 for (i = 1; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme() 828 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 829 for (i = 0; i < ecclayout->eccbytes; i++) in omap_select_ecc_scheme() [all …]
|
A D | nand_spl_simple.c | 147 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local 160 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 178 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local 184 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 199 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
|
A D | mxc_nand.c | 54 .eccbytes = 5, 60 .eccbytes = 20, 73 .eccbytes = 9, 79 .eccbytes = 36, 445 int eccbytes = chip->ecc.bytes; local 466 oob += eccbytes; 490 int eccbytes = chip->ecc.bytes; local 520 oob += eccbytes; 600 host->col_addr += eccbytes; 601 oob += eccbytes; [all …]
|
A D | fsmc_nand.c | 30 .eccbytes = 104, 66 .eccbytes = 104, 119 .eccbytes = 13, 136 .eccbytes = 24, 341 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local 355 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 361 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
|
A D | davinci_nand.c | 267 .eccbytes = 40, 291 .eccbytes = 80, 311 .eccbytes = 40, 325 .eccbytes = 80, 427 int eccbytes = chip->ecc.bytes; 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 | zynq_nand.c | 190 .eccbytes = 3, 198 .eccbytes = 12, 208 .eccbytes = 32, 643 int eccbytes = chip->ecc.bytes; in zynq_nand_write_page_swecc() local 650 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc() 676 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_hwecc() local 726 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_hwecc() 748 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_swecc() local 757 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_read_page_swecc() 766 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_swecc()
|
A D | atmel_nand.c | 101 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout() 496 int i, err_nbr, eccbytes; in pmecc_correction() local 503 eccbytes = nand_chip->ecc.bytes; in pmecc_correction() 504 for (i = 0; i < eccbytes; i++) in pmecc_correction() 684 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); in atmel_pmecc_core_init() 980 .eccbytes = 4, 993 .eccbytes = 4, 1041 int eccbytes = chip->ecc.bytes; in atmel_nand_read_page() local 1065 chip->read_buf(mtd, ecc_pos, eccbytes); in atmel_nand_read_page() 1329 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local [all …]
|
A D | nand_base.c | 57 .eccbytes = 3, 67 .eccbytes = 6, 75 .eccbytes = 24, 86 .eccbytes = 48, 1802 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 1826 oob += eccbytes; in nand_read_page_raw_syndrome() 2056 &ecc_code[i], eccbytes, in nand_read_page_hwecc() 2126 &ecc_code[i], eccbytes, in nand_read_page_hwecc_oob_first() 2189 oob += eccbytes; in nand_read_page_syndrome() 2856 oob += eccbytes; in nand_write_page_raw_syndrome() [all …]
|
A D | fsl_ifc_nand.c | 65 .eccbytes = 8, 72 .eccbytes = 8, 79 .eccbytes = 32, 91 .eccbytes = 64, 107 .eccbytes = 128, 131 .eccbytes = 128, 155 .eccbytes = 256,
|
A D | octeontx_nand.c | 466 layout->eccbytes = nand->ecc.steps * nand->ecc.bytes; in octeontx_nand_calc_ecc_layout() 468 if (layout->eccbytes + 2 > oobsize) { in octeontx_nand_calc_ecc_layout() 470 oobsize, layout->eccbytes); in octeontx_nand_calc_ecc_layout() 474 for (i = 0; i < layout->eccbytes; i++) in octeontx_nand_calc_ecc_layout() 475 layout->eccpos[i] = oobsize - layout->eccbytes + i; in octeontx_nand_calc_ecc_layout() 1608 int eccbytes = chip->ecc.bytes; in octeontx_nand_hw_bch_read_page() local 1654 int eccbytes = chip->ecc.bytes; in octeontx_nand_hw_bch_write_page() local 1817 unsigned int eccbytes = nand->ecc.bytes; in octeontx_bch_save_empty_eccmask() local 1818 u8 erased_ecc[eccbytes]; in octeontx_bch_save_empty_eccmask() 1829 memset(erased_ecc, 0, eccbytes); in octeontx_bch_save_empty_eccmask() [all …]
|
A D | fsl_elbc_nand.c | 82 .eccbytes = 3, 89 .eccbytes = 3, 96 .eccbytes = 12, 103 .eccbytes = 12,
|
A D | stm32_fmc2_nand.c | 508 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local 517 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page() 526 chip->read_buf(mtd, ecc_code, eccbytes); in stm32_fmc2_nfc_read_page() 533 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page() 1004 ecclayout->eccbytes = chip->ecc.bytes * in stm32_fmc2_nfc_probe() 1007 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) in stm32_fmc2_nfc_probe()
|
A D | cortina_nand.c | 1250 eccoob.eccbytes = mtd->writesize / nand->ecc.size * nand->ecc.bytes; in nand_config_oob_layout() 1252 if (mtd->oobsize < eccoob.eccbytes) { in nand_config_oob_layout() 1261 ecc_start_offset = mtd->oobsize - eccoob.eccbytes; in nand_config_oob_layout() 1263 for (i = 0; i < eccoob.eccbytes; ++i) in nand_config_oob_layout() 1271 eccoob.oobavail = nand->ecc.bytes - eccoob.eccbytes - 2; in nand_config_oob_layout() 1274 mtd->oobsize - eccoob.eccbytes - eccoob.oobfree[0].offset - 1; in nand_config_oob_layout()
|
A D | pxa3xx_nand.c | 334 .eccbytes = 32, 344 .eccbytes = 64, 358 .eccbytes = 64, 373 .eccbytes = 128, 400 .eccbytes = 128, 410 .eccbytes = 256,
|
A D | arasan_nfc.c | 223 .eccbytes = 32, 1209 nand_oob.eccbytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init() 1210 eccpos_start = mtd->oobsize - nand_oob.eccbytes; in arasan_nand_ecc_init() 1212 for (i = 0; i < nand_oob.eccbytes; i++) in arasan_nand_ecc_init()
|
A D | vf610_nfc.c | 170 .eccbytes = 45, 185 .eccbytes = 60,
|
A D | lpc32xx_nand_mlc.c | 202 .eccbytes = 40,
|
A D | lpc32xx_nand_slc.c | 77 .eccbytes = 6,
|
A D | tegra_nand.c | 55 .eccbytes = 36,
|
/u-boot/tools/ |
A D | sunxi-spl-image-builder.c | 123 if (eccbytes % 2) in write_page() 124 eccbytes++; in write_page() 168 offs = info->page_size + (steps * (eccbytes + 4)); in write_page() 214 memset(ecc, 0, eccbytes); in write_page() 218 swap_bits(ecc, eccbytes); in write_page() 224 fwrite(ecc - 4, eccbytes + 4, 1, dst); in write_page() 346 int eccbytes, eccsteps; in check_image_info() local 381 eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); in check_image_info() 382 if (eccbytes % 2) in check_image_info() 383 eccbytes++; in check_image_info() [all …]
|
/u-boot/include/mtd/ |
A D | mtd-abi.h | 203 __u32 eccbytes; member 224 __u32 eccbytes; member
|
/u-boot/include/linux/mtd/ |
A D | mtd.h | 143 __u32 eccbytes; member
|
/u-boot/drivers/mtd/onenand/ |
A D | onenand_base.c | 54 .eccbytes = 64, 74 .eccbytes = 20, 91 .eccbytes = 10,
|