Lines Matching refs:sectors_per_chunk
3012 int sectors_per_chunk = previous ? conf->prev_chunk_sectors in raid5_compute_sector() local
3023 chunk_offset = sector_div(r_sector, sectors_per_chunk); in raid5_compute_sector()
3198 new_sector = (sector_t)stripe * sectors_per_chunk + chunk_offset; in raid5_compute_sector()
3208 int sectors_per_chunk = previous ? conf->prev_chunk_sectors in raid5_compute_blocknr() local
3219 chunk_offset = sector_div(new_sector, sectors_per_chunk); in raid5_compute_blocknr()
3309 r_sector = chunk_number * sectors_per_chunk + chunk_offset; in raid5_compute_blocknr()
3646 int sectors_per_chunk = in stripe_set_idx() local
3649 int chunk_offset = sector_div(stripe, sectors_per_chunk); in stripe_set_idx()
3654 *sectors_per_chunk + chunk_offset, in stripe_set_idx()
6106 int sectors_per_chunk = conf->chunk_sectors; in raid5_bio_lowest_chunk_sector() local
6116 chunk_offset = sector_div(sector, sectors_per_chunk); in raid5_bio_lowest_chunk_sector()
6117 if (sectors_per_chunk - chunk_offset >= bio_sectors(bi)) in raid5_bio_lowest_chunk_sector()
6128 return r_sector + sectors_per_chunk - chunk_offset; in raid5_bio_lowest_chunk_sector()