Lines Matching refs:group_width

75 	if (layout->group_width) {  in ore_verify_layout()
80 if (total_comps < (layout->group_width * layout->mirrors_p1)) { in ore_verify_layout()
83 total_comps, layout->group_width, in ore_verify_layout()
88 layout->group_width; in ore_verify_layout()
95 layout->group_width = total_comps / layout->mirrors_p1; in ore_verify_layout()
100 stripe_length = (u64)layout->group_width * layout->stripe_unit; in ore_verify_layout()
109 (layout->group_width - layout->parity); in ore_verify_layout()
112 (layout->group_width - layout->parity) * in ore_verify_layout()
261 unsigned numdevs = layout->group_width * layout->mirrors_p1; in ore_get_rw_state()
266 unsigned data_devs = layout->group_width - layout->parity; in ore_get_rw_state()
287 num_raid_units += layout->group_width; in ore_get_rw_state()
544 u32 group_width = layout->group_width; in ore_calc_stripe_info() local
548 u32 D = group_width - parity; in ore_calc_stripe_info()
566 u32 C = (u32)(H - (N * U)) / stripe_unit + G * group_width; in ore_calc_stripe_info()
567 u32 first_dev = C - C % group_width; in ore_calc_stripe_info()
577 u32 LCMdP = lcm(group_width, parity) / parity; in ore_calc_stripe_info()
581 si->par_dev = (group_width + group_width - parity - RxP) % in ore_calc_stripe_info()
582 group_width + first_dev; in ore_calc_stripe_info()
583 si->dev = (group_width + group_width + C - RxP) % in ore_calc_stripe_info()
584 group_width + first_dev; in ore_calc_stripe_info()
589 si->par_dev = group_width; in ore_calc_stripe_info()
624 (ios->layout->group_width - ios->layout->parity) / in _ore_add_stripe_unit()
625 ios->layout->group_width; in _ore_add_stripe_unit()
704 ios->layout->group_width; in _add_parity_units()
716 unsigned group_width = ios->layout->group_width; in _prepare_for_striping() local
717 unsigned devs_in_group = group_width * mirrors_p1; in _prepare_for_striping()
763 si->cur_comp = (si->cur_comp + 1) % group_width; in _prepare_for_striping()
771 si->cur_comp = group_width - ios->layout->parity; in _prepare_for_striping()
910 BUG_ON((ios->layout->group_width > 1) && in _write_mirror()
1110 ti->first_group_dev = ti->si.dev - (ti->si.dev % layout->group_width); in _calc_trunk_info()
1111 ti->nex_group_dev = ti->first_group_dev + layout->group_width; in _calc_trunk_info()