| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A 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()
|
| H A D | arasan-nand-controller.c | 168 unsigned int *errloc; member 400 anand->hw_ecc, NULL, NULL, anand->errloc); in anfc_read_page_hw_ecc() 406 if (anand->errloc[i] < (chip->ecc.size * 8)) { in anfc_read_page_hw_ecc() 407 bit = BIT(anand->errloc[i] & 7); in anfc_read_page_hw_ecc() 408 byte = anand->errloc[i] >> 3; in anfc_read_page_hw_ecc() 1058 anand->errloc = devm_kmalloc_array(nfc->dev, ecc->strength, in anfc_init_hw_ecc_controller() 1059 sizeof(*anand->errloc), GFP_KERNEL); in anfc_init_hw_ecc_controller() 1060 if (!anand->errloc) in anfc_init_hw_ecc_controller()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_bch.c | 31 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 D | omap_gpmc.c | 655 unsigned int errloc[8]; in omap_correct_data_bch_sw() local 660 read_ecc, calc_ecc, NULL, errloc); in omap_correct_data_bch_sw() 665 if (errloc[i] < SECTOR_BYTES << 3) in omap_correct_data_bch_sw() 666 data[errloc[i] >> 3] ^= 1 << (errloc[i] & 7); in omap_correct_data_bch_sw() 667 debug("corrected bitflip %u\n", errloc[i]); in omap_correct_data_bch_sw()
|
| /OK3568_Linux_fs/kernel/lib/reed_solomon/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/atmel/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | bch.c | 1028 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument 1068 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch() 1076 if (errloc[i] >= nbits) { in decode_bch() 1080 errloc[i] = nbits-1-errloc[i]; in decode_bch() 1081 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); in decode_bch()
|
| /OK3568_Linux_fs/u-boot/include/linux/ |
| H A D | bch.h | 66 const unsigned int *syn, unsigned int *errloc);
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | bch.h | 68 const unsigned int *syn, unsigned int *errloc);
|