Lines Matching refs:stripe_index

893 		int stripe_index = stripe->mirror_num - 1;
907 physical = bioc->stripes[stripe_index].physical;
908 dev = bioc->stripes[stripe_index].dev;
1308 u32 stripe_index;
1319 stripe_index = rot % map->num_stripes;
1320 if (stripe_index == num)
1322 if (stripe_index < num)
1876 int stripe_index;
1883 stripe_index = (i + rot) % map->num_stripes;
1884 physical = map->stripes[stripe_index].physical +
1890 map->stripes[stripe_index].dev, physical, 1,
1902 stripe->dev = map->stripes[stripe_index].dev;
2087 int stripe_index)
2091 ASSERT(stripe_index < map->num_stripes);
2094 * (stripe_index / sub_stripes) gives how many data stripes we need to
2097 return btrfs_stripe_nr_to_offset(stripe_index / map->sub_stripes) +
2102 static int simple_stripe_mirror_num(struct map_lookup *map, int stripe_index)
2106 ASSERT(stripe_index < map->num_stripes);
2109 return stripe_index % map->sub_stripes + 1;
2116 int stripe_index)
2119 const u64 orig_logical = simple_stripe_get_logical(map, bg, stripe_index);
2120 const u64 orig_physical = map->stripes[stripe_index].physical;
2121 const int mirror_num = simple_stripe_mirror_num(map, stripe_index);
2149 int stripe_index)
2157 u64 physical = map->stripes[stripe_index].physical;
2216 * @stripe_index.
2219 scrub_dev, map->stripes[stripe_index].physical,
2220 stripe_index + 1);
2225 ret = scrub_simple_stripe(sctx, bg, map, scrub_dev, stripe_index);
2226 offset = btrfs_stripe_nr_to_offset(stripe_index / map->sub_stripes);
2235 get_raid56_logic_offset(physical_end, stripe_index,
2240 get_raid56_logic_offset(physical, stripe_index, map, &offset, NULL);
2248 ret = get_raid56_logic_offset(physical, stripe_index, map,
2279 map->stripes[stripe_index].physical + dev_stripe_len;
2305 map->stripes[stripe_index].physical,