Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_bch.c31 unsigned int *errloc; member
72 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local
76 NULL, errloc); in nand_bch_correct_data()
79 if (errloc[i] < (chip->ecc.size*8)) in nand_bch_correct_data()
81 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_bch_correct_data()
85 __func__, errloc[i]); in nand_bch_correct_data()
192 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
193 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init()
227 kfree(nbc->errloc); in nand_bch_free()
H A Domap_gpmc.c654 unsigned int errloc[8]; in omap_correct_data_bch_sw() local
659 read_ecc, calc_ecc, NULL, errloc); in omap_correct_data_bch_sw()
664 if (errloc[i] < SECTOR_BYTES << 3) in omap_correct_data_bch_sw()
665 data[errloc[i] >> 3] ^= 1 << (errloc[i] & 7); in omap_correct_data_bch_sw()
666 debug("corrected bitflip %u\n", errloc[i]); in omap_correct_data_bch_sw()
/openbmc/u-boot/board/ge/common/
H A Dvpd_reader.c65 unsigned int *errloc = (unsigned int *)calloc(data_length, in verify_bch() local
68 errloc); in verify_bch()
72 free(errloc); in verify_bch()
78 if (errloc[n] >= 8 * data_length) { in verify_bch()
85 data[errloc[n] / 8] ^= 1 << (errloc[n] % 8); in verify_bch()
90 free(errloc); in verify_bch()
/openbmc/linux/drivers/mtd/nand/
H A Decc-sw-bch.c54 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()
/openbmc/linux/lib/reed_solomon/
H A Dtest_rslib.c162 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 …]
/openbmc/linux/drivers/mtd/nand/raw/atmel/
H A 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()
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()
/openbmc/u-boot/include/linux/
H A Dbch.h65 const unsigned int *syn, unsigned int *errloc);
/openbmc/linux/include/linux/
H A Dbch.h68 const unsigned int *syn, unsigned int *errloc);
/openbmc/linux/include/linux/mtd/
H A Dnand-ecc-sw-bch.h31 unsigned int *errloc; member
/openbmc/linux/drivers/mtd/nand/raw/
H A Darasan-nand-controller.c185 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()
/openbmc/u-boot/lib/
H A Dbch.c1034 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument
1074 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch()
1082 if (errloc[i] >= nbits) { in decode_bch()
1086 errloc[i] = nbits-1-errloc[i]; in decode_bch()
1087 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); in decode_bch()
/openbmc/linux/lib/
H A Dbch.c1021 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()