Lines Matching refs:zone
80 struct strip_zone *zone; in create_strip_zones() local
166 zone = &conf->strip_zone[0]; in create_strip_zones()
215 zone->nb_dev = cnt; in create_strip_zones()
216 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
218 curr_zone_end = zone->zone_end; in create_strip_zones()
225 zone = conf->strip_zone + i; in create_strip_zones()
229 zone->dev_start = smallest->sectors; in create_strip_zones()
235 if (rdev->sectors <= zone->dev_start) { in create_strip_zones()
255 zone->nb_dev = c; in create_strip_zones()
256 sectors = (smallest->sectors - zone->dev_start) * c; in create_strip_zones()
259 zone->nb_dev, (unsigned long long)sectors); in create_strip_zones()
262 zone->zone_end = curr_zone_end; in create_strip_zones()
304 static struct md_rdev *map_sector(struct mddev *mddev, struct strip_zone *zone, in map_sector() argument
321 sector_div(chunk, zone->nb_dev << chunksect_bits); in map_sector()
325 sector_div(chunk, chunk_sects * zone->nb_dev); in map_sector()
333 return conf->devlist[(zone - conf->strip_zone)*raid_disks in map_sector()
334 + sector_div(sector, zone->nb_dev)]; in map_sector()
457 struct strip_zone *zone; in raid0_make_request() local
485 zone = find_zone(mddev->private, §or); in raid0_make_request()
486 tmp_dev = map_sector(mddev, zone, sector, §or); in raid0_make_request()
488 split->bi_iter.bi_sector = sector + zone->dev_start + in raid0_make_request()