Home
last modified time | relevance | path

Searched refs:eccbytes (Results 1 – 25 of 45) sorted by relevance

12

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dnand_bch.c118 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 Dam335x_spl_bch.c158 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 Domap_gpmc.c588 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 Dmxc_nand.c53 .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 Dnand_spl_simple.c148 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 Dfsmc_nand.c31 .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 Dzynq_nand.c178 .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 Ddavinci_nand.c266 .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 Datmel_nand.c96 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 Dnand_base.c52 .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 Dfsl_ifc_nand.c64 .eccbytes = 8,
71 .eccbytes = 8,
78 .eccbytes = 32,
90 .eccbytes = 64,
106 .eccbytes = 128,
130 .eccbytes = 128,
154 .eccbytes = 256,
H A Dstm32_fmc2_nand.c532 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 Dfsl_elbc_nand.c81 .eccbytes = 3,
88 .eccbytes = 3,
95 .eccbytes = 12,
102 .eccbytes = 12,
H A Dpxa3xx_nand.c319 .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 Dnand_bch.c113 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 Dtxx9ndfmc.c172 int eccbytes; in txx9ndfmc_calculate_ecc() local
178 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
H A Dnand_base.c2672 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 Dmxc_nand.c157 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 Dsunxi-spl-image-builder.c118 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 Dpmecc.c171 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 Dmtd-abi.h215 __u32 eccbytes; member
236 __u32 eccbytes; member
/OK3568_Linux_fs/u-boot/include/mtd/
H A Dmtd-abi.h204 __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 Dmtd-abi.h214 __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 Dmtd-abi.h214 __u32 eccbytes; member
235 __u32 eccbytes; member
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ingenic/
H A Dingenic_nand_drv.c187 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()

12