| /rk3399_rockchip-uboot/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 | 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 | 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 | 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,
|
| H A D | arasan_nfc.c | 214 .eccbytes = 32, 1171 nand_oob.eccbytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init() 1172 eccpos_start = mtd->oobsize - nand_oob.eccbytes; in arasan_nand_ecc_init() 1174 for (i = 0; i < nand_oob.eccbytes; i++) in arasan_nand_ecc_init()
|
| H A D | vf610_nfc.c | 168 .eccbytes = 45, 183 .eccbytes = 60,
|
| H A D | rockchip_nand_v9.c | 94 .eccbytes = 24, 505 nand_oob_fix.eccbytes = ecc->bytes * ecc->steps; in rockchip_nand_hw_ecc_ctrl_init()
|
| H A D | rockchip_nand.c | 92 .eccbytes = 24, 504 nand_oob_fix.eccbytes = ecc->bytes * ecc->steps; in rockchip_nand_hw_ecc_ctrl_init()
|
| H A D | lpc32xx_nand_mlc.c | 202 .eccbytes = 40,
|
| H A D | lpc32xx_nand_slc.c | 74 .eccbytes = 6,
|
| H A D | tegra_nand.c | 51 .eccbytes = 36,
|
| /rk3399_rockchip-uboot/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 …]
|
| /rk3399_rockchip-uboot/include/mtd/ |
| H A D | mtd-abi.h | 204 __u32 eccbytes; member 225 __u32 eccbytes; member
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | mtd.h | 148 __u32 eccbytes; member
|
| /rk3399_rockchip-uboot/drivers/mtd/onenand/ |
| H A D | onenand_base.c | 51 .eccbytes = 64, 71 .eccbytes = 20, 88 .eccbytes = 10,
|