Lines Matching defs:errloc
985 * @errloc: output array of error locations
996 * bch_decode(@bch, @data, @len, @recv_ecc, NULL, NULL, @errloc)
999 * bch_decode(@bch, NULL, @len, @recv_ecc, @calc_ecc, NULL, @errloc)
1002 * bch_decode(@bch, NULL, @len, NULL, ecc, NULL, @errloc)
1005 * bch_decode(@bch, NULL, @len, NULL, NULL, @syn, @errloc)
1008 * locations returned in array @errloc should be interpreted as follows -
1010 * if (errloc[n] >= 8*len), then n-th error is located in ecc (no need for
1013 * if (errloc[n] < 8*len), then n-th error is located in data and can be
1014 * corrected with statement data[errloc[n]/8] ^= 1 << (errloc[n] % 8);
1021 const unsigned int *syn, unsigned int *errloc)
1061 nroots = find_poly_roots(bch, 1, bch->elp, errloc);
1069 if (errloc[i] >= nbits) {
1073 errloc[i] = nbits-1-errloc[i];
1075 errloc[i] = (errloc[i] & ~7) |
1076 (7-(errloc[i] & 7));