Home
last modified time | relevance | path

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

/linux-6.3-rc2/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-6.3-rc2/drivers/mtd/nand/raw/
A Dmxc_nand.c157 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 Dnand_base.c2959 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local
2973 buf += eccsize; in nand_read_page_raw_syndrome()
3691 int eccsize = chip->ecc.size; in nand_read_oob_syndrome() local
3703 pos = eccsize + i * (eccsize + chunk); in nand_read_oob_syndrome()
3768 pos = steps * (eccsize + chunk); in nand_write_oob_syndrome()
3771 pos = eccsize; in nand_write_oob_syndrome()
3782 len = eccsize; in nand_write_oob_syndrome()
3794 pos = eccsize + i * (eccsize + chunk); in nand_write_oob_syndrome()
4040 int eccsize = chip->ecc.size; in nand_write_page_raw_syndrome() local
4054 buf += eccsize; in nand_write_page_raw_syndrome()
[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 Dstm32_fmc2_nand.c647 if (pos[i] < eccsize * 8) { in stm32_fmc2_nfc_bch_decode()
681 int ret, i, s, stat, eccsize = chip->ecc.size; in stm32_fmc2_nfc_read_page() local
695 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
700 eccsize, false); in stm32_fmc2_nfc_read_page()
714 stat = nand_check_erased_ecc_chunk(p, eccsize, in stm32_fmc2_nfc_read_page()
846 int eccsize = chip->ecc.size; in stm32_fmc2_nfc_xfer() local
859 sg_set_buf(sg, p, eccsize); in stm32_fmc2_nfc_xfer()
860 p += eccsize; in stm32_fmc2_nfc_xfer()
1035 int i, s, eccsize = chip->ecc.size; in stm32_fmc2_nfc_seq_correct() local
1062 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-6.3-rc2/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c1816 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_read_page_raw() local
1854 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw()
1855 src_bit_off, eccsize * 8); in gpmi_ecc_read_page_raw()
1856 src_bit_off += eccsize * 8; in gpmi_ecc_read_page_raw()
1901 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_write_page_raw() local
1930 step * eccsize * 8, eccsize * 8); in gpmi_ecc_write_page_raw()
1931 dst_bit_off += eccsize * 8; in gpmi_ecc_write_page_raw()

Completed in 41 milliseconds