/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-stripe.c | 32 uint32_t stripes; member 35 /* The size of this target / num. stripes */ 86 * <number of stripes> <chunk size> [<dev_path> <offset>]+ 92 uint32_t stripes; in stripe_ctr() local 102 if (kstrtouint(argv[0], 10, &stripes) || !stripes) { in stripe_ctr() 113 if (sector_div(width, stripes)) { in stripe_ctr() 114 ti->error = "Target length not divisible by number of stripes"; in stripe_ctr() 125 * Do we have enough arguments for that many stripes ? in stripe_ctr() 127 if (argc != (2 + 2 * stripes)) { in stripe_ctr() [all...] |
H A D | dm-unstripe.c | 16 uint32_t stripes; member 37 * <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 57 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr() 72 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr() 73 ti->error = "Please provide stripe between [0, # of stripes]"; in unstripe_ctr() 89 uc->unstripe_width = (uc->stripes - 1) * uc->chunk_size; in unstripe_ctr() 157 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-stripe.c | 29 uint32_t stripes; member 32 /* The size of this target / num. stripes */ 83 * <number of stripes> <chunk size> [<dev_path> <offset>]+ 89 uint32_t stripes; in stripe_ctr() local 99 if (kstrtouint(argv[0], 10, &stripes) || !stripes) { in stripe_ctr() 110 if (sector_div(width, stripes)) { in stripe_ctr() 112 "number of stripes"; in stripe_ctr() 124 * Do we have enough arguments for that many stripes ? in stripe_ctr() 126 if (argc != (2 + 2 * stripes)) { in stripe_ctr() [all...] |
H A D | dm-unstripe.c | 15 uint32_t stripes; member 36 * <number of stripes> <chunk size> <stripe #> <dev_path> <offset> 56 if (kstrtouint(argv[0], 10, &uc->stripes) || !uc->stripes) { in unstripe_ctr() 71 if (uc->unstripe > uc->stripes && uc->stripes > 1) { in unstripe_ctr() 72 ti->error = "Please provide stripe between [0, # of stripes]"; in unstripe_ctr() 88 uc->unstripe_width = (uc->stripes - 1) * uc->chunk_size; in unstripe_ctr() 156 uc->stripes, (unsigned long long)uc->chunk_size, uc->unstripe, in unstripe_status()
|
/kernel/linux/linux-6.6/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 361 struct imgu_css *css, unsigned int stripes, in imgu_css_osys_calc_frame_and_stripe_params() 546 for (s = 0; s < stripes; s++) { in imgu_css_osys_calc_frame_and_stripe_params() 571 if (stripes > 1) { in imgu_css_osys_calc_frame_and_stripe_params() 575 output_width * s / stripes; in imgu_css_osys_calc_frame_and_stripe_params() 689 if (s < stripes - 1) { in imgu_css_osys_calc_frame_and_stripe_params() 695 next_offset = output_width * (s + 1) / stripes; in imgu_css_osys_calc_frame_and_stripe_params() 736 if (s >= stripes - 1) { in imgu_css_osys_calc_frame_and_stripe_params() 843 * stripes, scaler luma and chrome parameters 846 unsigned int stripes, in imgu_css_osys_calc() 861 if (imgu_css_osys_calc_frame_and_stripe_params(css, stripes, osy in imgu_css_osys_calc() 360 imgu_css_osys_calc_frame_and_stripe_params( struct imgu_css *css, unsigned int stripes, struct imgu_abi_osys_config *osys, struct imgu_css_scaler_info *scaler_luma, struct imgu_css_scaler_info *scaler_chroma, struct imgu_css_frame_params frame_params[], struct imgu_css_stripe_params stripe_params[], unsigned int pipe) imgu_css_osys_calc_frame_and_stripe_params() argument 845 imgu_css_osys_calc(struct imgu_css *css, unsigned int pipe, unsigned int stripes, struct imgu_abi_osys_config *osys, struct imgu_css_scaler_info *scaler_luma, struct imgu_css_scaler_info *scaler_chroma, struct imgu_abi_stripes block_stripes[]) imgu_css_osys_calc() argument 1734 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; imgu_css_cfg_acc_stripe() local 1952 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; imgu_css_cfg_acc() local [all...] |
H A D | ipu3-css.c | 695 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; in imgu_css_pipeline_init() local 990 sp_stage->num_stripes = stripes; in imgu_css_pipeline_init() 2109 unsigned int stripes, i; in imgu_css_set_parameters() local 2131 stripes = bi->info.isp.sp.iterator.num_stripes ? : 1; in imgu_css_set_parameters() 2242 for (i = 0; i < stripes; i++) { in imgu_css_set_parameters() 2245 map->daddr + (obgrid_size / stripes) * i; in imgu_css_set_parameters()
|
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/ |
H A D | ipu3-css-params.c | 361 struct imgu_css *css, unsigned int stripes, in imgu_css_osys_calc_frame_and_stripe_params() 546 for (s = 0; s < stripes; s++) { in imgu_css_osys_calc_frame_and_stripe_params() 571 if (stripes > 1) { in imgu_css_osys_calc_frame_and_stripe_params() 575 output_width * s / stripes; in imgu_css_osys_calc_frame_and_stripe_params() 689 if (s < stripes - 1) { in imgu_css_osys_calc_frame_and_stripe_params() 695 next_offset = output_width * (s + 1) / stripes; in imgu_css_osys_calc_frame_and_stripe_params() 736 if (s >= stripes - 1) { in imgu_css_osys_calc_frame_and_stripe_params() 846 * stripes, scaler luma and chrome parameters 849 unsigned int stripes, in imgu_css_osys_calc() 864 if (imgu_css_osys_calc_frame_and_stripe_params(css, stripes, osy in imgu_css_osys_calc() 360 imgu_css_osys_calc_frame_and_stripe_params( struct imgu_css *css, unsigned int stripes, struct imgu_abi_osys_config *osys, struct imgu_css_scaler_info *scaler_luma, struct imgu_css_scaler_info *scaler_chroma, struct imgu_css_frame_params frame_params[], struct imgu_css_stripe_params stripe_params[], unsigned int pipe) imgu_css_osys_calc_frame_and_stripe_params() argument 848 imgu_css_osys_calc(struct imgu_css *css, unsigned int pipe, unsigned int stripes, struct imgu_abi_osys_config *osys, struct imgu_css_scaler_info *scaler_luma, struct imgu_css_scaler_info *scaler_chroma, struct imgu_abi_stripes block_stripes[]) imgu_css_osys_calc() argument 1737 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; imgu_css_cfg_acc_stripe() local 1955 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; imgu_css_cfg_acc() local [all...] |
H A D | ipu3-css.c | 708 const unsigned int stripes = bi->info.isp.sp.iterator.num_stripes; in imgu_css_pipeline_init() local 1003 sp_stage->num_stripes = stripes; in imgu_css_pipeline_init() 2124 unsigned int stripes, i; in imgu_css_set_parameters() local 2146 stripes = bi->info.isp.sp.iterator.num_stripes ? : 1; in imgu_css_set_parameters() 2257 for (i = 0; i < stripes; i++) { in imgu_css_set_parameters() 2260 map->daddr + (obgrid_size / stripes) * i; in imgu_css_set_parameters()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | scrub.c | 46 * This detemines how many stripes would be submitted in one go, 96 * Set for data stripes if it's triggered from P/Q stripe. 97 * During such scrub, we should not report errors in data stripes, nor 186 struct scrub_stripe stripes[SCRUB_TOTAL_STRIPES]; member 332 release_scrub_stripe(&sctx->stripes[i]); in scrub_free_ctx() 349 /* Since sctx has inline 128 stripes, it can go beyond 64K easily. Use in scrub_setup_ctx() 365 ret = init_scrub_stripe(fs_info, &sctx->stripes[i]); in scrub_setup_ctx() 368 sctx->stripes[i].sctx = sctx; in scrub_setup_ctx() 907 physical = bioc->stripes[stripe_index].physical; in scrub_stripe_report_errors() 908 dev = bioc->stripes[stripe_inde in scrub_stripe_report_errors() [all...] |
H A D | volumes.c | 3081 ret = btrfs_update_device(trans, map->stripes[i].dev); in remove_chunk_item() 3122 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk() 3124 map->stripes[i].physical, in btrfs_remove_chunk() 3153 * that replaces the device object associated with the map's stripes, in btrfs_remove_chunk() 3827 /* stripes filter */ in should_balance_chunk() 4178 CHECK_APPEND_2ARG("stripes=%u..%u,", in describe_balance_args() 5079 /* Total number of stripes to allocate */ 5093 /* Number of stripes worth of bytes to store parity information */ 5265 /* Number of stripes that count for block group size */ in decide_stripe_size_regular() 5269 * The primary goal is to maximize the number of stripes, s in decide_stripe_size_regular() 5931 struct btrfs_discard_stripe *stripes; btrfs_map_discard() local [all...] |
H A D | zoned.c | 1361 device = map->stripes[i].dev; in btrfs_load_block_group_zone_info() 1362 physical[i] = map->stripes[i].physical; in btrfs_load_block_group_zone_info() 1904 u64 physical = bioc->stripes[i].physical; in read_zone_info() 1905 struct btrfs_device *dev = bioc->stripes[i].dev; in read_zone_info() 1995 device = map->stripes[i].dev; in btrfs_zone_activate() 1996 physical = map->stripes[i].physical; in btrfs_zone_activate() 2154 struct btrfs_device *device = map->stripes[i].dev; in do_zone_finish() 2155 const u64 physical = map->stripes[i].physical; in do_zone_finish() 2530 map->stripes[i].dev->zone_info->reserved_active_zones--; in btrfs_check_active_zone_reservation()
|
H A D | bio.c | 490 bio->bi_private = &bioc->stripes[dev_nr]; in btrfs_submit_mirrored_bio() 491 bio->bi_iter.bi_sector = bioc->stripes[dev_nr].physical >> SECTOR_SHIFT; in btrfs_submit_mirrored_bio() 492 bioc->stripes[dev_nr].bioc = bioc; in btrfs_submit_mirrored_bio() 493 btrfs_submit_dev_bio(bioc->stripes[dev_nr].dev, bio); in btrfs_submit_mirrored_bio() 765 * associated to its stripes that don't go away while we are doing the in btrfs_repair_io_failure()
|
H A D | raid56.c | 44 /* Used by the raid56 code to lock stripes for read/modify/write */ 50 /* Used by the raid56 code to lock stripes for read/modify/write */ 283 * Thus if the first sector of the page belongs to data stripes, then in is_data_stripe_page() 284 * the full page belongs to data stripes. in is_data_stripe_page() 962 /* allocate pages for all the stripes in the bio, including parity */ 975 /* only allocate pages for p/q stripes */ 1058 stripe = &rbio->bioc->stripes[stripe_nr]; in rbio_add_io_sector() 1161 if (bio->bi_bdev != bioc->stripes[i].dev->bdev) in bio_get_trace_info() 1164 trace_info->devid = bioc->stripes[i].dev->devid; in bio_get_trace_info() 1166 bioc->stripes[ in bio_get_trace_info() [all...] |
H A D | volumes.h | 369 /* Policy used to read the mirrored stripes. */ 423 * The total number of stripes, including the extra duplicated 439 * @replace_nr_stripes: Number of duplicated stripes which need to be 442 * @replace_stripe_src: The array indicates where the duplicated stripes 446 * As non-RAID56 stripes share the same contents of the mapped range, 449 * But for RAID56 case, all stripes contain different contents, thus 455 * stripes[0]: dev = devid 1, physical = X 456 * stripes[1]: dev = devid 2, physical = Y 457 * stripes[2]: dev = devid 3, physical = Z 458 * stripes[ 488 struct btrfs_io_stripe stripes[]; global() member 522 struct btrfs_io_stripe stripes[]; global() member [all...] |
H A D | dev-replace.c | 577 if (srcdev != map->stripes[i].dev) in btrfs_finish_block_group_to_copy() 581 if (physical == map->stripes[i].physical) in btrfs_finish_block_group_to_copy() 589 * Has more stripes on this device. Keep this block group in btrfs_finish_block_group_to_copy() 590 * readonly until we finish all the stripes. in btrfs_finish_block_group_to_copy() 843 if (srcdev == map->stripes[i].dev) in btrfs_dev_replace_update_device_in_mapping_tree() 844 map->stripes[i].dev = tgtdev; in btrfs_dev_replace_update_device_in_mapping_tree()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | volumes.c | 3041 * with map stripes (dev-replace.c:btrfs_dev_replace_finishing()). in btrfs_remove_chunk() 3045 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk() 3047 map->stripes[i].physical, in btrfs_remove_chunk() 3658 /* stripes filter */ in should_balance_chunk() 4016 CHECK_APPEND_2ARG("stripes=%u..%u,", in describe_balance_args() 4918 /* Total number of stripes to allocate */ 4932 /* Number of stripes worth of bytes to store parity information */ 5078 /* Number of stripes that count for block group size */ in decide_stripe_size_regular() 5082 * The primary goal is to maximize the number of stripes, so use as in decide_stripe_size_regular() 5083 * many devices as possible, even if the stripes ar in decide_stripe_size_regular() [all...] |
H A D | scrub.c | 1363 page->physical = bbio->stripes[stripe_index].physical + in scrub_setup_recheck_block() 1365 page->dev = bbio->stripes[stripe_index].dev; in scrub_setup_recheck_block() 2607 last_offset = (physical - map->stripes[num].physical) * data_stripes; in get_raid56_logic_offset() 2875 "scrub: tree block %llu spanning stripes, ignored. logical=%llu", in scrub_raid56_parity() 2912 extent_physical = bbio->stripes[0].physical; in scrub_raid56_parity() 2914 extent_dev = bbio->stripes[0].dev; in scrub_raid56_parity() 3013 physical = map->stripes[num].physical; in scrub_stripe() 3241 "scrub: tree block %llu spanning stripes, ignored. logical=%llu", in scrub_stripe() 3299 * or we have finished all stripes. in scrub_stripe() 3343 sctx->stat.last_physical = map->stripes[nu in scrub_stripe() [all...] |
H A D | volumes.h | 343 struct btrfs_bio_stripe stripes[]; member 355 u8 dev_stripes; /* stripes per dev */ 361 u8 nparity; /* number of stripes worth of bytes to store 378 struct btrfs_bio_stripe stripes[]; member
|
H A D | extent_map.c | 363 struct btrfs_bio_stripe *stripe = &map->stripes[i]; in extent_map_device_set_bits() 378 struct btrfs_bio_stripe *stripe = &map->stripes[i]; in extent_map_device_clear_bits()
|
H A D | reada.c | 275 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone() 355 dev = bbio->stripes[nzones].dev; in reada_find_extent()
|
H A D | dev-replace.c | 667 if (srcdev == map->stripes[i].dev) in btrfs_dev_replace_update_device_in_mapping_tree() 668 map->stripes[i].dev = tgtdev; in btrfs_dev_replace_update_device_in_mapping_tree()
|
/kernel/linux/linux-5.10/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 449 /* Assume we won't have more than 5 physical stripes */ 498 map->stripes[i].dev = dev; in test_rmap_block() 499 map->stripes[i].physical = test->data_stripe_phys_start[i]; in test_rmap_block() 559 * Test a chunk with 2 data stripes one of which in btrfs_test_extent_map()
|
/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_actlog.c | 300 const unsigned int stripes = device->ldev->md.al_stripes; in al_tr_number_to_on_disk_sector() local 307 t = ((t % stripes) * stripe_size_4kB) + t/stripes; in al_tr_number_to_on_disk_sector()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_actlog.c | 300 const unsigned int stripes = device->ldev->md.al_stripes; in al_tr_number_to_on_disk_sector() local 307 t = ((t % stripes) * stripe_size_4kB) + t/stripes; in al_tr_number_to_on_disk_sector()
|
/kernel/linux/linux-6.6/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 852 /* Assume we won't have more than 5 physical stripes */ 900 map->stripes[i].dev = dev; in test_rmap_block() 901 map->stripes[i].physical = test->data_stripe_phys_start[i]; in test_rmap_block() 961 * Test a chunk with 2 data stripes one of which in btrfs_test_extent_map()
|