Searched refs:eccbytes (Results 1 - 25 of 32) sorted by relevance

12

/u-boot/drivers/mtd/nand/raw/
H A Dnand_bch.c104 * Initialize NAND BCH error correction. Parameters @eccsize and @eccbytes
106 * correction capability). @eccbytes should be equal to the number of bytes
111 * @eccbytes = 7 (7 bytes are required to store m*t = 13*4 = 52 bits)
121 unsigned int eccbytes = nand->ecc.bytes; local
124 if (!eccbytes && eccstrength) {
125 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8);
126 nand->ecc.bytes = eccbytes;
129 if (!eccsize || !eccbytes) {
135 t = (eccbytes*8)/m;
145 /* verify that eccbytes ha
[all...]
H A Dam335x_spl_bch.c160 int eccbytes = CFG_SYS_NAND_ECCBYTES; local
169 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
177 this->read_buf(mtd, oob, eccbytes);
181 oob_pos += eccbytes;
182 oob += eccbytes;
192 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
H A Dnand_spl_simple.c144 int eccbytes = CFG_SYS_NAND_ECCBYTES; local
157 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
175 int eccbytes = CFG_SYS_NAND_ECCBYTES; local
181 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
196 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
H A Domap_gpmc.c712 int eccbytes = chip->ecc.bytes; local
726 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize,
727 oob += eccbytes) {
737 chip->read_buf(mtd, oob, eccbytes);
742 oob_pos += eccbytes;
752 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
875 ecclayout->eccbytes = nand->ecc.bytes * eccsteps;
876 for (i = 0; i < ecclayout->eccbytes; i++) {
883 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes -
913 ecclayout->eccbytes
[all...]
H A Dmxc_nand.c55 .eccbytes = 5,
61 .eccbytes = 20,
74 .eccbytes = 9,
80 .eccbytes = 36,
446 int eccbytes = chip->ecc.bytes; local
447 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad;
466 chip->read_buf(mtd, oob, eccbytes);
467 oob += eccbytes;
491 int eccbytes = chip->ecc.bytes; local
492 int eccpitch = eccbytes
583 int eccbytes = chip->ecc.bytes; local
623 int eccbytes = chip->ecc.bytes; local
[all...]
H A Dzynq_nand.c191 .eccbytes = 3,
199 .eccbytes = 12,
209 .eccbytes = 32,
644 int eccbytes = chip->ecc.bytes; local
651 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
677 int eccbytes = chip->ecc.bytes; local
727 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
749 int eccbytes = chip->ecc.bytes; local
758 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
767 for (i = 0; eccsteps; eccsteps--, i += eccbytes,
[all...]
H A Ddavinci_nand.c269 .eccbytes = 40,
293 .eccbytes = 80,
313 .eccbytes = 40,
327 .eccbytes = 80,
429 int eccbytes = chip->ecc.bytes; local
453 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
H A Dnand_base.c54 .eccbytes = 3,
64 .eccbytes = 6,
72 .eccbytes = 24,
83 .eccbytes = 48,
1787 int eccbytes = chip->ecc.bytes; local
1807 ret = nand_read_data_op(chip, oob, eccbytes, false);
1811 oob += eccbytes;
1845 int eccbytes = chip->ecc.bytes; local
1855 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
1864 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes,
2004 int eccbytes = chip->ecc.bytes; local
2074 int eccbytes = chip->ecc.bytes; local
2141 int eccbytes = chip->ecc.bytes; local
2817 int eccbytes = chip->ecc.bytes; local
2875 int eccbytes = chip->ecc.bytes; local
2904 int eccbytes = chip->ecc.bytes; local
3016 int eccbytes = chip->ecc.bytes; local
[all...]
H A Dfsl_ifc_nand.c61 .eccbytes = 8,
68 .eccbytes = 8,
75 .eccbytes = 32,
87 .eccbytes = 64,
103 .eccbytes = 128,
127 .eccbytes = 128,
151 .eccbytes = 256,
H A Datmel_nand.c100 layout->eccbytes = ecc_len;
682 ecc_layout->eccpos[ecc_layout->eccbytes - 1]);
978 .eccbytes = 4,
991 .eccbytes = 4,
1039 int eccbytes = chip->ecc.bytes; local
1063 chip->read_buf(mtd, ecc_pos, eccbytes);
1327 int eccbytes = CFG_SYS_NAND_ECCBYTES; local
1333 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
1347 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
H A Dstm32_fmc2_nand.c517 int eccbytes = chip->ecc.bytes; local
526 s++, i += eccbytes, p += eccsize) {
535 chip->read_buf(mtd, ecc_code, eccbytes);
542 ecc_code, eccbytes,
1031 ecclayout->eccbytes = chip->ecc.bytes *
1034 for (i = 0; i < ecclayout->eccbytes; i++, oob_index++)
H A Docteontx_nand.c462 layout->eccbytes = nand->ecc.steps * nand->ecc.bytes;
464 if (layout->eccbytes + 2 > oobsize) {
465 pr_err("No suitable oob scheme available for oobsize %d eccbytes %u\n",
466 oobsize, layout->eccbytes);
470 for (i = 0; i < layout->eccbytes; i++)
471 layout->eccpos[i] = oobsize - layout->eccbytes + i;
473 layout->oobfree[0].length = oobsize - 2 - layout->eccbytes;
1604 int eccbytes = chip->ecc.bytes; local
1621 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
1650 int eccbytes local
1813 unsigned int eccbytes = nand->ecc.bytes; local
[all...]
H A Dcortina_nand.c1251 eccoob.eccbytes = mtd->writesize / nand->ecc.size * nand->ecc.bytes;
1253 if (mtd->oobsize < eccoob.eccbytes) {
1262 ecc_start_offset = mtd->oobsize - eccoob.eccbytes;
1264 for (i = 0; i < eccoob.eccbytes; ++i)
1272 eccoob.oobavail = nand->ecc.bytes - eccoob.eccbytes - 2;
1275 mtd->oobsize - eccoob.eccbytes - eccoob.oobfree[0].offset - 1;
H A Dfsl_elbc_nand.c86 .eccbytes = 3,
93 .eccbytes = 3,
100 .eccbytes = 12,
107 .eccbytes = 12,
H A Dvf610_nfc.c171 .eccbytes = 45,
186 .eccbytes = 60,
H A Darasan_nfc.c224 .eccbytes = 32,
1210 nand_oob.eccbytes = ecc_matrix[found].eccsize;
1211 eccpos_start = mtd->oobsize - nand_oob.eccbytes;
1213 for (i = 0; i < nand_oob.eccbytes; i++)
H A Dlpc32xx_nand_mlc.c204 .eccbytes = 40,
H A Dlpc32xx_nand_slc.c79 .eccbytes = 6,
H A Dsand_nand.c625 chip->ecc_bits = nand->ecc.layout->eccbytes * 8 /
H A Drockchip_nfc.c872 ecc->layout->eccbytes = ecc->bytes * ecc->steps;
874 for (i = 0; i < ecc->layout->eccbytes; i++)
/u-boot/tools/
H A Dsunxi-spl-image-builder.c118 int eccbytes = DIV_ROUND_UP(info->ecc_strength * 14, 8); local
123 if (eccbytes % 2)
124 eccbytes++;
159 offs = steps * (info->ecc_step_size + eccbytes + 4);
168 offs = info->page_size + (steps * (eccbytes + 4));
181 memset(buffer, 0xff, info->ecc_step_size + eccbytes + 4);
184 data_offs = i * (info->ecc_step_size + eccbytes + 4);
188 ecc_offs = info->page_size + 4 + (i * (eccbytes + 4));
214 memset(ecc, 0, eccbytes);
218 swap_bits(ecc, eccbytes);
346 int eccbytes, eccsteps; local
[all...]
/u-boot/include/mtd/
H A Dmtd-abi.h203 __u32 eccbytes; member in struct:nand_oobinfo
224 __u32 eccbytes; member in struct:nand_ecclayout_user
/u-boot/drivers/mtd/nand/raw/atmel/
H A Dpmecc.c158 int eccbytes; member in struct:atmel_pmecc_user
268 int i, max_eccbytes, eccbytes = 0, eccstrength = 0; local
312 eccbytes = nbytes;
321 req->ecc.bytes = eccbytes;
325 req->ecc.ooboffset = req->oobsize - eccbytes;
378 user->eccbytes = req->ecc.bytes / req->ecc.nsectors;
683 int eccbytes = user->eccbytes; local
713 } else if (byte < sectorsize + eccbytes) {
719 errpos, (sectorsize + eccbytes) *
[all...]
/u-boot/include/linux/mtd/
H A Dmtd.h143 __u32 eccbytes; member in struct:nand_ecclayout
/u-boot/drivers/mtd/onenand/
H A Donenand_base.c55 .eccbytes = 64,
75 .eccbytes = 20,
92 .eccbytes = 10,

Completed in 311 milliseconds

12