Lines Matching refs:chunk_sects
315 unsigned int chunk_sects = mddev->chunk_sectors; in map_sector() local
317 if (is_power_of_2(chunk_sects)) { in map_sector()
318 int chunksect_bits = ffz(~chunk_sects); in map_sector()
320 sect_in_chunk = sector & (chunk_sects - 1); in map_sector()
327 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector()
329 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()
336 *sector_offset = (chunk * chunk_sects) + sect_in_chunk; in map_sector()
523 unsigned chunk_sects; in raid0_make_request() local
537 chunk_sects = mddev->chunk_sectors; in raid0_make_request()
539 sectors = chunk_sects - in raid0_make_request()
540 (likely(is_power_of_2(chunk_sects)) in raid0_make_request()
541 ? (sector & (chunk_sects-1)) in raid0_make_request()
542 : sector_div(sector, chunk_sects)); in raid0_make_request()