| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_bch.c | 118 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init() local 121 if (!eccbytes && eccstrength) { in nand_bch_init() 122 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init() 123 nand->ecc.bytes = eccbytes; in nand_bch_init() 126 if (!eccsize || !eccbytes) { in nand_bch_init() 132 t = (eccbytes*8)/m; in nand_bch_init() 143 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 145 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init() 162 layout->eccbytes = eccsteps*eccbytes; in nand_bch_init() 165 if (layout->eccbytes+2 > mtd->oobsize) { in nand_bch_init() [all …]
|
| H 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()
|
| H A D | omap_gpmc.c | 588 int eccbytes = chip->ecc.bytes; in omap_read_page_bch() local 603 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch() 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() 626 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { 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() 757 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme() 786 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme() [all …]
|
| H A D | mxc_nand.c | 53 .eccbytes = 5, 59 .eccbytes = 20, 72 .eccbytes = 9, 78 .eccbytes = 36, 444 int eccbytes = chip->ecc.bytes; local 445 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad; 464 chip->read_buf(mtd, oob, eccbytes); 465 oob += eccbytes; 489 int eccbytes = chip->ecc.bytes; local 490 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad; [all …]
|
| H A D | nand_spl_simple.c | 148 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local 161 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 179 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local 185 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page() 200 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
|
| H A D | fsmc_nand.c | 31 .eccbytes = 104, 67 .eccbytes = 104, 120 .eccbytes = 13, 137 .eccbytes = 24, 342 int eccbytes = chip->ecc.bytes; in fsmc_read_page_hwecc() local 356 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 362 for (j = 0; j < eccbytes;) { in fsmc_read_page_hwecc()
|
| H A D | zynq_nand.c | 178 .eccbytes = 3, 186 .eccbytes = 12, 196 .eccbytes = 32, 625 int eccbytes = chip->ecc.bytes; in zynq_nand_write_page_swecc() local 632 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc() 658 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_hwecc() local 708 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_hwecc() 730 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_swecc() local 739 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_read_page_swecc() 748 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_swecc()
|
| H A D | davinci_nand.c | 266 .eccbytes = 40, 290 .eccbytes = 80, 310 .eccbytes = 40, 324 .eccbytes = 80, 426 int eccbytes = chip->ecc.bytes; in nand_davinci_read_page_hwecc() local 450 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
|
| H A D | atmel_nand.c | 96 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout() 488 int i, err_nbr, eccbytes; in pmecc_correction() local 495 eccbytes = nand_chip->ecc.bytes; in pmecc_correction() 496 for (i = 0; i < eccbytes; i++) in pmecc_correction() 675 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); in atmel_pmecc_core_init() 964 .eccbytes = 4, 977 .eccbytes = 4, 1025 int eccbytes = chip->ecc.bytes; in atmel_nand_read_page() local 1049 chip->read_buf(mtd, ecc_pos, eccbytes); in atmel_nand_read_page() 1314 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local [all …]
|
| H A D | nand_base.c | 52 .eccbytes = 3, 62 .eccbytes = 6, 70 .eccbytes = 24, 81 .eccbytes = 48, 1797 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 1817 ret = nand_read_data_op(chip, oob, eccbytes, false); in nand_read_page_raw_syndrome() 1821 oob += eccbytes; in nand_read_page_raw_syndrome() 1855 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local 1865 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 1874 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() [all …]
|
| H A D | fsl_ifc_nand.c | 64 .eccbytes = 8, 71 .eccbytes = 8, 78 .eccbytes = 32, 90 .eccbytes = 64, 106 .eccbytes = 128, 130 .eccbytes = 128, 154 .eccbytes = 256,
|
| H A D | stm32_fmc2_nand.c | 532 int eccbytes = chip->ecc.bytes; in stm32_fmc2_read_page() local 541 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_read_page() 550 chip->read_buf(mtd, ecc_code, eccbytes); in stm32_fmc2_read_page() 557 ecc_code, eccbytes, in stm32_fmc2_read_page() 1047 ecclayout->eccbytes = chip->ecc.bytes * in stm32_fmc2_probe() 1050 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++) in stm32_fmc2_probe()
|
| H A D | fsl_elbc_nand.c | 81 .eccbytes = 3, 88 .eccbytes = 3, 95 .eccbytes = 12, 102 .eccbytes = 12,
|
| H A D | pxa3xx_nand.c | 319 .eccbytes = 32, 329 .eccbytes = 64, 343 .eccbytes = 64, 358 .eccbytes = 128, 385 .eccbytes = 128, 395 .eccbytes = 256,
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | nand_bch.c | 113 unsigned int eccbytes = nand->ecc.bytes; in nand_bch_init() local 116 if (!eccbytes && eccstrength) { in nand_bch_init() 117 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init() 118 nand->ecc.bytes = eccbytes; in nand_bch_init() 121 if (!eccsize || !eccbytes) { in nand_bch_init() 127 t = (eccbytes*8)/m; in nand_bch_init() 138 if (nbc->bch->ecc_bytes != eccbytes) { in nand_bch_init() 140 eccbytes, nbc->bch->ecc_bytes); in nand_bch_init() 153 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init() 167 nand->ecc.total = eccsteps * eccbytes; in nand_bch_init() [all …]
|
| H A D | txx9ndfmc.c | 172 int eccbytes; in txx9ndfmc_calculate_ecc() local 178 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
|
| H A D | nand_base.c | 2672 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local 2696 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome() 2700 oob += eccbytes; in nand_read_page_raw_syndrome() 2734 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local 2743 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 2754 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 2893 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local 2904 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2927 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 2935 &ecc_code[i], eccbytes, in nand_read_page_hwecc() [all …]
|
| H A D | mxc_nand.c | 157 int eccbytes; member 1482 .eccbytes = 3, 1507 .eccbytes = 3, 1533 .eccbytes = 9, 1558 .eccbytes = 0, 1584 .eccbytes = 0, 1684 chip->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_attach_chip()
|
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | sunxi-spl-image-builder.c | 118 int eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); in write_page() local 123 if (eccbytes % 2) in write_page() 124 eccbytes++; in write_page() 159 offs = steps * (info->ecc_step_size + eccbytes + 4); in write_page() 168 offs = info->page_size + (steps * (eccbytes + 4)); in write_page() 181 memset(buffer, 0xff, info->ecc_step_size + eccbytes + 4); in write_page() 184 data_offs = i * (info->ecc_step_size + eccbytes + 4); in write_page() 188 ecc_offs = info->page_size + 4 + (i * (eccbytes + 4)); in write_page() 214 memset(ecc, 0, eccbytes); in write_page() 218 swap_bits(ecc, eccbytes); in write_page() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/atmel/ |
| H A D | pmecc.c | 171 int eccbytes; member 280 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; in atmel_pmecc_prepare_user_req() local 324 eccbytes = nbytes; in atmel_pmecc_prepare_user_req() 333 req->ecc.bytes = eccbytes; in atmel_pmecc_prepare_user_req() 337 req->ecc.ooboffset = req->oobsize - eccbytes; in atmel_pmecc_prepare_user_req() 390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user() 695 int eccbytes = user->eccbytes; in atmel_pmecc_correct_sector() local 725 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector() 731 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector() 759 for (i = 0; i < user->eccbytes; i++) in atmel_pmecc_get_generated_eccbytes()
|
| /OK3568_Linux_fs/kernel/include/uapi/mtd/ |
| H A D | mtd-abi.h | 215 __u32 eccbytes; member 236 __u32 eccbytes; member
|
| /OK3568_Linux_fs/u-boot/include/mtd/ |
| H A D | mtd-abi.h | 204 __u32 eccbytes; member 225 __u32 eccbytes; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/mtd/ |
| H A D | mtd-abi.h | 214 __u32 eccbytes; member 235 __u32 eccbytes; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/mtd/ |
| H A D | mtd-abi.h | 214 __u32 eccbytes; member 235 __u32 eccbytes; member
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ingenic/ |
| H A D | ingenic_nand_drv.c | 187 int eccbytes; in ingenic_nand_attach_chip() local 227 eccbytes = mtd->writesize / chip->ecc.size * chip->ecc.bytes; in ingenic_nand_attach_chip() 229 if (eccbytes > mtd->oobsize - 2) { in ingenic_nand_attach_chip() 232 eccbytes, mtd->oobsize - 2); in ingenic_nand_attach_chip()
|