/linux/fs/btrfs/ |
H A D | raid-stripe-tree.c | 185 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); in btrfs_insert_one_raid_extent() local 187 const size_t item_size = struct_size(stripe_extent, strides, num_stripes); in btrfs_insert_one_raid_extent() 198 num_stripes); in btrfs_insert_one_raid_extent() 199 for (int i = 0; i < num_stripes; i++) { in btrfs_insert_one_raid_extent() 265 int num_stripes; in btrfs_get_raid_extent_offset() local 326 num_stripes = btrfs_num_raid_stripes(btrfs_item_size(leaf, slot)); in btrfs_get_raid_extent_offset() 329 for (int i = 0; i < num_stripes; i++) { in btrfs_get_raid_extent_offset()
|
H A D | volumes.c | 46 int num_stripes; member 3137 u32 num_stripes; in btrfs_del_sys_chunk() local 3157 num_stripes = btrfs_stack_chunk_num_stripes(chunk); in btrfs_del_sys_chunk() 3158 len += btrfs_chunk_item_size(num_stripes); in btrfs_del_sys_chunk() 3298 for (i = 0; i < map->num_stripes; i++) { in remove_chunk_item() 3339 for (i = 0; i < map->num_stripes; i++) { in btrfs_remove_chunk() 3941 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_devid_filter() local 3944 for (i = 0; i < num_stripes; i++) { in chunk_devid_filter() 3953 static u64 calc_data_stripes(u64 type, int num_stripes) in calc_data_stripes() argument 3959 return (num_stripes - nparity) / ncopies; in calc_data_stripes() [all …]
|
H A D | volumes.h | 498 u16 num_stripes; member 598 int num_stripes; member 660 static inline unsigned long btrfs_chunk_item_size(int num_stripes) in btrfs_chunk_item_size() argument 662 ASSERT(num_stripes); in btrfs_chunk_item_size() 664 sizeof(struct btrfs_stripe) * (num_stripes - 1); in btrfs_chunk_item_size() 689 u32 *num_stripes); 753 struct btrfs_chunk_map *btrfs_alloc_chunk_map(int num_stripes, gfp_t gfp);
|
H A D | tree-checker.c | 825 u16 num_stripes; in btrfs_check_chunk_valid() local 836 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in btrfs_check_chunk_valid() 843 if (unlikely(!num_stripes)) { in btrfs_check_chunk_valid() 845 "invalid chunk num_stripes, have %u", num_stripes); in btrfs_check_chunk_valid() 848 if (unlikely(num_stripes < ncopies)) { in btrfs_check_chunk_valid() 851 num_stripes, ncopies); in btrfs_check_chunk_valid() 854 if (unlikely(nparity && num_stripes == nparity)) { in btrfs_check_chunk_valid() 857 num_stripes, nparity); in btrfs_check_chunk_valid() 953 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) || in btrfs_check_chunk_valid() 955 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) || in btrfs_check_chunk_valid() [all …]
|
H A D | raid56.h | 178 return map->num_stripes - btrfs_nr_parity_stripes(map->type); in nr_data_stripes() 183 return bioc->num_stripes - btrfs_nr_parity_stripes(bioc->map_type); in nr_bioc_data_stripes()
|
H A D | print-tree.c | 57 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk() local 61 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk() 62 for (i = 0 ; i < num_stripes ; i++) { in print_chunk() 210 const int num_stripes = btrfs_num_raid_stripes(item_size); in print_raid_stripe_key() local 212 for (int i = 0; i < num_stripes; i++) in print_raid_stripe_key()
|
H A D | zoned.c | 1448 for (i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid1() 1492 for (int i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid0() 1524 for (int i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid10() 1577 zone_info = kcalloc(map->num_stripes, sizeof(*zone_info), GFP_NOFS); in btrfs_load_block_group_zone_info() 1583 active = bitmap_zalloc(map->num_stripes, GFP_NOFS); in btrfs_load_block_group_zone_info() 1589 for (i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_zone_info() 1612 } else if (map->num_stripes == num_conventional) { in btrfs_load_block_group_zone_info() 2016 nmirrors = (int)bioc->num_stripes; in read_zone_info() 2105 for (i = 0; i < map->num_stripes; i++) { in btrfs_zone_activate() 2268 for (i = 0; i < map->num_stripes; i++) { in do_zone_finish() [all …]
|
H A D | super.c | 1604 int num_stripes = 1; in btrfs_calc_avail_data_space() local 1633 num_stripes = nr_devices; in btrfs_calc_avail_data_space() 1635 num_stripes = rattr->ncopies; in btrfs_calc_avail_data_space() 1637 num_stripes = 4; in btrfs_calc_avail_data_space() 1681 num_stripes = min(num_stripes, nr_devices); in btrfs_calc_avail_data_space() 1687 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space() 1689 for (j = i + 1 - num_stripes; j <= i; j++) in btrfs_calc_avail_data_space()
|
H A D | scrub.c | 1315 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset() 1318 stripe_index = rot % map->num_stripes; in get_raid56_logic_offset() 1983 stripe_index = (i + rot) % map->num_stripes; in scrub_raid56_parity_stripe() 2182 return btrfs_stripe_nr_to_offset(map->num_stripes / map->sub_stripes); in simple_stripe_full_stripe_len() 2192 ASSERT(stripe_index < map->num_stripes); in simple_stripe_get_logical() 2207 ASSERT(stripe_index < map->num_stripes); in simple_stripe_mirror_num() 2440 for (i = 0; i < map->num_stripes; ++i) { in scrub_chunk()
|
H A D | bio.c | 469 if (dev_nr == bioc->num_stripes - 1) { in btrfs_submit_mirrored_bio() 507 int total_devs = bioc->num_stripes; in btrfs_submit_bio()
|
H A D | dev-replace.c | 572 for (i = 0; i < map->num_stripes; i++) { in btrfs_finish_block_group_to_copy() 848 for (int i = 0; i < map->num_stripes; i++) in btrfs_dev_replace_update_device_in_mapping_tree()
|
H A D | accessors.h | 187 BTRFS_SETGET_FUNCS(chunk_num_stripes, struct btrfs_chunk, num_stripes, 16); 207 num_stripes, 16);
|
H A D | block-group.c | 1325 num_items = 3 + map->num_stripes; in btrfs_start_trans_remove_block_group() 2125 buf = kcalloc(map->num_stripes, sizeof(u64), GFP_NOFS); in btrfs_rmap_block() 2131 for (i = 0; i < map->num_stripes; i++) { in btrfs_rmap_block() 2148 stripe_nr = div_u64(stripe_nr * map->num_stripes + i, in btrfs_rmap_block() 2711 for (i = 0; i < map->num_stripes; i++) { in insert_dev_extents()
|
H A D | extent-tree.c | 1404 unsigned int num_stripes; in btrfs_discard_extent() local 1408 stripes = btrfs_map_discard(fs_info, cur, &num_bytes, &num_stripes); in btrfs_discard_extent() 1416 for (i = 0; i < num_stripes; i++) { in btrfs_discard_extent()
|
/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 1004 u64 num_stripes; member 1020 map = btrfs_alloc_chunk_map(test->num_stripes, GFP_KERNEL); in test_rmap_block() 1030 map->num_stripes = test->num_stripes; in test_rmap_block() 1033 for (i = 0; i < map->num_stripes; i++) { in test_rmap_block() 1103 .num_stripes = 2, in btrfs_test_extent_map() 1120 .num_stripes = 1, in btrfs_test_extent_map()
|
/linux/include/trace/events/ |
H A D | btrfs.h | 1040 __field( int, num_stripes ) 1049 __entry->num_stripes = map->num_stripes; 1062 __entry->num_stripes, __entry->sub_stripes, 2425 __entry->total_stripes = rbio->bioc->num_stripes; 2466 int num_stripes), 2468 TP_ARGS(fs_info, logical, length, num_stripes), 2473 __field( int, num_stripes ) 2479 __entry->num_stripes = num_stripes; 2484 __entry->num_stripes)
|
/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-css-fw.c | 68 bi->info.isp.sp.iterator.num_stripes; in imgu_css_fw_obgrid_size() 197 if (bi->info.isp.sp.iterator.num_stripes > in imgu_css_fw_init()
|
H A D | ipu3-css.c | 695 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; in imgu_css_pipeline_init() 990 sp_stage->num_stripes = stripes; in imgu_css_pipeline_init() 1577 if (bi->info.isp.sp.iterator.num_stripes <= 1) { in imgu_css_find_binary() 2130 stripes = bi->info.isp.sp.iterator.num_stripes ? : 1; in imgu_css_set_parameters()
|
H A D | ipu3-abi.h | 1467 u8 num_stripes; member 1592 u32 num_stripes; member
|
/linux/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_internal.h | 578 u8 num_stripes; member
|
/linux/include/uapi/linux/ |
H A D | btrfs_tree.h | 656 __le16 num_stripes; member
|
/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-image-convert.c | 397 static inline int num_stripes(int dim) in num_stripes() function 458 cols = num_stripes(max_t(u32, downsized_width, resized_width)); in calc_image_resize_coefficients() 459 rows = num_stripes(max_t(u32, downsized_height, resized_height)); in calc_image_resize_coefficients()
|
/linux/drivers/staging/media/atomisp/pci/runtime/binary/src/ |
H A D | binary.c | 1031 if (striped && candidate->iterator.num_stripes == 1) { in ia_css_binary_find()
|