Lines Matching refs:chunk_mask
600 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys()
640 sector += (geo->chunk_mask + 1); in __raid10_find_phys()
682 offset = sector & geo->chunk_mask; in raid10_find_virt()
1679 start_disk_offset = (bio_start & geo->chunk_mask) + in raid10_handle_discard()
1688 end_disk_offset = (bio_end & geo->chunk_mask) + in raid10_handle_discard()
1833 sector_t chunk_mask = (conf->geo.chunk_mask & conf->prev.chunk_mask); in raid10_make_request() local
1834 int chunk_sects = chunk_mask + 1; in raid10_make_request()
1851 if (unlikely((bio->bi_iter.bi_sector & chunk_mask) + in raid10_make_request()
3152 sector_t chunk_mask = conf->geo.chunk_mask; in raid10_sync_request() local
3262 max_sector > (sector_nr | chunk_mask)) in raid10_sync_request()
3263 max_sector = (sector_nr | chunk_mask) + 1; in raid10_sync_request()
3573 r10_bio->sectors = (sector_nr | chunk_mask) - sector_nr + 1; in raid10_sync_request()
3862 geo->chunk_mask = chunk - 1; in setup_geo()
4318 if (mddev->array_sectors & geo.chunk_mask) in raid10_check_reshape()
4581 s = (s | geo->chunk_mask) + 1; in last_dev_address()
4695 sector_nr = last & ~(sector_t)(conf->geo.chunk_mask in reshape_request()
4696 & conf->prev.chunk_mask); in reshape_request()
4717 last = sector_nr | (conf->geo.chunk_mask in reshape_request()
4718 & conf->prev.chunk_mask); in reshape_request()