/linux/drivers/mtd/nand/ |
A D | ecc-sw-bch.c | 111 unsigned int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_init() local 117 m = fls(1 + (8 * eccsize)); in nand_ecc_sw_bch_init() 133 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_ecc_sw_bch_init() 139 memset(erased_page, 0xff, eccsize); in nand_ecc_sw_bch_init() 140 bch_encode(engine_conf->bch, erased_page, eccsize, in nand_ecc_sw_bch_init() 156 if (8 * (eccsize + eccbytes) >= (1 << m)) { in nand_ecc_sw_bch_init() 157 pr_err("ECC step size is too large (%u)\n", eccsize); in nand_ecc_sw_bch_init() 296 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_prepare_io_req() local 321 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_bch_prepare_io_req() 333 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_bch_finish_io_req() local [all …]
|
A D | ecc-sw-hamming.c | 550 int eccsize = nand->ecc.ctx.conf.step_size; in nand_ecc_sw_hamming_prepare_io_req() local 575 eccsteps--, i += eccbytes, data += eccsize) in nand_ecc_sw_hamming_prepare_io_req() 587 int eccsize = nand->ecc.ctx.conf.step_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()
|
/linux/drivers/mtd/nand/raw/ |
A D | mxc_nand.c | 157 int eccsize; member 176 int eccsize; member 1125 host->eccsize = 1; in preset_v1() 1233 if (host->eccsize == 4) in preset_v2() 1238 host->eccsize = 1; in preset_v2() 1481 .eccsize = 1, 1506 .eccsize = 1, 1532 .eccsize = 0, 1557 .eccsize = 0, 1583 .eccsize = 0, [all …]
|
A D | nand_base.c | 2884 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local 2898 buf += eccsize; in nand_read_page_raw_syndrome() 3526 int eccsize = chip->ecc.size; in nand_read_oob_syndrome() local 3538 pos = eccsize + i * (eccsize + chunk); in nand_read_oob_syndrome() 3603 pos = steps * (eccsize + chunk); in nand_write_oob_syndrome() 3606 pos = eccsize; in nand_write_oob_syndrome() 3617 len = eccsize; in nand_write_oob_syndrome() 3629 pos = eccsize + i * (eccsize + chunk); in nand_write_oob_syndrome() 3867 int eccsize = chip->ecc.size; in nand_write_page_raw_syndrome() local 3881 buf += eccsize; in nand_write_page_raw_syndrome() [all …]
|
A D | txx9ndfmc.c | 191 int eccsize; in txx9ndfmc_correct_data() local 195 for (eccsize = chip->ecc.size; eccsize > 0; eccsize -= 256) { in txx9ndfmc_correct_data()
|
A D | stm32_fmc2_nand.c | 645 if (pos[i] < eccsize * 8) { in stm32_fmc2_nfc_bch_decode() 679 int ret, i, s, stat, eccsize = chip->ecc.size; in stm32_fmc2_nfc_read_page() local 693 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page() 698 eccsize, false); in stm32_fmc2_nfc_read_page() 712 stat = nand_check_erased_ecc_chunk(p, eccsize, in stm32_fmc2_nfc_read_page() 844 int eccsize = chip->ecc.size; in stm32_fmc2_nfc_xfer() local 857 sg_set_buf(sg, p, eccsize); in stm32_fmc2_nfc_xfer() 858 p += eccsize; in stm32_fmc2_nfc_xfer() 1031 int i, s, eccsize = chip->ecc.size; in stm32_fmc2_nfc_seq_correct() local 1058 stat = stm32_fmc2_nfc_bch_decode(eccsize, dat, in stm32_fmc2_nfc_seq_correct() [all …]
|
A D | davinci_nand.c | 392 int i, eccsize = chip->ecc.size, ret; in nand_davinci_read_page_hwecc_oob_first() local 414 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc_oob_first() 419 ret = nand_read_data_op(chip, p, eccsize, false, false); in nand_davinci_read_page_hwecc_oob_first() 429 stat = nand_check_erased_ecc_chunk(p, eccsize, in nand_davinci_read_page_hwecc_oob_first()
|
A D | fsmc_nand.c | 709 int i, j, s, stat, eccsize = chip->ecc.size; in fsmc_read_page_hwecc() local 725 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc() 726 nand_read_page_op(chip, page, s * eccsize, NULL, 0); in fsmc_read_page_hwecc() 728 ret = nand_read_data_op(chip, p, eccsize, false, false); in fsmc_read_page_hwecc()
|
/linux/drivers/mtd/nand/raw/gpmi-nand/ |
A D | gpmi-nand.c | 1578 int eccsize = nfc_geo->ecc_chunk_size; in gpmi_ecc_read_page_raw() local 1616 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw() 1617 src_bit_off, eccsize * 8); in gpmi_ecc_read_page_raw() 1618 src_bit_off += eccsize * 8; in gpmi_ecc_read_page_raw() 1663 int eccsize = nfc_geo->ecc_chunk_size; in gpmi_ecc_write_page_raw() local 1692 step * eccsize * 8, eccsize * 8); in gpmi_ecc_write_page_raw() 1693 dst_bit_off += eccsize * 8; in gpmi_ecc_write_page_raw()
|