Lines Matching refs:rm
152 vdev_raidz_math_generate(raidz_map_t *rm, raidz_row_t *rr) in vdev_raidz_math_generate() argument
156 switch (raidz_parity(rm)) { in vdev_raidz_math_generate()
158 gen_parity = rm->rm_ops->gen[RAIDZ_GEN_P]; in vdev_raidz_math_generate()
161 gen_parity = rm->rm_ops->gen[RAIDZ_GEN_PQ]; in vdev_raidz_math_generate()
164 gen_parity = rm->rm_ops->gen[RAIDZ_GEN_PQR]; in vdev_raidz_math_generate()
169 (u_longlong_t)raidz_parity(rm)); in vdev_raidz_math_generate()
183 reconstruct_fun_p_sel(raidz_map_t *rm, const int *parity_valid, in reconstruct_fun_p_sel() argument
187 return (rm->rm_ops->rec[RAIDZ_REC_P]); in reconstruct_fun_p_sel()
193 reconstruct_fun_pq_sel(raidz_map_t *rm, const int *parity_valid, in reconstruct_fun_pq_sel() argument
198 return (rm->rm_ops->rec[RAIDZ_REC_P]); in reconstruct_fun_pq_sel()
200 return (rm->rm_ops->rec[RAIDZ_REC_Q]); in reconstruct_fun_pq_sel()
204 return (rm->rm_ops->rec[RAIDZ_REC_PQ]); in reconstruct_fun_pq_sel()
210 reconstruct_fun_pqr_sel(raidz_map_t *rm, const int *parity_valid, in reconstruct_fun_pqr_sel() argument
215 return (rm->rm_ops->rec[RAIDZ_REC_P]); in reconstruct_fun_pqr_sel()
217 return (rm->rm_ops->rec[RAIDZ_REC_Q]); in reconstruct_fun_pqr_sel()
219 return (rm->rm_ops->rec[RAIDZ_REC_R]); in reconstruct_fun_pqr_sel()
223 return (rm->rm_ops->rec[RAIDZ_REC_PQ]); in reconstruct_fun_pqr_sel()
225 return (rm->rm_ops->rec[RAIDZ_REC_PR]); in reconstruct_fun_pqr_sel()
227 return (rm->rm_ops->rec[RAIDZ_REC_QR]); in reconstruct_fun_pqr_sel()
232 return (rm->rm_ops->rec[RAIDZ_REC_PQR]); in reconstruct_fun_pqr_sel()
244 vdev_raidz_math_reconstruct(raidz_map_t *rm, raidz_row_t *rr, in vdev_raidz_math_reconstruct() argument
249 switch (raidz_parity(rm)) { in vdev_raidz_math_reconstruct()
251 rec_fn = reconstruct_fun_p_sel(rm, parity_valid, nbaddata); in vdev_raidz_math_reconstruct()
254 rec_fn = reconstruct_fun_pq_sel(rm, parity_valid, nbaddata); in vdev_raidz_math_reconstruct()
257 rec_fn = reconstruct_fun_pqr_sel(rm, parity_valid, nbaddata); in vdev_raidz_math_reconstruct()
261 (u_longlong_t)raidz_parity(rm)); in vdev_raidz_math_reconstruct()
363 typedef void (*benchmark_fn)(raidz_map_t *rm, const int fn);
366 benchmark_gen_impl(raidz_map_t *rm, const int fn) in benchmark_gen_impl() argument
369 vdev_raidz_generate_parity(rm); in benchmark_gen_impl()
373 benchmark_rec_impl(raidz_map_t *rm, const int fn) in benchmark_rec_impl() argument
385 vdev_raidz_reconstruct(rm, rec_tgt[fn], 3); in benchmark_rec_impl()