Searched refs:errloc (Results 1 – 3 of 3) sorted by relevance
42 unsigned int *errloc; member84 unsigned int *errloc = nbc->errloc; in nand_bch_correct_data() local88 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()
77 const unsigned int *syn, unsigned int *errloc);
988 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument1028 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()