Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/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.c655 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()
/rk3399_rockchip-uboot/include/linux/
H A Dbch.h66 const unsigned int *syn, unsigned int *errloc);
/rk3399_rockchip-uboot/lib/
H A Dbch.c1028 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()