Home
last modified time | relevance | path

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

12

/u-boot/drivers/mtd/nand/raw/
A Dnand_bch.c123 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 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()
A Domap_gpmc.c588 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 Dnand_spl_simple.c147 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 Dmxc_nand.c54 .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 Dfsmc_nand.c30 .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 Ddavinci_nand.c267 .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 Dzynq_nand.c190 .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 Datmel_nand.c101 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 Dnand_base.c57 .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 Dfsl_ifc_nand.c65 .eccbytes = 8,
72 .eccbytes = 8,
79 .eccbytes = 32,
91 .eccbytes = 64,
107 .eccbytes = 128,
131 .eccbytes = 128,
155 .eccbytes = 256,
A Docteontx_nand.c466 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 Dfsl_elbc_nand.c82 .eccbytes = 3,
89 .eccbytes = 3,
96 .eccbytes = 12,
103 .eccbytes = 12,
A Dstm32_fmc2_nand.c508 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 Dcortina_nand.c1250 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 Dpxa3xx_nand.c334 .eccbytes = 32,
344 .eccbytes = 64,
358 .eccbytes = 64,
373 .eccbytes = 128,
400 .eccbytes = 128,
410 .eccbytes = 256,
A Darasan_nfc.c223 .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 Dvf610_nfc.c170 .eccbytes = 45,
185 .eccbytes = 60,
A Dlpc32xx_nand_mlc.c202 .eccbytes = 40,
A Dlpc32xx_nand_slc.c77 .eccbytes = 6,
A Dtegra_nand.c55 .eccbytes = 36,
/u-boot/tools/
A Dsunxi-spl-image-builder.c123 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 Dmtd-abi.h203 __u32 eccbytes; member
224 __u32 eccbytes; member
/u-boot/include/linux/mtd/
A Dmtd.h143 __u32 eccbytes; member
/u-boot/drivers/mtd/onenand/
A Donenand_base.c54 .eccbytes = 64,
74 .eccbytes = 20,
91 .eccbytes = 10,

Completed in 66 milliseconds

12