Home
last modified time | relevance | path

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

/drivers/mtd/nand/raw/
Dnand_bch.c112 unsigned int eccsize = nand->ecc.size; in nand_bch_init() local
117 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
121 if (!eccsize || !eccbytes) { in nand_bch_init()
126 m = fls(1+8*eccsize); in nand_bch_init()
144 eccsteps = mtd->writesize/eccsize; in nand_bch_init()
153 if (8*(eccsize+eccbytes) >= (1 << m)) { in nand_bch_init()
154 pr_warn("eccsize %u is too large\n", eccsize); in nand_bch_init()
181 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
185 memset(erased_page, 0xff, eccsize); in nand_bch_init()
186 bch_encode(nbc->bch, erased_page, eccsize, nbc->eccmask); in nand_bch_init()
[all …]
Dmxc_nand.c158 int eccsize; member
177 int eccsize; member
797 ecc_bit_mask = (host->eccsize == 4) ? 0x7 : 0xf; in mxc_nand_read_page_v2_v3()
798 err_limit = (host->eccsize == 4) ? 0x4 : 0x8; in mxc_nand_read_page_v2_v3()
1127 host->eccsize = 1; in preset_v1()
1234 host->eccsize = get_eccsize(mtd); in preset_v2()
1235 if (host->eccsize == 4) in preset_v2()
1240 host->eccsize = 1; in preset_v2()
1313 host->eccsize = get_eccsize(mtd); in preset_v3()
1314 if (host->eccsize == 8) in preset_v3()
[all …]
Dnand_ecc.c123 void __nand_calculate_ecc(const unsigned char *buf, unsigned int eccsize, in __nand_calculate_ecc() argument
129 const uint32_t eccsize_mult = eccsize >> 8; in __nand_calculate_ecc()
392 unsigned int eccsize, bool sm_order) in __nand_correct_data() argument
397 const uint32_t eccsize_mult = eccsize >> 8; in __nand_correct_data()
Dnand_base.c2671 int eccsize = chip->ecc.size; in nand_read_page_raw_syndrome() local
2681 ret = nand_read_data_op(chip, buf, eccsize, false, false); in nand_read_page_raw_syndrome()
2685 buf += eccsize; in nand_read_page_raw_syndrome()
2733 int i, eccsize = chip->ecc.size, ret; in nand_read_page_swecc() local
2743 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) in nand_read_page_swecc()
2754 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_swecc()
2892 int i, eccsize = chip->ecc.size, ret; in nand_read_page_hwecc() local
2904 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
2907 ret = nand_read_data_op(chip, p, eccsize, false, false); in nand_read_page_hwecc()
2927 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_read_page_hwecc()
[all …]
Dtxx9ndfmc.c192 int eccsize; in txx9ndfmc_correct_data() local
196 for (eccsize = chip->ecc.size; eccsize > 0; eccsize -= 256) { in txx9ndfmc_correct_data()
Dstm32_fmc2_nand.c613 static int stm32_fmc2_nfc_bch_decode(int eccsize, u8 *dat, u32 *ecc_sta) in stm32_fmc2_nfc_bch_decode() argument
643 if (pos[i] < eccsize * 8) { in stm32_fmc2_nfc_bch_decode()
677 int ret, i, s, stat, eccsize = chip->ecc.size; in stm32_fmc2_nfc_read_page() local
691 s++, i += eccbytes, p += eccsize) { in stm32_fmc2_nfc_read_page()
695 ret = nand_change_read_column_op(chip, s * eccsize, p, in stm32_fmc2_nfc_read_page()
696 eccsize, false); in stm32_fmc2_nfc_read_page()
710 stat = nand_check_erased_ecc_chunk(p, eccsize, in stm32_fmc2_nfc_read_page()
842 int eccsize = chip->ecc.size; in stm32_fmc2_nfc_xfer() local
855 sg_set_buf(sg, p, eccsize); in stm32_fmc2_nfc_xfer()
856 p += eccsize; in stm32_fmc2_nfc_xfer()
[all …]
Ddavinci_nand.c390 int i, eccsize = chip->ecc.size, ret; in nand_davinci_read_page_hwecc_oob_first() local
412 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { in nand_davinci_read_page_hwecc_oob_first()
417 ret = nand_read_data_op(chip, p, eccsize, false, false); in nand_davinci_read_page_hwecc_oob_first()
425 stat = nand_check_erased_ecc_chunk(p, eccsize, in nand_davinci_read_page_hwecc_oob_first()
Dfsmc_nand.c698 int i, j, s, stat, eccsize = chip->ecc.size; in fsmc_read_page_hwecc() local
714 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) { in fsmc_read_page_hwecc()
715 nand_read_page_op(chip, page, s * eccsize, NULL, 0); in fsmc_read_page_hwecc()
717 ret = nand_read_data_op(chip, p, eccsize, false, false); in fsmc_read_page_hwecc()
/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c1594 int eccsize = nfc_geo->ecc_chunk_size; in gpmi_ecc_read_page_raw() local
1632 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw()
1633 src_bit_off, eccsize * 8); in gpmi_ecc_read_page_raw()
1634 src_bit_off += eccsize * 8; in gpmi_ecc_read_page_raw()
1679 int eccsize = nfc_geo->ecc_chunk_size; in gpmi_ecc_write_page_raw() local
1708 step * eccsize * 8, eccsize * 8); in gpmi_ecc_write_page_raw()
1709 dst_bit_off += eccsize * 8; in gpmi_ecc_write_page_raw()