Lines Matching refs:stripe_len
5121 map->stripe_len = BTRFS_STRIPE_LEN; in __btrfs_alloc_chunk()
5261 btrfs_set_stack_chunk_stripe_len(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5264 btrfs_set_stack_chunk_io_align(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5265 btrfs_set_stack_chunk_io_width(chunk, map->stripe_len); in btrfs_finish_chunk_alloc()
5445 len = map->stripe_len * nr_data_stripes(map); in btrfs_full_stripe_len()
5601 u64 stripe_len; in __btrfs_map_block_for_discard() local
5630 stripe_len = map->stripe_len; in __btrfs_map_block_for_discard()
5635 stripe_nr = div64_u64(offset, stripe_len); in __btrfs_map_block_for_discard()
5638 stripe_offset = offset - stripe_nr * stripe_len; in __btrfs_map_block_for_discard()
5640 stripe_nr_end = round_up(offset + length, map->stripe_len); in __btrfs_map_block_for_discard()
5641 stripe_nr_end = div64_u64(stripe_nr_end, map->stripe_len); in __btrfs_map_block_for_discard()
5643 stripe_end_offset = stripe_nr_end * map->stripe_len - in __btrfs_map_block_for_discard()
5685 stripe_offset + stripe_nr * map->stripe_len; in __btrfs_map_block_for_discard()
5691 map->stripe_len; in __btrfs_map_block_for_discard()
5695 map->stripe_len; in __btrfs_map_block_for_discard()
5934 u64 stripe_len; in btrfs_get_io_geometry() local
5949 stripe_len = map->stripe_len; in btrfs_get_io_geometry()
5951 stripe_nr = div64_u64(offset, stripe_len); in btrfs_get_io_geometry()
5953 stripe_offset = stripe_nr * stripe_len; in btrfs_get_io_geometry()
5957 stripe_offset, offset, em->start, logical, stripe_len); in btrfs_get_io_geometry()
5967 u64 max_len = stripe_len - stripe_offset; in btrfs_get_io_geometry()
5973 unsigned long full_stripe_len = stripe_len * data_stripes; in btrfs_get_io_geometry()
5990 max_len = stripe_len * data_stripes - in btrfs_get_io_geometry()
6001 io_geom->stripe_len = stripe_len; in btrfs_get_io_geometry()
6022 u64 stripe_len; in __btrfs_map_block() local
6054 stripe_len = geom.stripe_len; in __btrfs_map_block()
6132 stripe_len * data_stripes); in __btrfs_map_block()
6138 *length = map->stripe_len; in __btrfs_map_block()
6211 em->start + (tmp + i) * map->stripe_len; in __btrfs_map_block()
6224 stripe_nr * map->stripe_len; in __btrfs_map_block()
6286 u64 physical, u64 **logical, int *naddrs, int *stripe_len) in btrfs_rmap_block() argument
6303 rmap_len = map->stripe_len; in btrfs_rmap_block()
6311 rmap_len = map->stripe_len * nr_data_stripes(map); in btrfs_rmap_block()
6323 stripe_nr = div64_u64(stripe_nr, map->stripe_len); in btrfs_rmap_block()
6348 *stripe_len = rmap_len; in btrfs_rmap_block()
6780 map->stripe_len = btrfs_chunk_stripe_len(leaf, chunk); in read_one_chunk()
7662 u64 stripe_len; in verify_one_dev_extent() local
7680 stripe_len = calc_stripe_length(map->type, em->len, map->num_stripes); in verify_one_dev_extent()
7681 if (physical_len != stripe_len) { in verify_one_dev_extent()
7685 stripe_len); in verify_one_dev_extent()