/Linux-v6.1/drivers/mtd/nand/ |
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 …]
|
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-v6.1/drivers/mtd/nand/raw/ |
D | mxc_nand.c | 157 int eccsize; member 176 int eccsize; member 795 ecc_bit_mask = (host->eccsize == 4) ? 0x7 : 0xf; in mxc_nand_read_page_v2_v3() 796 err_limit = (host->eccsize == 4) ? 0x4 : 0x8; in mxc_nand_read_page_v2_v3() 1125 host->eccsize = 1; in preset_v1() 1232 host->eccsize = get_eccsize(mtd); in preset_v2() 1233 if (host->eccsize == 4) in preset_v2() 1238 host->eccsize = 1; in preset_v2() 1311 host->eccsize = get_eccsize(mtd); in preset_v3() 1312 if (host->eccsize == 8) in preset_v3() [all …]
|
D | nand_base.c | 2886 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local 2896 ret = nand_read_data_op(chip, buf, eccsize, false, false); in nand_read_page_raw_syndrome() 2900 buf += eccsize; in nand_read_page_raw_syndrome() 2948 int i, eccsize = chip->ecc.size, ret; in nand_read_page_swecc() local 2958 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc() 2969 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc() 3107 int i, eccsize = chip->ecc.size, ret; in nand_read_page_hwecc() local 3119 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() 3122 ret = nand_read_data_op(chip, p, eccsize, false, false); in nand_read_page_hwecc() 3142 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc() [all …]
|
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()
|
D | stm32_fmc2_nand.c | 617 static int stm32_fmc2_nfc_bch_decode(int eccsize, u8 *dat, u32 *ecc_sta) in stm32_fmc2_nfc_bch_decode() argument 647 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() 699 ret = nand_change_read_column_op(chip, s * eccsize, p, 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() [all …]
|
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-v6.1/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 1818 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_read_page_raw() local 1856 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw() 1857 src_bit_off, eccsize * 8); in gpmi_ecc_read_page_raw() 1858 src_bit_off += eccsize * 8; in gpmi_ecc_read_page_raw() 1903 int eccsize = nfc_geo->eccn_chunk_size; in gpmi_ecc_write_page_raw() local 1932 step * eccsize * 8, eccsize * 8); in gpmi_ecc_write_page_raw() 1933 dst_bit_off += eccsize * 8; in gpmi_ecc_write_page_raw()
|