Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/nand/raw/
A Dnand_bch.c119 unsigned int eccsize = nand->ecc.size; in nand_bch_init() local
124 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
128 if (!eccsize || !eccbytes) { in nand_bch_init()
133 m = fls(1+8*eccsize); in nand_bch_init()
151 eccsteps = mtd->writesize/eccsize; in nand_bch_init()
184 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init()
185 printk(KERN_WARNING "eccsize %u is too large\n", eccsize); in nand_bch_init()
200 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
204 memset(erased_page, 0xff, eccsize); in nand_bch_init()
206 encode_bch(nbc->bch, erased_page, eccsize, nbc->eccmask); in nand_bch_init()
[all …]
A Dam335x_spl_bch.c158 int eccsize = CFG_SYS_NAND_ECCSIZE; in nand_read_page() local
164 uint32_t oob_pos = eccsize * eccsteps + nand_ecc_pos[0]; in nand_read_page()
168 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
172 this->read_buf(mtd, p, eccsize); in nand_read_page()
179 data_pos += eccsize; in nand_read_page()
191 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
A Dnand_spl_simple.c142 int eccsize = CFG_SYS_NAND_ECCSIZE; in nand_read_page() local
156 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
158 this->read_buf(mtd, p, eccsize); in nand_read_page()
173 int eccsize = CFG_SYS_NAND_ECCSIZE; in nand_read_page() local
180 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
183 this->read_buf(mtd, p, eccsize); in nand_read_page()
195 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
A Dzynq_nand.c584 int i, eccsteps, eccsize = chip->ecc.size; in zynq_nand_write_page_hwecc() local
593 chip->write_buf(mtd, p, eccsize); in zynq_nand_write_page_hwecc()
594 p += eccsize; in zynq_nand_write_page_hwecc()
596 chip->write_buf(mtd, p, (eccsize - data_width)); in zynq_nand_write_page_hwecc()
597 p += eccsize - data_width; in zynq_nand_write_page_hwecc()
642 int i, eccsize = chip->ecc.size; in zynq_nand_write_page_swecc() local
686 chip->read_buf(mtd, p, eccsize); in zynq_nand_read_page_hwecc()
687 p += eccsize; in zynq_nand_read_page_hwecc()
689 chip->read_buf(mtd, p, (eccsize - data_width)); in zynq_nand_read_page_hwecc()
690 p += eccsize - data_width; in zynq_nand_read_page_hwecc()
[all …]
A Dmxc_nand.c444 int eccsize = chip->ecc.size; local
455 host->col_addr = n * eccsize;
457 buf += eccsize;
489 int n, eccsize = chip->ecc.size; local
503 host->col_addr = n * eccsize;
505 chip->read_buf(mtd, p, eccsize);
581 int eccsize = chip->ecc.size; local
589 host->col_addr = n * eccsize;
591 buf += eccsize;
633 host->col_addr = n * eccsize;
[all …]
A Dnand_base.c1819 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local
1829 buf += eccsize; in nand_read_page_raw_syndrome()
1877 int i, eccsize = chip->ecc.size; in nand_read_page_swecc() local
2036 int i, eccsize = chip->ecc.size; in nand_read_page_hwecc() local
2532 int eccsize = chip->ecc.size; in nand_read_oob_syndrome() local
2544 pos = eccsize + i * (eccsize + chunk); in nand_read_oob_syndrome()
2612 pos = eccsize; in nand_write_oob_syndrome()
2623 len = eccsize; in nand_write_oob_syndrome()
2635 pos = eccsize + i * (eccsize + chunk); in nand_write_oob_syndrome()
2849 int eccsize = chip->ecc.size; in nand_write_page_raw_syndrome() local
[all …]
A Dstm32_fmc2_nand.c459 int i, ret, den, eccsize = chip->ecc.size; in stm32_fmc2_nfc_bch_correct() local
497 if (pos[i] < eccsize * 8) { in stm32_fmc2_nfc_bch_correct()
510 int i, s, stat, eccsize = chip->ecc.size; in stm32_fmc2_nfc_read_page() local
520 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
524 chip->cmdfunc(mtd, NAND_CMD_RNDOUT, s * eccsize, -1); in stm32_fmc2_nfc_read_page()
525 chip->read_buf(mtd, p, eccsize); in stm32_fmc2_nfc_read_page()
535 stat = nand_check_erased_ecc_chunk(p, eccsize, in stm32_fmc2_nfc_read_page()
A Datmel_nand.c537 int eccsize = chip->ecc.size; in atmel_nand_pmecc_read_page() local
551 chip->read_buf(mtd, buf, eccsize); in atmel_nand_pmecc_read_page()
1036 int eccsize = chip->ecc.size; in atmel_nand_read_page() local
1045 chip->read_buf(mtd, p, eccsize); in atmel_nand_read_page()
1324 int eccsize = CFG_SYS_NAND_ECCSIZE; in nand_read_page() local
1331 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page()
1334 this->read_buf(mtd, p, eccsize); in nand_read_page()
1345 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page()
A Ddavinci_nand.c427 int i, eccsize = chip->ecc.size; in nand_davinci_read_page_hwecc() local
452 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc()
456 chip->read_buf(mtd, p, eccsize); in nand_davinci_read_page_hwecc()
A Darasan_nfc.c177 u16 eccsize; member
1194 ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
1197 (ecc_matrix[found].eccsize << ARASAN_NAND_ECC_SIZE_SHIFT) | in arasan_nand_ecc_init()
1209 nand_oob.eccbytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
1220 nand_chip->ecc.bytes = ecc_matrix[found].eccsize; in arasan_nand_ecc_init()
A Docteontx_nand.c1603 int i, eccsize = chip->ecc.size, ret; in octeontx_nand_hw_bch_read_page() local
1621 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in octeontx_nand_hw_bch_read_page()
1649 int i, eccsize = chip->ecc.size, ret; in octeontx_nand_hw_bch_write_page() local
1666 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in octeontx_nand_hw_bch_write_page()
1812 unsigned int eccsize = nand->ecc.size; in octeontx_bch_save_empty_eccmask() local
1816 unsigned char *erased_page = dma_alloc_coherent(eccsize, in octeontx_bch_save_empty_eccmask()
1824 memset(erased_page, 0xff, eccsize); in octeontx_bch_save_empty_eccmask()
A Dvf610_nfc.c594 int eccsize = chip->ecc.size; in vf610_nfc_read_page() local
597 vf610_nfc_read_buf(mtd, buf, eccsize); in vf610_nfc_read_page()
A Domap_gpmc.c753 int i, eccsize = chip->ecc.size; in omap_read_page_bch() local
765 oob_pos = (eccsize * eccsteps) + chip->ecc.layout->eccpos[0]; in omap_read_page_bch()
789 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in omap_read_page_bch()

Completed in 60 milliseconds