Searched refs:zone_info (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/fs/btrfs/ |
D | zoned.c | 182 struct btrfs_zoned_device_info *zone_info) in zone_start_physical() argument 184 return (u64)zone_number << zone_info->zone_size_shift; in zone_start_physical() 220 struct btrfs_zoned_device_info *zinfo = device->zone_info; in btrfs_get_dev_zones() 246 struct blk_zone *zone_info; in btrfs_get_dev_zones() local 248 zone_info = &zinfo->zone_cache[zno + i]; in btrfs_get_dev_zones() 249 if (!zone_info->len) in btrfs_get_dev_zones() 354 struct btrfs_zoned_device_info *zone_info = NULL; in btrfs_get_dev_zone_info() local 373 if (device->zone_info) in btrfs_get_dev_zone_info() 376 zone_info = kzalloc(sizeof(*zone_info), GFP_KERNEL); in btrfs_get_dev_zone_info() 377 if (!zone_info) in btrfs_get_dev_zone_info() [all …]
|
D | zoned.h | 284 struct btrfs_zoned_device_info *zone_info = device->zone_info; in btrfs_dev_is_sequential() local 286 if (!zone_info) in btrfs_dev_is_sequential() 289 return test_bit(pos >> zone_info->zone_size_shift, zone_info->seq_zones); in btrfs_dev_is_sequential() 294 struct btrfs_zoned_device_info *zone_info = device->zone_info; in btrfs_dev_is_empty_zone() local 296 if (!zone_info) in btrfs_dev_is_empty_zone() 299 return test_bit(pos >> zone_info->zone_size_shift, zone_info->empty_zones); in btrfs_dev_is_empty_zone() 305 struct btrfs_zoned_device_info *zone_info = device->zone_info; in btrfs_dev_set_empty_zone_bit() local 308 if (!zone_info) in btrfs_dev_set_empty_zone_bit() 311 zno = pos >> zone_info->zone_size_shift; in btrfs_dev_set_empty_zone_bit() 313 set_bit(zno, zone_info->empty_zones); in btrfs_dev_set_empty_zone_bit() [all …]
|
D | volumes.c | 1023 if (orig_dev->zone_info) { in clone_fs_devices() 1024 struct btrfs_zoned_device_info *zone_info; in clone_fs_devices() local 1026 zone_info = btrfs_clone_dev_zone_info(orig_dev); in clone_fs_devices() 1027 if (!zone_info) { in clone_fs_devices() 1032 device->zone_info = zone_info; in clone_fs_devices() 1435 return ALIGN(start, device->zone_info->zone_size); in dev_extent_search_start() 1445 u64 zone_size = device->zone_info->zone_size; in dev_extent_hole_check_zoned() 1586 WARN_ON(device->zone_info && in find_free_dev_extent_start() 1587 !IS_ALIGNED(num_bytes, device->zone_info->zone_size)); in find_free_dev_extent_start() 5306 u64 zone_size = devices_info[0].dev->zone_info->zone_size; in decide_stripe_size_zoned() [all …]
|
D | volumes.h | 104 struct btrfs_zoned_device_info *zone_info; member
|
/linux-6.1.9/drivers/scsi/ |
D | sd_zbc.c | 212 nr_zones = min(nr_zones, sdkp->zone_info.nr_zones); in sd_zbc_alloc_report_buffer() 237 return logical_to_sectors(sdkp->device, sdkp->zone_info.zone_blocks); in sd_zbc_zone_sectors() 374 for (zno = 0; zno < sdkp->zone_info.nr_zones; zno++) { in sd_zbc_update_wp_offset_workfn() 381 zno * sdkp->zone_info.zone_blocks, true); in sd_zbc_update_wp_offset_workfn() 448 if (wp_offset + nr_blocks > sdkp->zone_info.zone_blocks) { in sd_zbc_prepare_zone_append() 577 sdkp->zone_info.nr_zones * sizeof(unsigned int)); in sd_zbc_zone_wp_update() 763 if (sdkp->capacity & (sdkp->zone_info.zone_blocks - 1)) in sd_zbc_print_zones() 766 sdkp->zone_info.nr_zones - 1, in sd_zbc_print_zones() 767 sdkp->zone_info.zone_blocks); in sd_zbc_print_zones() 771 sdkp->zone_info.nr_zones, in sd_zbc_print_zones() [all …]
|
D | sd.h | 98 struct zoned_disk_info zone_info; member
|