| /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 | 159 int eccbytes = CFG_SYS_NAND_ECCBYTES; in nand_read_page() local 168 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 176 this->read_buf(mtd, oob, eccbytes); in nand_read_page() 180 oob_pos += eccbytes; in nand_read_page() 181 oob += eccbytes; in nand_read_page() 191 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
|
| A D | nand_spl_simple.c | 143 int eccbytes = CFG_SYS_NAND_ECCBYTES; in nand_read_page() local 156 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 174 int eccbytes = CFG_SYS_NAND_ECCBYTES; in nand_read_page() local 180 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 195 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 | omap_gpmc.c | 587 int eccbytes = chip->ecc.bytes; in omap_calculate_ecc_bch_multi() local 597 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi() 754 int eccbytes = chip->ecc.bytes; in omap_read_page_bch() local 912 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 913 for (i = 0; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme() 949 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 951 for (i = 1; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme() 991 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() 992 for (i = 0; i < ecclayout->eccbytes; i++) in omap_select_ecc_scheme() 1024 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() [all …]
|
| A D | davinci_nand.c | 268 .eccbytes = 40, 292 .eccbytes = 80, 312 .eccbytes = 40, 326 .eccbytes = 80, 428 int eccbytes = chip->ecc.bytes; in nand_davinci_read_page_hwecc() local 452 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 | nand_base.c | 54 .eccbytes = 3, 64 .eccbytes = 6, 72 .eccbytes = 24, 83 .eccbytes = 48, 1820 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 1844 oob += eccbytes; in nand_read_page_raw_syndrome() 2074 &ecc_code[i], eccbytes, in nand_read_page_hwecc() 2144 &ecc_code[i], eccbytes, in nand_read_page_hwecc_oob_first() 2207 oob += eccbytes; in nand_read_page_syndrome() 2874 oob += eccbytes; in nand_write_page_raw_syndrome() [all …]
|
| A D | fsl_ifc_nand.c | 61 .eccbytes = 8, 68 .eccbytes = 8, 75 .eccbytes = 32, 87 .eccbytes = 64, 103 .eccbytes = 128, 127 .eccbytes = 128, 151 .eccbytes = 256,
|
| A D | octeontx_nand.c | 462 layout->eccbytes = nand->ecc.steps * nand->ecc.bytes; in octeontx_nand_calc_ecc_layout() 464 if (layout->eccbytes + 2 > oobsize) { in octeontx_nand_calc_ecc_layout() 466 oobsize, layout->eccbytes); in octeontx_nand_calc_ecc_layout() 470 for (i = 0; i < layout->eccbytes; i++) in octeontx_nand_calc_ecc_layout() 471 layout->eccpos[i] = oobsize - layout->eccbytes + i; in octeontx_nand_calc_ecc_layout() 1604 int eccbytes = chip->ecc.bytes; in octeontx_nand_hw_bch_read_page() local 1650 int eccbytes = chip->ecc.bytes; in octeontx_nand_hw_bch_write_page() local 1813 unsigned int eccbytes = nand->ecc.bytes; in octeontx_bch_save_empty_eccmask() local 1814 u8 erased_ecc[eccbytes]; in octeontx_bch_save_empty_eccmask() 1825 memset(erased_ecc, 0, eccbytes); in octeontx_bch_save_empty_eccmask() [all …]
|
| A D | atmel_nand.c | 98 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout() 680 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); in atmel_pmecc_core_init() 976 .eccbytes = 4, 989 .eccbytes = 4, 1037 int eccbytes = chip->ecc.bytes; in atmel_nand_read_page() local 1061 chip->read_buf(mtd, ecc_pos, eccbytes); in atmel_nand_read_page() 1325 int eccbytes = CFG_SYS_NAND_ECCBYTES; in nand_read_page() local 1331 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 1345 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page()
|
| A D | stm32_fmc2_nand.c | 511 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local 520 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page() 529 chip->read_buf(mtd, ecc_code, eccbytes); in stm32_fmc2_nfc_read_page() 536 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page() 1017 ecclayout->eccbytes = chip->ecc.bytes * in stm32_fmc2_nfc_probe() 1020 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) in stm32_fmc2_nfc_probe()
|
| A D | fsl_elbc_nand.c | 86 .eccbytes = 3, 93 .eccbytes = 3, 100 .eccbytes = 12, 107 .eccbytes = 12,
|
| A D | cortina_nand.c | 1251 eccoob.eccbytes = mtd->writesize / nand->ecc.size * nand->ecc.bytes; in nand_config_oob_layout() 1253 if (mtd->oobsize < eccoob.eccbytes) { in nand_config_oob_layout() 1262 ecc_start_offset = mtd->oobsize - eccoob.eccbytes; in nand_config_oob_layout() 1264 for (i = 0; i < eccoob.eccbytes; ++i) in nand_config_oob_layout() 1272 eccoob.oobavail = nand->ecc.bytes - eccoob.eccbytes - 2; in nand_config_oob_layout() 1275 mtd->oobsize - eccoob.eccbytes - eccoob.oobfree[0].offset - 1; in nand_config_oob_layout()
|
| 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 | 203 .eccbytes = 40,
|
| A D | lpc32xx_nand_slc.c | 78 .eccbytes = 6,
|
| A D | rockchip_nfc.c | 864 ecc->layout->eccbytes = ecc->bytes * ecc->steps; in rk_nfc_ecc_init() 866 for (i = 0; i < ecc->layout->eccbytes; i++) in rk_nfc_ecc_init()
|
| A D | tegra_nand.c | 56 .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/drivers/mtd/nand/raw/atmel/ |
| A D | pmecc.c | 158 int eccbytes; member 268 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; in atmel_pmecc_prepare_user_req() local 312 eccbytes = nbytes; in atmel_pmecc_prepare_user_req() 321 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req() 325 req->ecc.ooboffset = req->oobsize - eccbytes; in atmel_pmecc_prepare_user_req() 378 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user() 683 int eccbytes = user->eccbytes; in atmel_pmecc_correct_sector() local 713 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector() 719 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector() 747 for (i = 0; i < user->eccbytes; i++) in atmel_pmecc_get_generated_eccbytes()
|
| /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,
|