Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/mtd/nand/
Dnand_bch.c42 unsigned int *errloc; member
84 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local
88 NULL, errloc); in nand_bch_correct_data()
91 if (errloc[i] < (chip->ecc.size*8)) in nand_bch_correct_data()
93 buf[errloc[i] >> 3] ^= (1 << (errloc[i] & 7)); in nand_bch_correct_data()
97 errloc[i]); in nand_bch_correct_data()
201 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
202 if (!nbc->eccmask || !nbc->errloc) in nand_bch_init()
234 kfree(nbc->errloc); in nand_bch_free()
/linux-3.4.99/include/linux/
Dbch.h77 const unsigned int *syn, unsigned int *errloc);
/linux-3.4.99/lib/
Dbch.c988 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument
1028 nroots = find_poly_roots(bch, 1, bch->elp, errloc); in decode_bch()
1036 if (errloc[i] >= nbits) { in decode_bch()
1040 errloc[i] = nbits-1-errloc[i]; in decode_bch()
1041 errloc[i] = (errloc[i] & ~7)|(7-(errloc[i] & 7)); in decode_bch()