Home
last modified time | relevance | path

Searched refs:eccsize (Results 1 – 12 of 12) sorted by relevance

/external/u-boot/drivers/mtd/nand/
Dnand_bch.c117 unsigned int eccsize = nand->ecc.size; in nand_bch_init() local
122 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
126 if (!eccsize || !eccbytes) { in nand_bch_init()
131 m = fls(1+8*eccsize); in nand_bch_init()
149 eccsteps = mtd->writesize/eccsize; in nand_bch_init()
182 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init()
183 printk(KERN_WARNING "eccsize %u is too large\n", eccsize); in nand_bch_init()
198 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
202 memset(erased_page, 0xff, eccsize); in nand_bch_init()
204 encode_bch(nbc->bch, erased_page, eccsize, nbc->eccmask); in nand_bch_init()
[all …]
Dam335x_spl_bch.c156 int eccsize = CONFIG_SYS_NAND_ECCSIZE; in nand_read_page() local
162 uint32_t oob_pos = eccsize * eccsteps + nand_ecc_pos[0]; in nand_read_page()
166 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
170 this->read_buf(mtd, p, eccsize); in nand_read_page()
177 data_pos += eccsize; in nand_read_page()
189 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
Dnand_spl_simple.c146 int eccsize = CONFIG_SYS_NAND_ECCSIZE; in nand_read_page() local
160 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
162 this->read_buf(mtd, p, eccsize); in nand_read_page()
177 int eccsize = CONFIG_SYS_NAND_ECCSIZE; in nand_read_page() local
184 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
187 this->read_buf(mtd, p, eccsize); in nand_read_page()
199 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
Dzynq_nand.c565 int i, eccsteps, eccsize = chip->ecc.size; in zynq_nand_write_page_hwecc() local
574 chip->write_buf(mtd, p, eccsize); in zynq_nand_write_page_hwecc()
575 p += eccsize; in zynq_nand_write_page_hwecc()
577 chip->write_buf(mtd, p, (eccsize - data_width)); in zynq_nand_write_page_hwecc()
578 p += eccsize - data_width; in zynq_nand_write_page_hwecc()
623 int i, eccsize = chip->ecc.size; in zynq_nand_write_page_swecc() local
631 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in zynq_nand_write_page_swecc()
656 int i, stat, eccsteps, eccsize = chip->ecc.size; in zynq_nand_read_page_hwecc() local
667 chip->read_buf(mtd, p, eccsize); in zynq_nand_read_page_hwecc()
668 p += eccsize; in zynq_nand_read_page_hwecc()
[all …]
Dmxc_nand.c442 int eccsize = chip->ecc.size; local
453 host->col_addr = n * eccsize;
454 chip->read_buf(mtd, buf, eccsize);
455 buf += eccsize;
487 int n, eccsize = chip->ecc.size; local
498 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) {
501 host->col_addr = n * eccsize;
503 chip->read_buf(mtd, p, eccsize);
536 for (n = 0; eccsteps; n++, eccsteps--, p += eccsize) {
579 int eccsize = chip->ecc.size; local
[all …]
Dnand_base.c1241 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local
1247 chip->read_buf(mtd, buf, eccsize); in nand_read_page_raw_syndrome()
1248 buf += eccsize; in nand_read_page_raw_syndrome()
1282 int i, eccsize = chip->ecc.size; in nand_read_page_swecc() local
1293 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
1302 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
1432 int i, eccsize = chip->ecc.size; in nand_read_page_hwecc() local
1441 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
1443 chip->read_buf(mtd, p, eccsize); in nand_read_page_hwecc()
1454 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
[all …]
Dfsmc_nand.c340 int i, j, s, stat, eccsize = chip->ecc.size; in fsmc_read_page_hwecc() local
355 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
357 chip->cmdfunc(mtd, NAND_CMD_READ0, s * eccsize, page); in fsmc_read_page_hwecc()
359 chip->read_buf(mtd, p, eccsize); in fsmc_read_page_hwecc()
Domap_gpmc.c586 int i, eccsize = chip->ecc.size; in omap_read_page_bch() local
599 oob_pos = (eccsize * eccsteps) + chip->ecc.layout->eccpos[0]; in omap_read_page_bch()
602 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize, in omap_read_page_bch()
607 chip->read_buf(mtd, p, eccsize); in omap_read_page_bch()
615 data_pos += eccsize; in omap_read_page_bch()
625 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch()
Datmel_nand.c532 int eccsize = chip->ecc.size; in atmel_nand_pmecc_read_page() local
546 chip->read_buf(mtd, buf, eccsize); in atmel_nand_pmecc_read_page()
1023 int eccsize = chip->ecc.size; in atmel_nand_read_page() local
1032 chip->read_buf(mtd, p, eccsize); in atmel_nand_read_page()
1312 int eccsize = CONFIG_SYS_NAND_ECCSIZE; in nand_read_page() local
1319 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
1322 this->read_buf(mtd, p, eccsize); in nand_read_page()
1333 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page()
Ddavinci_nand.c424 int i, eccsize = chip->ecc.size; in nand_davinci_read_page_hwecc() local
449 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
453 chip->read_buf(mtd, p, eccsize); in nand_davinci_read_page_hwecc()
Darasan_nfc.c165 u16 eccsize; member
1156 ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
1159 (ecc_matrix[found].eccsize << ARASAN_NAND_ECC_SIZE_SHIFT) | in arasan_nand_ecc_init()
1171 nand_oob.eccbytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
1182 nand_chip->ecc.bytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
Dvf610_nfc.c586 int eccsize = chip->ecc.size; in vf610_nfc_read_page() local
589 vf610_nfc_read_buf(mtd, buf, eccsize); in vf610_nfc_read_page()