• Home
  • Raw
  • Download

Lines Matching refs:t

85 #define GF_T(_p)               ((_p)->t)
410 const int t = GF_T(bch); in compute_syndromes() local
418 memset(syn, 0, 2*t*sizeof(*syn)); in compute_syndromes()
426 for (j = 0; j < 2*t; j += 2) in compute_syndromes()
434 for (j = 0; j < t; j++) in compute_syndromes()
446 const unsigned int t = GF_T(bch); in compute_error_locator_polynomial() local
454 memset(pelp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial()
455 memset(elp, 0, GF_POLY_SZ(2*t)); in compute_error_locator_polynomial()
463 for (i = 0; (i < t) && (elp->deg <= t); i++) { in compute_error_locator_polynomial()
485 if (i < t-1) { in compute_error_locator_polynomial()
492 return (elp->deg > t) ? -1 : (int)elp->deg; in compute_error_locator_polynomial()
581 unsigned int mask = 0xff, t, rows[16] = {0,}; in find_affine4_roots() local
601 t = ((rows[k] >> j)^rows[k+j]) & mask; in find_affine4_roots()
602 rows[k] ^= (t << j); in find_affine4_roots()
603 rows[k+j] ^= t; in find_affine4_roots()
1236 const unsigned int t = GF_T(bch); in compute_generator_polynomial() local
1242 g = bch_alloc(GF_POLY_SZ(m*t), &err); in compute_generator_polynomial()
1244 genpoly = bch_alloc(DIV_ROUND_UP(m*t+1, 32)*sizeof(*genpoly), &err); in compute_generator_polynomial()
1254 for (i = 0; i < t; i++) { in compute_generator_polynomial()
1319 struct bch_control *bch_init(int m, int t, unsigned int prim_poly, in bch_init() argument
1336 if ((m != (CONFIG_BCH_CONST_M)) || (t != (CONFIG_BCH_CONST_T))) { in bch_init()
1351 if (t > BCH_MAX_T) in bch_init()
1359 if ((t < 1) || (m*t >= ((1 << m)-1))) in bch_init()
1372 bch->t = t; in bch_init()
1374 words = DIV_ROUND_UP(m*t, 32); in bch_init()
1375 bch->ecc_bytes = DIV_ROUND_UP(m*t, 8); in bch_init()
1382 bch->syn = bch_alloc(2*t*sizeof(*bch->syn), &err); in bch_init()
1383 bch->cache = bch_alloc(2*t*sizeof(*bch->cache), &err); in bch_init()
1384 bch->elp = bch_alloc((t+1)*sizeof(struct gf_poly_deg1), &err); in bch_init()
1388 bch->poly_2t[i] = bch_alloc(GF_POLY_SZ(2*t), &err); in bch_init()