Lines Matching refs:syn
338 unsigned int *syn) in compute_syndromes() argument
351 memset(syn, 0, 2*t*sizeof(*syn)); in compute_syndromes()
360 syn[j] ^= a_pow(bch, (j+1)*(i+s)); in compute_syndromes()
368 syn[2*j+1] = gf_sqr(bch, syn[j]); in compute_syndromes()
377 const unsigned int *syn) in compute_error_locator_polynomial() argument
381 unsigned int i, j, tmp, l, pd = 1, d = syn[0]; in compute_error_locator_polynomial()
419 d = syn[2*i+2]; in compute_error_locator_polynomial()
421 d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); in compute_error_locator_polynomial()
918 unsigned int i, j, syn, syn0, count = 0; in chien_search() local
928 for (j = 1, syn = syn0; j <= p->deg; j++) { in chien_search()
931 syn ^= a_pow(bch, m+j*i); in chien_search()
933 if (syn == 0) { in chien_search()
988 const unsigned int *syn, unsigned int *errloc) in decode_bch() argument
1000 if (!syn) { in decode_bch()
1022 compute_syndromes(bch, bch->ecc_buf, bch->syn); in decode_bch()
1023 syn = bch->syn; in decode_bch()
1026 err = compute_error_locator_polynomial(bch, syn); in decode_bch()
1305 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in init_bch()
1354 kfree(bch->syn); in free_bch()