Searched refs:errloc (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/drivers/mtd/nand/raw/ |
D | nand_bch.c | 27 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() 175 nbc->errloc = kmalloc_array(t, sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init() 176 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init() 210 kfree(nbc->errloc); in nand_bch_free()
|
D | arasan-nand-controller.c | 168 unsigned int *errloc; member 369 anand->hw_ecc, NULL, NULL, anand->errloc); in anfc_read_page_hw_ecc() 375 if (anand->errloc[i] < (chip->ecc.size * 8)) { in anfc_read_page_hw_ecc() 376 bit = BIT(anand->errloc[i] & 7); in anfc_read_page_hw_ecc() 377 byte = anand->errloc[i] >> 3; in anfc_read_page_hw_ecc() 995 anand->errloc = devm_kmalloc_array(nfc->dev, ecc->strength, in anfc_init_hw_ecc_controller() 996 sizeof(*anand->errloc), GFP_KERNEL); in anfc_init_hw_ecc_controller() 997 if (!anand->errloc) in anfc_init_hw_ecc_controller()
|
/Linux-v5.10/lib/reed_solomon/ |
D | test_rslib.c | 162 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.10/drivers/mtd/nand/raw/atmel/ |
D | pmecc.c | 154 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.10/include/linux/ |
D | bch.h | 68 const unsigned int *syn, unsigned int *errloc);
|
/Linux-v5.10/lib/ |
D | bch.c | 1055 const unsigned int *syn, unsigned int *errloc) in bch_decode() argument 1095 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode() 1103 if (errloc[i] >= nbits) { in bch_decode() 1107 errloc[i] = nbits-1-errloc[i]; in bch_decode() 1109 errloc[i] = (errloc[i] & ~7) | in bch_decode() 1110 (7-(errloc[i] & 7)); in bch_decode()
|