Lines Matching refs:chunk_shift

585 	chunk = r10bio->sector >> geo->chunk_shift;  in __raid10_find_phys()
594 sector += stripe << geo->chunk_shift; in __raid10_find_phys()
671 chunk = sector >> geo->chunk_shift; in raid10_find_virt()
684 chunk = sector >> geo->chunk_shift; in raid10_find_virt()
688 return (vchunk << geo->chunk_shift) + offset; in raid10_find_virt()
1647 stripe_size = stripe_data_disks << geo->chunk_shift; in raid10_handle_discard()
1696 chunk = bio_start >> geo->chunk_shift; in raid10_handle_discard()
1703 (first_stripe_index << geo->chunk_shift); in raid10_handle_discard()
1705 chunk = bio_end >> geo->chunk_shift; in raid10_handle_discard()
1712 (last_stripe_index << geo->chunk_shift); in raid10_handle_discard()
1837 first_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()
1839 last_stripe_index += geo->stride >> geo->chunk_shift; in raid10_handle_discard()
3872 size = sectors >> conf->geo.chunk_shift; in raid10_size()
3877 return size << conf->geo.chunk_shift; in raid10_size()
3887 size = size >> conf->geo.chunk_shift; in calc_sectors()
3900 conf->dev_sectors = size << conf->geo.chunk_shift; in calc_sectors()
3903 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors()
3906 conf->geo.stride = size << conf->geo.chunk_shift; in calc_sectors()
3963 geo->chunk_shift = ffz(~chunk); in setup_geo()
4026 conf->prev.stride = 1 << conf->prev.chunk_shift; in setup_conf()
4222 before_length = ((1 << conf->prev.chunk_shift) * in raid10_run()
4224 after_length = ((1 << conf->geo.chunk_shift) * in raid10_run()
4517 before_length = ((1 << conf->prev.chunk_shift) * in raid10_start_reshape()
4519 after_length = ((1 << conf->geo.chunk_shift) * in raid10_start_reshape()
4686 s >>= geo->chunk_shift; in last_dev_address()
4690 s <<= geo->chunk_shift; in last_dev_address()
4700 s >>= geo->chunk_shift; in first_dev_address()
4704 s <<= geo->chunk_shift; in first_dev_address()
5205 mddev->chunk_sectors = 1 << conf->geo.chunk_shift; in raid10_finish_reshape()