/external/u-boot/drivers/mtd/nand/ |
D | nand_bch.c | 117 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 …]
|
D | am335x_spl_bch.c | 156 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()
|
D | nand_spl_simple.c | 146 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()
|
D | zynq_nand.c | 565 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 …]
|
D | mxc_nand.c | 442 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 …]
|
D | nand_base.c | 1241 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 …]
|
D | fsmc_nand.c | 340 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()
|
D | omap_gpmc.c | 586 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()
|
D | atmel_nand.c | 532 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()
|
D | davinci_nand.c | 424 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()
|
D | arasan_nfc.c | 165 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()
|
D | vf610_nfc.c | 586 int eccsize = chip->ecc.size; in vf610_nfc_read_page() local 589 vf610_nfc_read_buf(mtd, buf, eccsize); in vf610_nfc_read_page()
|