Lines Matching refs:rm

210 cmp_code(raidz_test_opts_t *opts, const raidz_map_t *rm, const int parity)  in cmp_code()  argument
216 for (r = 0; r < rm->rm_nrows; r++) { in cmp_code()
217 raidz_row_t * const rr = rm->rm_row[r]; in cmp_code()
237 cmp_data(raidz_test_opts_t *opts, raidz_map_t *rm) in cmp_data() argument
241 for (r = 0; r < rm->rm_nrows; r++) { in cmp_data()
242 raidz_row_t *rr = rm->rm_row[r]; in cmp_data()
273 corrupt_colums(raidz_map_t *rm, const int *tgts, const int cnt) in corrupt_colums() argument
275 for (int r = 0; r < rm->rm_nrows; r++) { in corrupt_colums()
276 raidz_row_t *rr = rm->rm_row[r]; in corrupt_colums()
292 fini_raidz_map(zio_t **zio, raidz_map_t **rm) in fini_raidz_map() argument
294 vdev_raidz_map_free(*rm); in fini_raidz_map()
299 *rm = NULL; in fini_raidz_map()
365 raidz_map_t *rm = NULL; in init_raidz_map() local
381 rm = vdev_raidz_map_alloc_expanded(*zio, in init_raidz_map()
385 rm = vdev_raidz_map_alloc(*zio, opts->rto_ashift, in init_raidz_map()
388 VERIFY(rm); in init_raidz_map()
391 corrupt_colums(rm, ccols, parity); in init_raidz_map()
393 return (rm); in init_raidz_map()
456 run_rec_check_impl(raidz_test_opts_t *opts, raidz_map_t *rm, const int fn) in run_rec_check_impl() argument
476 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
485 tgtidx[2] = x0 + raidz_parity(rm); in run_rec_check_impl()
487 corrupt_colums(rm, tgtidx+2, 1); in run_rec_check_impl()
490 vdev_raidz_reconstruct(rm, tgtidx, 3); in run_rec_check_impl()
492 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()
501 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
504 if (x1 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
505 raidz_parity(rm)) in run_rec_check_impl()
514 tgtidx[1] = x0 + raidz_parity(rm); in run_rec_check_impl()
515 tgtidx[2] = x1 + raidz_parity(rm); in run_rec_check_impl()
517 corrupt_colums(rm, tgtidx+1, 2); in run_rec_check_impl()
520 vdev_raidz_reconstruct(rm, tgtidx, 3); in run_rec_check_impl()
522 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()
532 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
535 if (x1 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
536 raidz_parity(rm)) in run_rec_check_impl()
539 if (x2 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
540 raidz_parity(rm)) in run_rec_check_impl()
549 tgtidx[0] = x0 + raidz_parity(rm); in run_rec_check_impl()
550 tgtidx[1] = x1 + raidz_parity(rm); in run_rec_check_impl()
551 tgtidx[2] = x2 + raidz_parity(rm); in run_rec_check_impl()
553 corrupt_colums(rm, tgtidx, 3); in run_rec_check_impl()
556 vdev_raidz_reconstruct(rm, in run_rec_check_impl()
559 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()