Searched refs:errloc (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/mtd/nand/raw/ |
D | nand_bch.c | 40 unsigned int *errloc; member 82 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local 86 NULL, errloc); in nand_bch_correct_data() 89 if (errloc[i] < (chip->ecc.size*8)) in nand_bch_correct_data() 91 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_bch_correct_data() 95 errloc[i]); in nand_bch_correct_data() 189 nbc->errloc = kmalloc_array(t, sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init() 190 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init() 225 kfree(nbc->errloc); in nand_bch_free()
|
/Linux-v4.19/drivers/mtd/nand/raw/atmel/ |
D | pmecc.c | 157 void __iomem *errloc; member 655 writel(PMERRLOC_DISABLE, pmecc->regs.errloc + ATMEL_PMERRLOC_ELDIS); in atmel_pmecc_err_location() 659 pmecc->regs.errloc + ATMEL_PMERRLOC_SIGMA(i)); in atmel_pmecc_err_location() 667 writel(val, pmecc->regs.errloc + ATMEL_PMERRLOC_ELCFG); in atmel_pmecc_err_location() 669 pmecc->regs.errloc + ATMEL_PMERRLOC_ELEN); in atmel_pmecc_err_location() 671 ret = readl_relaxed_poll_timeout(pmecc->regs.errloc + in atmel_pmecc_err_location() 718 errpos = readl_relaxed(pmecc->regs.errloc + in atmel_pmecc_correct_sector() 856 pmecc->regs.errloc = devm_ioremap_resource(dev, res); in atmel_pmecc_create() 857 if (IS_ERR(pmecc->regs.errloc)) in atmel_pmecc_create() 858 return ERR_CAST(pmecc->regs.errloc); in atmel_pmecc_create()
|
/Linux-v4.19/include/linux/ |
D | bch.h | 77 const unsigned int *syn, unsigned int *errloc);
|
/Linux-v4.19/lib/ |
D | bch.c | 998 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()
|