Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/btrfs/
H A Dvolumes.c3029 u32 num_stripes; in btrfs_del_sys_chunk() local
3049 num_stripes = btrfs_stack_chunk_num_stripes(chunk); in btrfs_del_sys_chunk()
3050 len += btrfs_chunk_item_size(num_stripes); in btrfs_del_sys_chunk()
3117 for (i = 0; i < map->num_stripes; i++) { in remove_chunk_item()
3160 for (i = 0; i < map->num_stripes; i++) { in btrfs_remove_chunk()
3724 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_devid_filter() local
3727 for (i = 0; i < num_stripes; i++) { in chunk_devid_filter()
3736 static u64 calc_data_stripes(u64 type, int num_stripes) in calc_data_stripes() argument
3742 return (num_stripes - nparity) / ncopies; in calc_data_stripes()
3751 int num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in chunk_drange_filter() local
[all …]
H A Dtree-checker.c803 u16 num_stripes; in btrfs_check_chunk_valid() local
814 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in btrfs_check_chunk_valid()
821 if (unlikely(!num_stripes)) { in btrfs_check_chunk_valid()
823 "invalid chunk num_stripes, have %u", num_stripes); in btrfs_check_chunk_valid()
826 if (unlikely(num_stripes < ncopies)) { in btrfs_check_chunk_valid()
829 num_stripes, ncopies); in btrfs_check_chunk_valid()
832 if (unlikely(nparity && num_stripes == nparity)) { in btrfs_check_chunk_valid()
835 num_stripes, nparity); in btrfs_check_chunk_valid()
931 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) || in btrfs_check_chunk_valid()
933 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) || in btrfs_check_chunk_valid()
[all …]
H A Dvolumes.h432 u16 num_stripes; member
525 int num_stripes; member
582 static inline unsigned long btrfs_chunk_item_size(int num_stripes) in btrfs_chunk_item_size() argument
584 ASSERT(num_stripes); in btrfs_chunk_item_size()
586 sizeof(struct btrfs_stripe) * (num_stripes - 1); in btrfs_chunk_item_size()
612 u32 *num_stripes);
H A Draid56.h169 return map->num_stripes - btrfs_nr_parity_stripes(map->type); in nr_data_stripes()
174 return bioc->num_stripes - btrfs_nr_parity_stripes(bioc->map_type); in nr_bioc_data_stripes()
H A Dprint-tree.c54 int num_stripes = btrfs_chunk_num_stripes(eb, chunk); in print_chunk() local
58 btrfs_chunk_type(eb, chunk), num_stripes); in print_chunk()
59 for (i = 0 ; i < num_stripes ; i++) { in print_chunk()
H A Dsuper.c1925 int num_stripes = 1; in btrfs_calc_avail_data_space() local
1954 num_stripes = nr_devices; in btrfs_calc_avail_data_space()
1956 num_stripes = rattr->ncopies; in btrfs_calc_avail_data_space()
1958 num_stripes = 4; in btrfs_calc_avail_data_space()
2002 num_stripes = min(num_stripes, nr_devices); in btrfs_calc_avail_data_space()
2008 avail_space += devices_info[i].max_avail * num_stripes; in btrfs_calc_avail_data_space()
2010 for (j = i + 1 - num_stripes; j <= i; j++) in btrfs_calc_avail_data_space()
H A Dzoned.c1479 cache->physical_map = kmemdup(map, map_lookup_size(map->num_stripes), GFP_NOFS); in btrfs_load_block_group_zone_info()
1485 zone_info = kcalloc(map->num_stripes, sizeof(*zone_info), GFP_NOFS); in btrfs_load_block_group_zone_info()
1491 active = bitmap_zalloc(map->num_stripes, GFP_NOFS); in btrfs_load_block_group_zone_info()
1497 for (i = 0; i < map->num_stripes; i++) { in btrfs_load_block_group_zone_info()
1520 } else if (map->num_stripes == num_conventional) { in btrfs_load_block_group_zone_info()
1912 nmirrors = (int)bioc->num_stripes; in read_zone_info()
2001 for (i = 0; i < map->num_stripes; i++) { in btrfs_zone_activate()
2163 for (i = 0; i < map->num_stripes; i++) { in do_zone_finish()
2539 for (int i = 0; i < map->num_stripes; i++) in btrfs_check_active_zone_reservation()
H A Dscrub.c1316 rot = stripe_nr % map->num_stripes; in get_raid56_logic_offset()
1319 stripe_index = rot % map->num_stripes; in get_raid56_logic_offset()
1887 stripe_index = (i + rot) % map->num_stripes; in scrub_raid56_parity_stripe()
2085 return btrfs_stripe_nr_to_offset(map->num_stripes / map->sub_stripes); in simple_stripe_get_logical()
2095 ASSERT(stripe_index < map->num_stripes); in simple_stripe_get_logical()
2110 ASSERT(stripe_index < map->num_stripes); in simple_stripe_mirror_num()
2353 for (i = 0; i < map->num_stripes; ++i) { in scrub_chunk()
H A Dbio.c481 if (dev_nr == bioc->num_stripes - 1) { in btrfs_submit_mirrored_bio()
518 int total_devs = bioc->num_stripes; in __btrfs_submit_bio()
H A Dextent_map.c363 for (i = 0; i < map->num_stripes; i++) { in extent_map_device_set_bits()
379 for (i = 0; i < map->num_stripes; i++) { in extent_map_device_clear_bits()
H A Ddev-replace.c575 for (i = 0; i < map->num_stripes; i++) { in btrfs_finish_block_group_to_copy()
843 for (i = 0; i < map->num_stripes; i++) in btrfs_dev_replace_update_device_in_mapping_tree()
H A Daccessors.h177 BTRFS_SETGET_FUNCS(chunk_num_stripes, struct btrfs_chunk, num_stripes, 16);
197 num_stripes, 16);
H A Dblock-group.c1328 num_items = 3 + map->num_stripes; in btrfs_start_trans_remove_block_group()
2112 buf = kcalloc(map->num_stripes, sizeof(u64), GFP_NOFS); in btrfs_rmap_block()
2118 for (i = 0; i < map->num_stripes; i++) { in btrfs_rmap_block()
2135 stripe_nr = div_u64(stripe_nr * map->num_stripes + i, in btrfs_rmap_block()
2708 for (i = 0; i < map->num_stripes; i++) { in insert_dev_extents()
H A Draid56.c905 const unsigned int real_stripes = bioc->num_stripes - bioc->replace_nr_stripes; in alloc_rbio()
1054 ASSERT(stripe_nr >= 0 && stripe_nr < rbio->bioc->num_stripes); in rbio_add_io_sector()
1160 for (i = 0; i < bioc->num_stripes; i++) { in bio_get_trace_info()
/openbmc/linux/fs/btrfs/tests/
H A Dextent-map-tests.c856 u64 num_stripes; member
879 map = kmalloc(map_lookup_size(test->num_stripes), GFP_KERNEL); in test_rmap_block()
894 map->num_stripes = test->num_stripes; in test_rmap_block()
897 for (i = 0; i < map->num_stripes; i++) { in test_rmap_block()
974 .num_stripes = 2, in btrfs_test_extent_map()
991 .num_stripes = 1, in btrfs_test_extent_map()
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-css-fw.c68 bi->info.isp.sp.iterator.num_stripes; in imgu_css_fw_obgrid_size()
195 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()
2131 stripes = bi->info.isp.sp.iterator.num_stripes ? : 1; in imgu_css_set_parameters()
/openbmc/u-boot/fs/btrfs/
H A Dchunk-map.c138 cur += sizeof(struct btrfs_stripe) * (chunk->num_stripes - 1); in btrfs_chunk_map_init()
H A Dconv-funcs.h126 sector_size, num_stripes, sub_stripes)
H A Dbtrfs_tree.h426 __u16 num_stripes; member
/openbmc/qemu/hw/ssi/
H A Dxilinx_spips.c455 int num_stripes = 1; in xlnx_zynqmp_qspips_flush_fifo_g() local
502 num_stripes = 2; in xlnx_zynqmp_qspips_flush_fifo_g()
508 for (i = 0; i < num_stripes; ++i) { in xlnx_zynqmp_qspips_flush_fifo_g()
517 if (num_stripes == 1) { in xlnx_zynqmp_qspips_flush_fifo_g()
528 busses == 0x3 && num_stripes == 2) { in xlnx_zynqmp_qspips_flush_fifo_g()
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_acc_types.h154 u32 num_stripes; member
H A Dsh_css_internal.h603 u8 num_stripes; member
/openbmc/linux/include/trace/events/
H A Dbtrfs.h1069 __field( int, num_stripes )
1078 __entry->num_stripes = map->num_stripes;
1091 __entry->num_stripes, __entry->sub_stripes,
2470 __entry->total_stripes = rbio->bioc->num_stripes;
/openbmc/linux/include/uapi/linux/
H A Dbtrfs_tree.h635 __le16 num_stripes; member

12