Home
last modified time | relevance | path

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

/linux/drivers/mtd/nand/
A Decc-sw-bch.c111 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 Decc-sw-hamming.c550 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 Dmxc_nand.c158 int eccsize; member
177 int eccsize; member
1010 host->eccsize = 1; in preset_v1()
1118 if (host->eccsize == 4) in preset_v2()
1123 host->eccsize = 1; in preset_v2()
1265 .eccsize = 1,
1290 .eccsize = 1,
1316 .eccsize = 0,
1341 .eccsize = 0,
1367 .eccsize = 0,
[all …]
A Dtxx9ndfmc.c191 int eccsize; in txx9ndfmc_correct_data() local
195 for (eccsize = chip->ecc.size; eccsize > 0; eccsize -= 256) { in txx9ndfmc_correct_data()
A Dnand_base.c3016 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local
3030 buf += eccsize; in nand_read_page_raw_syndrome()
3778 int eccsize = chip->ecc.size; in nand_read_oob_syndrome() local
3790 pos = eccsize + i * (eccsize + chunk); in nand_read_oob_syndrome()
3855 pos = steps * (eccsize + chunk); in nand_write_oob_syndrome()
3858 pos = eccsize; in nand_write_oob_syndrome()
3869 len = eccsize; in nand_write_oob_syndrome()
3881 pos = eccsize + i * (eccsize + chunk); in nand_write_oob_syndrome()
4127 int eccsize = chip->ecc.size; in nand_write_page_raw_syndrome() local
4141 buf += eccsize; in nand_write_page_raw_syndrome()
[all …]
A Dstm32_fmc2_nand.c664 if (pos[i] < eccsize * 8) { in stm32_fmc2_nfc_bch_decode()
698 int ret, i, s, stat, eccsize = chip->ecc.size; in stm32_fmc2_nfc_read_page() local
712 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
717 eccsize, false); in stm32_fmc2_nfc_read_page()
731 stat = nand_check_erased_ecc_chunk(p, eccsize, in stm32_fmc2_nfc_read_page()
863 int eccsize = chip->ecc.size; in stm32_fmc2_nfc_xfer() local
876 sg_set_buf(sg, p, eccsize); in stm32_fmc2_nfc_xfer()
877 p += eccsize; in stm32_fmc2_nfc_xfer()
1052 int i, s, eccsize = chip->ecc.size; in stm32_fmc2_nfc_seq_correct() local
1079 stat = stm32_fmc2_nfc_bch_decode(eccsize, dat, in stm32_fmc2_nfc_seq_correct()
[all …]
A Dfsmc_nand.c709 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 Dgpmi-nand.c1833 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_read_page_raw() local
1871 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw()
1872 src_bit_off, eccsize * 8); in gpmi_ecc_read_page_raw()
1873 src_bit_off += eccsize * 8; in gpmi_ecc_read_page_raw()
1918 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_write_page_raw() local
1947 step * eccsize * 8, eccsize * 8); in gpmi_ecc_write_page_raw()
1948 dst_bit_off += eccsize * 8; in gpmi_ecc_write_page_raw()

Completed in 37 milliseconds