Home
last modified time | relevance | path

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

12

/openbmc/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.c157 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local
166 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
174 this->read_buf(mtd, oob, eccbytes); in nand_read_page()
178 oob_pos += eccbytes; in nand_read_page()
179 oob += eccbytes; in nand_read_page()
189 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
H A Domap_gpmc.c587 int eccbytes = chip->ecc.bytes; in omap_read_page_bch() local
602 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch()
603 oob += eccbytes) { in omap_read_page_bch()
611 chip->read_buf(mtd, oob, eccbytes); in omap_read_page_bch()
616 oob_pos += eccbytes; in omap_read_page_bch()
625 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch()
748 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
749 for (i = 0; i < ecclayout->eccbytes; i++) { in omap_select_ecc_scheme()
756 ecclayout->oobfree[0].length = oobsize - ecclayout->eccbytes - in omap_select_ecc_scheme()
785 ecclayout->eccbytes = nand->ecc.bytes * eccsteps; in omap_select_ecc_scheme()
[all …]
H A Dmxc_nand.c52 .eccbytes = 5,
58 .eccbytes = 20,
71 .eccbytes = 9,
77 .eccbytes = 36,
443 int eccbytes = chip->ecc.bytes; local
444 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad;
463 chip->read_buf(mtd, oob, eccbytes);
464 oob += eccbytes;
488 int eccbytes = chip->ecc.bytes; local
489 int eccpitch = eccbytes + chip->ecc.prepad + chip->ecc.postpad;
[all …]
H 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()
H 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()
H A Dzynq_nand.c177 .eccbytes = 3,
185 .eccbytes = 12,
195 .eccbytes = 32,
624 int eccbytes = chip->ecc.bytes; in zynq_nand_write_page_swecc() local
631 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc()
657 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_hwecc() local
707 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_hwecc()
729 int eccbytes = chip->ecc.bytes; in zynq_nand_read_page_swecc() local
738 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_read_page_swecc()
747 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in zynq_nand_read_page_swecc()
H A Ddavinci_nand.c265 .eccbytes = 40,
289 .eccbytes = 80,
309 .eccbytes = 40,
323 .eccbytes = 80,
425 int eccbytes = chip->ecc.bytes; in nand_davinci_read_page_hwecc() local
449 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
H A Dnand_base.c52 .eccbytes = 3,
62 .eccbytes = 6,
70 .eccbytes = 24,
81 .eccbytes = 48,
1244 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
1257 chip->read_buf(mtd, oob, eccbytes); in nand_read_page_raw_syndrome()
1258 oob += eccbytes; in nand_read_page_raw_syndrome()
1285 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
1295 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
1304 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
[all …]
H A Datmel_nand.c95 layout->eccbytes = ecc_len; in pmecc_config_ecc_layout()
487 int i, err_nbr, eccbytes; in pmecc_correction() local
494 eccbytes = nand_chip->ecc.bytes; in pmecc_correction()
495 for (i = 0; i < eccbytes; i++) in pmecc_correction()
674 ecc_layout->eccpos[ecc_layout->eccbytes - 1]); in atmel_pmecc_core_init()
963 .eccbytes = 4,
976 .eccbytes = 4,
1024 int eccbytes = chip->ecc.bytes; in atmel_nand_read_page() local
1048 chip->read_buf(mtd, ecc_pos, eccbytes); in atmel_nand_read_page()
1313 int eccbytes = CONFIG_SYS_NAND_ECCBYTES; in nand_read_page() local
[all …]
H A Dfsl_ifc_nand.c63 .eccbytes = 8,
70 .eccbytes = 8,
77 .eccbytes = 32,
89 .eccbytes = 64,
105 .eccbytes = 128,
129 .eccbytes = 128,
153 .eccbytes = 256,
H A Dfsl_elbc_nand.c80 .eccbytes = 3,
87 .eccbytes = 3,
94 .eccbytes = 12,
101 .eccbytes = 12,
H A Dpxa3xx_nand.c318 .eccbytes = 32,
328 .eccbytes = 64,
342 .eccbytes = 64,
357 .eccbytes = 128,
384 .eccbytes = 128,
394 .eccbytes = 256,
/openbmc/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 …]
/openbmc/linux/drivers/mtd/nand/
H A Decc-sw-bch.c112 unsigned int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_init() local
118 t = (eccbytes * 8) / m; in nand_ecc_sw_bch_init()
124 engine_conf->eccmask = kzalloc(eccbytes, GFP_KERNEL); in nand_ecc_sw_bch_init()
144 for (i = 0; i < eccbytes; i++) in nand_ecc_sw_bch_init()
148 if (engine_conf->bch->ecc_bytes != eccbytes) { in nand_ecc_sw_bch_init()
150 eccbytes, engine_conf->bch->ecc_bytes); in nand_ecc_sw_bch_init()
156 if (8 * (eccsize + eccbytes) >= (1 << m)) { in nand_ecc_sw_bch_init()
297 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_prepare_io_req() local
321 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_prepare_io_req()
335 int eccbytes = engine_conf->code_size; in nand_ecc_sw_bch_finish_io_req() local
[all …]
H A Decc-sw-hamming.c551 int eccbytes = engine_conf->code_size; in nand_ecc_sw_hamming_prepare_io_req() local
575 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_prepare_io_req()
589 int eccbytes = engine_conf->code_size; in nand_ecc_sw_hamming_finish_io_req() local
618 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_finish_io_req()
624 eccsteps--, i += eccbytes, data += eccsize) { in nand_ecc_sw_hamming_finish_io_req()
/openbmc/linux/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()
388 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user()
687 int eccbytes = user->eccbytes; in atmel_pmecc_correct_sector() local
717 } else if (byte < sectorsize + eccbytes) { in atmel_pmecc_correct_sector()
723 errpos, (sectorsize + eccbytes) * 8); in atmel_pmecc_correct_sector()
751 for (i = 0; i < user->eccbytes; i++) in atmel_pmecc_get_generated_eccbytes()
/openbmc/u-boot/include/mtd/
H A Dmtd-abi.h203 __u32 eccbytes; member
224 __u32 eccbytes; member
/openbmc/linux/drivers/mtd/nand/raw/
H A Dtxx9ndfmc.c171 int eccbytes; in txx9ndfmc_calculate_ecc() local
177 for (eccbytes = chip->ecc.bytes; eccbytes > 0; eccbytes -= 3) { in txx9ndfmc_calculate_ecc()
H A Dnand_base.c2998 int eccbytes = chip->ecc.bytes; in nand_read_page_raw_syndrome() local
3022 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome()
3026 oob += eccbytes; in nand_read_page_raw_syndrome()
3060 int eccbytes = chip->ecc.bytes; in nand_read_page_swecc() local
3069 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
3080 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
3219 int eccbytes = chip->ecc.bytes; in nand_read_page_hwecc() local
3230 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3253 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
3261 &ecc_code[i], eccbytes, in nand_read_page_hwecc()
[all …]
H A Dmxc_nand.c155 int eccbytes; member
1479 .eccbytes = 3,
1504 .eccbytes = 3,
1530 .eccbytes = 9,
1555 .eccbytes = 0,
1581 .eccbytes = 0,
1617 chip->ecc.bytes = host->devtype_data->eccbytes; in mxcnd_attach_chip()
H A Domap2.c1005 int eccbytes = info->nand.ecc.bytes; in _omap_calculate_ecc_bch() local
1092 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch()
1097 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1103 for (j = 0; j < eccbytes; j++) in _omap_calculate_ecc_bch()
1108 ecc_calc[eccbytes - 1] = 0x0; in _omap_calculate_ecc_bch()
1147 int eccbytes = info->nand.ecc.bytes; in omap_calculate_ecc_bch_multi() local
1157 ecc_calc += eccbytes; in omap_calculate_ecc_bch_multi()
H A Dstm32_fmc2_nand.c682 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_read_page() local
695 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
706 eccbytes, false); in stm32_fmc2_nfc_read_page()
715 ecc_code, eccbytes, in stm32_fmc2_nfc_read_page()
1032 int eccbytes = chip->ecc.bytes; in stm32_fmc2_nfc_seq_correct() local
1040 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, dat += eccsize) { in stm32_fmc2_nfc_seq_correct()
1071 eccbytes, in stm32_fmc2_nfc_seq_correct()
/openbmc/linux/include/uapi/mtd/
H A Dmtd-abi.h270 __u32 eccbytes; member
291 __u32 eccbytes; member
/openbmc/linux/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