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

/linux-master/drivers/mtd/nand/
H A Decc-sw-bch.c111 unsigned int eccsize = nand->ecc.ctx.conf.step_size; local
117 m = fls(1 + (8 * eccsize));
133 erased_page = kmalloc(eccsize, GFP_KERNEL);
139 memset(erased_page, 0xff, eccsize);
140 bch_encode(engine_conf->bch, erased_page, eccsize,
156 if (8 * (eccsize + eccbytes) >= (1 << m)) {
157 pr_err("ECC step size is too large (%u)\n", eccsize);
296 int eccsize = nand->ecc.ctx.conf.step_size; local
321 eccsteps--, i += eccbytes, data += eccsize)
333 int eccsize local
[all...]
H A Decc-sw-hamming.c550 int eccsize = nand->ecc.ctx.conf.step_size; local
575 eccsteps--, i += eccbytes, data += eccsize)
587 int eccsize = nand->ecc.ctx.conf.step_size; local
618 for (i = 0; eccsteps; eccsteps--, i += eccbytes, data += eccsize)
624 eccsteps--, i += eccbytes, data += eccsize) {
/linux-master/drivers/mtd/nand/raw/
H A Dmxc_nand.c156 int eccsize; member in struct:mxc_nand_devtype_data
175 int eccsize; member in struct:mxc_nand_host
794 ecc_bit_mask = (host->eccsize == 4) ? 0x7 : 0xf;
795 err_limit = (host->eccsize == 4) ? 0x4 : 0x8;
1124 host->eccsize = 1;
1231 host->eccsize = get_eccsize(mtd);
1232 if (host->eccsize == 4)
1237 host->eccsize = 1;
1310 host->eccsize = get_eccsize(mtd);
1311 if (host->eccsize
[all...]
H A Dtxx9ndfmc.c191 int eccsize; local
195 for (eccsize = chip->ecc.size; eccsize > 0; eccsize -= 256) {
H A Dnand_base.c3009 int eccsize = chip->ecc.size; local
3019 ret = nand_read_data_op(chip, buf, eccsize, false, false);
3023 buf += eccsize;
3071 int i, eccsize = chip->ecc.size, ret; local
3081 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
3092 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3230 int i, eccsize = chip->ecc.size, ret; local
3242 for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3245 ret = nand_read_data_op(chip, p, eccsize, false, false);
3265 for (i = 0 ; eccsteps; eccsteps--, i += eccbytes, p += eccsize) {
3303 int i, eccsize = chip->ecc.size, ret; local
3369 int ret, i, eccsize = chip->ecc.size; local
3771 int eccsize = chip->ecc.size; local
3838 int eccsize = chip->ecc.size, length = mtd->oobsize; local
4120 int eccsize = chip->ecc.size; local
4181 int i, eccsize = chip->ecc.size, ret; local
4210 int i, eccsize = chip->ecc.size, ret; local
4327 int i, eccsize = chip->ecc.size; local
[all...]
H A Dstm32_fmc2_nand.c634 static int stm32_fmc2_nfc_bch_decode(int eccsize, u8 *dat, u32 *ecc_sta) argument
664 if (pos[i] < eccsize * 8) {
698 int ret, i, s, stat, eccsize = chip->ecc.size; local
712 s++, i += eccbytes, p += eccsize) {
716 ret = nand_change_read_column_op(chip, s * eccsize, p,
717 eccsize, false);
731 stat = nand_check_erased_ecc_chunk(p, eccsize,
863 int eccsize = chip->ecc.size; local
876 sg_set_buf(sg, p, eccsize);
877 p += eccsize;
1052 int i, s, eccsize = chip->ecc.size; local
[all...]
H A Dfsmc_nand.c709 int i, j, s, stat, eccsize = chip->ecc.size; local
725 for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) {
726 nand_read_page_op(chip, page, s * eccsize, NULL, 0);
728 ret = nand_read_data_op(chip, p, eccsize, false, false);
/linux-master/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1816 int eccsize = nfc_geo->eccn_chunk_size; local
1854 nand_extract_bits(buf, step * eccsize * 8, tmp_buf,
1855 src_bit_off, eccsize * 8);
1856 src_bit_off += eccsize * 8;
1901 int eccsize = nfc_geo->eccn_chunk_size; local
1930 step * eccsize * 8, eccsize * 8);
1931 dst_bit_off += eccsize * 8;

Completed in 186 milliseconds