Home
last modified time | relevance | path

Searched refs:errloc (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_bch.c27 unsigned int *errloc; member
67 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local
71 NULL, errloc); in nand_bch_correct_data()
74 if (errloc[i] < (chip->ecc.size*8)) in nand_bch_correct_data()
76 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_bch_correct_data()
80 errloc[i]); in nand_bch_correct_data()
174 nbc->errloc = kmalloc_array(t, sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
175 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init()
209 kfree(nbc->errloc); in nand_bch_free()
/Linux-v5.4/lib/reed_solomon/
Dtest_rslib.c162 int errloc; in get_rcw_we() local
186 errloc = prandom_u32() % len; in get_rcw_we()
187 } while (errlocs[errloc] != 0); in get_rcw_we()
189 errlocs[errloc] = 1; in get_rcw_we()
190 r[errloc] ^= errval; in get_rcw_we()
197 errloc = prandom_u32() % len; in get_rcw_we()
198 } while (errlocs[errloc] != 0); in get_rcw_we()
200 derrlocs[i] = errloc; in get_rcw_we()
204 errlocs[errloc] = 2; in get_rcw_we()
212 errlocs[errloc] = 1; in get_rcw_we()
[all …]
/Linux-v5.4/drivers/mtd/nand/raw/atmel/
Dpmecc.c154 void __iomem *errloc; member
652 writel(PMERRLOC_DISABLE, pmecc->regs.errloc + ATMEL_PMERRLOC_ELDIS); in atmel_pmecc_err_location()
656 pmecc->regs.errloc + ATMEL_PMERRLOC_SIGMA(i)); in atmel_pmecc_err_location()
664 writel(val, pmecc->regs.errloc + ATMEL_PMERRLOC_ELCFG); in atmel_pmecc_err_location()
666 pmecc->regs.errloc + ATMEL_PMERRLOC_ELEN); in atmel_pmecc_err_location()
668 ret = readl_relaxed_poll_timeout(pmecc->regs.errloc + in atmel_pmecc_err_location()
715 errpos = readl_relaxed(pmecc->regs.errloc + in atmel_pmecc_correct_sector()
853 pmecc->regs.errloc = devm_ioremap_resource(dev, res); in atmel_pmecc_create()
854 if (IS_ERR(pmecc->regs.errloc)) in atmel_pmecc_create()
855 return ERR_CAST(pmecc->regs.errloc); in atmel_pmecc_create()
/Linux-v5.4/include/linux/
Dbch.h65 const unsigned int *syn, unsigned int *errloc);
/Linux-v5.4/lib/
Dbch.c998 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument
1038 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch()
1046 if (errloc[i] >= nbits) { in decode_bch()
1050 errloc[i] = nbits-1-errloc[i]; in decode_bch()
1051 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); in decode_bch()