Searched refs:errloc (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/mtd/nand/ |
D | ecc-sw-bch.c | 54 unsigned int *errloc = engine_conf->errloc; in nand_ecc_sw_bch_correct() local 58 calc_ecc, NULL, errloc); in nand_ecc_sw_bch_correct() 61 if (errloc[i] < (step_size * 8)) in nand_ecc_sw_bch_correct() 63 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_ecc_sw_bch_correct() 67 errloc[i]); in nand_ecc_sw_bch_correct() 87 kfree(engine_conf->errloc); in nand_ecc_sw_bch_cleanup() 125 engine_conf->errloc = kmalloc_array(t, sizeof(*engine_conf->errloc), in nand_ecc_sw_bch_init() 127 if (!engine_conf->eccmask || !engine_conf->errloc) { in nand_ecc_sw_bch_init()
|
/linux-6.6.21/lib/reed_solomon/ |
D | test_rslib.c | 162 int errloc; in get_rcw_we() local 186 errloc = get_random_u32_below(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 = get_random_u32_below(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-6.6.21/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() 850 pmecc->regs.errloc = devm_platform_ioremap_resource(pdev, errloc_res_idx); in atmel_pmecc_create() 851 if (IS_ERR(pmecc->regs.errloc)) in atmel_pmecc_create() 852 return ERR_CAST(pmecc->regs.errloc); in atmel_pmecc_create()
|
/linux-6.6.21/include/linux/mtd/ |
D | nand-ecc-sw-bch.h | 31 unsigned int *errloc; member
|
/linux-6.6.21/include/linux/ |
D | bch.h | 68 const unsigned int *syn, unsigned int *errloc);
|
/linux-6.6.21/drivers/mtd/nand/raw/ |
D | arasan-nand-controller.c | 185 unsigned int *errloc; member 464 anand->hw_ecc, NULL, NULL, anand->errloc); in anfc_read_page_hw_ecc() 470 if (anand->errloc[i] < (chip->ecc.size * 8)) { in anfc_read_page_hw_ecc() 471 bit = BIT(anand->errloc[i] & 7); in anfc_read_page_hw_ecc() 472 byte = anand->errloc[i] >> 3; in anfc_read_page_hw_ecc() 1176 anand->errloc = devm_kmalloc_array(nfc->dev, ecc->strength, in anfc_init_hw_ecc_controller() 1177 sizeof(*anand->errloc), GFP_KERNEL); in anfc_init_hw_ecc_controller() 1178 if (!anand->errloc) in anfc_init_hw_ecc_controller()
|
/linux-6.6.21/lib/ |
D | bch.c | 1021 const unsigned int *syn, unsigned int *errloc) in bch_decode() argument 1061 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in bch_decode() 1069 if (errloc[i] >= nbits) { in bch_decode() 1073 errloc[i] = nbits-1-errloc[i]; in bch_decode() 1075 errloc[i] = (errloc[i] & ~7) | in bch_decode() 1076 (7-(errloc[i] & 7)); in bch_decode()
|