Home
last modified time | relevance | path

Searched refs:num_stripes (Results 1 – 25 of 27) sorted by relevance

12

/linux/fs/btrfs/
H A Draid-stripe-tree.c117 const int num_stripes = btrfs_bg_type_to_factor(bioc->map_type); in btrfs_insert_one_raid_extent() local
119 const size_t item_size = struct_size(stripe_extent, strides, num_stripes); in btrfs_insert_one_raid_extent()
130 num_stripes); in btrfs_insert_one_raid_extent()
131 for (int i = 0; i < num_stripes; i++) { in btrfs_insert_one_raid_extent()
197 int num_stripes; in btrfs_get_raid_extent_offset() local
258 num_stripes = btrfs_num_raid_stripes(btrfs_item_size(leaf, slot)); in btrfs_get_raid_extent_offset()
261 for (int i = 0; i < num_stripes; i++) { in btrfs_get_raid_extent_offset()
H A Dvolumes.c46 int num_stripes; member
5470 map->num_stripes = ctl->num_stripes; in create_chunk()
5880 num_stripes = map->num_stripes; in find_live_mirror()
6032 *num_stripes = min_t(u64, map->num_stripes, in btrfs_map_discard()
6043 *num_stripes = map->num_stripes; in btrfs_map_discard()
6131 int num_stripes = io_geom->num_stripes; in handle_ops_on_dev_replace() local
6298 io_geom->num_stripes = map->num_stripes; in map_blocks_raid1()
6316 io_geom->num_stripes = map->num_stripes; in map_blocks_dup()
6375 io_geom->num_stripes = map->num_stripes; in map_blocks_raid56_write()
6625 bioc->num_stripes = io_geom.num_stripes; in btrfs_map_block()
[all …]
H A Dvolumes.h498 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);
755 struct btrfs_chunk_map *btrfs_alloc_chunk_map(int num_stripes, gfp_t gfp);
H A Dtree-checker.c825 u16 num_stripes; in btrfs_check_chunk_valid() local
843 if (unlikely(!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()
968 num_stripes, sub_stripes, in btrfs_check_chunk_valid()
986 int num_stripes; in check_leaf_chunk_item() local
999 if (num_stripes == 0) in check_leaf_chunk_item()
1002 if (unlikely(btrfs_chunk_item_size(num_stripes) != in check_leaf_chunk_item()
[all …]
H A Draid56.h178 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 Dprint-tree.c57 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 Dzoned.c1445 for (i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid1()
1489 for (int i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid0()
1521 for (int i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_raid10()
1574 zone_info = kcalloc(map->num_stripes, sizeof(*zone_info), GFP_NOFS); in btrfs_load_block_group_zone_info()
1580 active = bitmap_zalloc(map->num_stripes, GFP_NOFS); in btrfs_load_block_group_zone_info()
1586 for (i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_zone_info()
1609 } else if (map->num_stripes == num_conventional) { in btrfs_load_block_group_zone_info()
2013 nmirrors = (int)bioc->num_stripes; in read_zone_info()
2102 for (i = 0; i < map->num_stripes; i++) { in btrfs_zone_activate()
2265 for (i = 0; i < map->num_stripes; i++) { in do_zone_finish()
[all …]
H A Dsuper.c1606 int num_stripes = 1; in btrfs_calc_avail_data_space() local
1635 num_stripes = nr_devices; in btrfs_calc_avail_data_space()
1637 num_stripes = rattr->ncopies; in btrfs_calc_avail_data_space()
1639 num_stripes = 4; in btrfs_calc_avail_data_space()
1683 num_stripes = min(num_stripes, nr_devices); in btrfs_calc_avail_data_space()
1689 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
1691 for (j = i + 1 - num_stripes; j <= i; j++) in btrfs_calc_avail_data_space()
H A Dscrub.c1315 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset()
1318 stripe_index = rot % map->num_stripes; in get_raid56_logic_offset()
1974 stripe_index = (i + rot) % map->num_stripes; in scrub_raid56_parity_stripe()
2174 return btrfs_stripe_nr_to_offset(map->num_stripes / map->sub_stripes); in simple_stripe_full_stripe_len()
2184 ASSERT(stripe_index < map->num_stripes); in simple_stripe_get_logical()
2199 ASSERT(stripe_index < map->num_stripes); in simple_stripe_mirror_num()
2439 for (i = 0; i < map->num_stripes; ++i) { in scrub_chunk()
H A Draid56.c53 bioc->replace_stripe_src, bioc->num_stripes); in dump_bioc()
54 for (int i = 0; i < bioc->num_stripes; i++) { in dump_bioc()
984 const unsigned int real_stripes = bioc->num_stripes - bioc->replace_nr_stripes; in alloc_rbio()
1141 ASSERT_RBIO_STRIPE(stripe_nr >= 0 && stripe_nr < rbio->bioc->num_stripes, in rbio_add_io_sector()
1249 for (i = 0; i < bioc->num_stripes; i++) { in bio_get_trace_info()
H A Dbio.c466 if (dev_nr == bioc->num_stripes - 1) { in btrfs_submit_mirrored_bio()
504 int total_devs = bioc->num_stripes; in btrfs_submit_bio()
H A Ddev-replace.c572 for (i = 0; i < map->num_stripes; i++) { in btrfs_finish_block_group_to_copy()
847 for (int i = 0; i < map->num_stripes; i++) in btrfs_dev_replace_update_device_in_mapping_tree()
H A Daccessors.h187 BTRFS_SETGET_FUNCS(chunk_num_stripes, struct btrfs_chunk, num_stripes, 16);
207 num_stripes, 16);
H A Dblock-group.c1325 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()
/linux/fs/btrfs/tests/
H A Dextent-map-tests.c1004 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/drivers/staging/media/ipu3/
H A Dipu3-css-fw.c68 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 Dipu3-css.c695 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 Dipu3-abi.h1467 u8 num_stripes; member
1592 u32 num_stripes; member
/linux/include/trace/events/
H A Dbtrfs.h1040 __field( int, num_stripes )
1049 __entry->num_stripes = map->num_stripes;
1062 __entry->num_stripes, __entry->sub_stripes,
2423 __entry->total_stripes = rbio->bioc->num_stripes;
2464 int num_stripes),
2466 TP_ARGS(fs_info, logical, length, num_stripes),
2471 __field( int, num_stripes )
2477 __entry->num_stripes = num_stripes;
2482 __entry->num_stripes)
/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_acc_types.h154 u32 num_stripes; member
H A Dsh_css_internal.h587 u8 num_stripes; member
H A Dsh_css_sp.c103 sh_css_sp_stage.num_stripes = (uint8_t) in copy_isp_stage_to_sp_stage()
104 sh_css_isp_stage.binary_info.iterator.num_stripes; in copy_isp_stage_to_sp_stage()
/linux/include/uapi/linux/
H A Dbtrfs_tree.h656 __le16 num_stripes; member
/linux/drivers/gpu/ipu-v3/
H A Dipu-image-convert.c397 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 Dbinary.c1040 if (striped && candidate->iterator.num_stripes == 1) { in ia_css_binary_find()

12