• Home
  • Raw
  • Download

Lines Matching refs:len

152 			int len, int errs, int eras)  in get_rcw_we()  argument
157 int dlen = len - nroots; in get_rcw_we()
173 memcpy(r, c, len * sizeof(*r)); in get_rcw_we()
174 memset(errlocs, 0, len * sizeof(*errlocs)); in get_rcw_we()
186 errloc = prandom_u32() % len; in get_rcw_we()
197 errloc = prandom_u32() % len; in get_rcw_we()
230 int len, uint16_t *syn) in compute_syndrome() argument
243 for (j = 1; j < len; j++) { in compute_syndrome()
260 static void test_uc(struct rs_control *rs, int len, int errs, in test_uc() argument
264 int dlen = len - rs->codec->nroots; in test_uc()
275 nerrs = get_rcw_we(rs, ws, len, errs, eras); in test_uc()
284 compute_syndrome(rs, r, len, s); in test_uc()
307 if (memcmp(r, c, len * sizeof(*r))) in test_uc()
314 int len, int trials, int method) in ex_rs_helper() argument
331 test_uc(rs, len, errs, eras, trials, &stat, ws, method); in ex_rs_helper()
350 int len, int trials) in exercise_rs() argument
360 retval |= ex_rs_helper(rs, ws, len, trials, i); in exercise_rs()
366 static void test_bc(struct rs_control *rs, int len, int errs, in test_bc() argument
371 int dlen = len - nroots; in test_bc()
378 get_rcw_we(rs, ws, len, errs, eras); in test_bc()
408 int len, int trials) in exercise_rs_bc() argument
422 cutoff = nroots <= len - errs ? nroots : len - errs; in exercise_rs_bc()
424 test_bc(rs, len, errs, eras, trials, &stat, ws); in exercise_rs_bc()
464 int len = nn - pad; in run_exercise() local
472 len, kk - pad, nn + 1); in run_exercise()
475 retval |= exercise_rs(rsc, ws, len, e->ntrials); in run_exercise()
477 retval |= exercise_rs_bc(rsc, ws, len, e->ntrials); in run_exercise()