Lines Matching refs:syn
405 unsigned int *syn) in compute_syndromes() argument
418 memset(syn, 0, 2*t*sizeof(*syn)); in compute_syndromes()
427 syn[j] ^= a_pow(bch, (j+1)*(i+s)); in compute_syndromes()
435 syn[2*j+1] = gf_sqr(bch, syn[j]); in compute_syndromes()
444 const unsigned int *syn) in compute_error_locator_polynomial() argument
448 unsigned int i, j, tmp, l, pd = 1, d = syn[0]; in compute_error_locator_polynomial()
486 d = syn[2*i+2]; in compute_error_locator_polynomial()
488 d ^= gf_mul(bch, elp->c[j], syn[2*i+2-j]); in compute_error_locator_polynomial()
985 unsigned int i, j, syn, syn0, count = 0; in chien_search() local
995 for (j = 1, syn = syn0; j <= p->deg; j++) { in chien_search()
998 syn ^= a_pow(bch, m+j*i); in chien_search()
1000 if (syn == 0) { in chien_search()
1055 const unsigned int *syn, unsigned int *errloc) in bch_decode() argument
1067 if (!syn) { in bch_decode()
1089 compute_syndromes(bch, bch->ecc_buf, bch->syn); in bch_decode()
1090 syn = bch->syn; in bch_decode()
1093 err = compute_error_locator_polynomial(bch, syn); in bch_decode()
1382 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in bch_init()
1432 kfree(bch->syn); in bch_free()