Lines Matching refs:chunk_shift

604 	chunk = r10bio->sector >> geo->chunk_shift;  in __raid10_find_phys()
613 sector += stripe << geo->chunk_shift; in __raid10_find_phys()
690 chunk = sector >> geo->chunk_shift; in raid10_find_virt()
703 chunk = sector >> geo->chunk_shift; in raid10_find_virt()
707 return (vchunk << geo->chunk_shift) + offset; in raid10_find_virt()
1693 stripe_size = stripe_data_disks << geo->chunk_shift; in raid10_handle_discard()
1742 chunk = bio_start >> geo->chunk_shift; in raid10_handle_discard()
1749 (first_stripe_index << geo->chunk_shift); in raid10_handle_discard()
1751 chunk = bio_end >> geo->chunk_shift; in raid10_handle_discard()
1758 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()
1882 first_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()
1884 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()
3941 size = sectors >> conf->geo.chunk_shift; in raid10_size()
3946 return size << conf->geo.chunk_shift; in raid10_size()
3956 size = size >> conf->geo.chunk_shift; in calc_sectors()
3969 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()
3972 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors()
3975 conf->geo.stride = size << conf->geo.chunk_shift; in calc_sectors()
4032 geo->chunk_shift = ffz(~chunk); in setup_geo()
4109 conf->prev.stride = 1 << conf->prev.chunk_shift; in setup_conf()
4298 before_length = ((1 << conf->prev.chunk_shift) * in raid10_run()
4300 after_length = ((1 << conf->geo.chunk_shift) * in raid10_run()
4581 before_length = ((1 << conf->prev.chunk_shift) * in raid10_start_reshape()
4583 after_length = ((1 << conf->geo.chunk_shift) * in raid10_start_reshape()
4750 s >>= geo->chunk_shift; in last_dev_address()
4754 s <<= geo->chunk_shift; in last_dev_address()
4764 s >>= geo->chunk_shift; in first_dev_address()
4768 s <<= geo->chunk_shift; in first_dev_address()
5269 mddev->chunk_sectors = 1 << conf->geo.chunk_shift; in raid10_finish_reshape()