/openbmc/qemu/hw/nvme/ |
H A D | ns.c | 187 uint64_t zone_size, zone_cap; in nvme_ns_zoned_check_calc_geometry() local 191 zone_size = ns->params.zone_size_bs; in nvme_ns_zoned_check_calc_geometry() 193 zone_size = NVME_DEFAULT_ZONE_SIZE; in nvme_ns_zoned_check_calc_geometry() 198 zone_cap = zone_size; in nvme_ns_zoned_check_calc_geometry() 200 if (zone_cap > zone_size) { in nvme_ns_zoned_check_calc_geometry() 202 "zone size %"PRIu64"B", zone_cap, zone_size); in nvme_ns_zoned_check_calc_geometry() 205 if (zone_size < ns->lbasz) { in nvme_ns_zoned_check_calc_geometry() 207 "must be at least %zuB", zone_size, ns->lbasz); in nvme_ns_zoned_check_calc_geometry() 220 ns->zone_size = zone_size / ns->lbasz; in nvme_ns_zoned_check_calc_geometry() 222 ns->num_zones = le64_to_cpu(ns->id_ns.nsze) / ns->zone_size; in nvme_ns_zoned_check_calc_geometry() [all …]
|
H A D | nvme.h | 261 uint64_t zone_size; member 324 return zone->d.zslba + ns->zone_size; in nvme_zone_rd_boundary()
|
H A D | ctrl.c | 1809 slba / ns->zone_size; in nvme_zone_idx() 4115 count = nvme_m2b(ns, ns->zone_size); in nvme_zone_reset_epilogue_cb() 4173 nvme_l2b(ns, ns->zone_size), in nvme_zone_reset_cb()
|
/openbmc/linux/fs/adfs/ |
H A D | map.c | 312 unsigned int zone, zone_size; in adfs_map_layout() local 315 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_map_layout() 320 dm[0].dm_endbit = 32 + zone_size; in adfs_map_layout() 324 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout() 326 dm[zone].dm_endbit = 32 + zone_size; in adfs_map_layout() 330 size -= (nzones - 1) * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout() 360 unsigned int map_addr, zone_size, nzones; in adfs_read_map() local 364 zone_size = (8 << dr->log2secsize) - le16_to_cpu(dr->zone_spare); in adfs_read_map() 370 asb->s_ids_per_zone = zone_size / (asb->s_idlen + 1); in adfs_read_map() 372 map_addr = (nzones >> 1) * zone_size - in adfs_read_map()
|
/openbmc/linux/fs/btrfs/ |
H A D | zoned.c | 201 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones() 243 ASSERT(IS_ALIGNED(pos, zinfo->zone_size)); in btrfs_get_dev_zones() 326 fs_info->zone_size = btrfs_dev_extent_length(leaf, dext); in calculate_emulated_zone_size() 392 if (!fs_info->zone_size) { in btrfs_get_dev_zone_info() 398 ASSERT(fs_info->zone_size); in btrfs_get_dev_zone_info() 399 zone_sectors = fs_info->zone_size >> SECTOR_SHIFT; in btrfs_get_dev_zone_info() 405 zone_info->zone_size = zone_sectors << SECTOR_SHIFT; in btrfs_get_dev_zone_info() 408 if (zone_info->zone_size > BTRFS_MAX_ZONE_SIZE) { in btrfs_get_dev_zone_info() 412 zone_info->zone_size, BTRFS_MAX_ZONE_SIZE); in btrfs_get_dev_zone_info() 415 } else if (zone_info->zone_size < BTRFS_MIN_ZONE_SIZE) { in btrfs_get_dev_zone_info() [all …]
|
H A D | zoned.h | 21 u64 zone_size; member 322 return fs_info->zone_size == in btrfs_check_device_zone_type() 342 u64 zone_size; in btrfs_can_zone_reset() local 347 zone_size = device->zone_info->zone_size; in btrfs_can_zone_reset() 348 if (!IS_ALIGNED(physical, zone_size) || !IS_ALIGNED(length, zone_size)) in btrfs_can_zone_reset()
|
H A D | volumes.c | 1507 u64 zone_size = device->zone_info->zone_size; in dev_extent_hole_check_zoned() local 1512 ASSERT(IS_ALIGNED(*hole_start, zone_size)); in dev_extent_hole_check_zoned() 1539 *hole_start += zone_size; in dev_extent_hole_check_zoned() 1540 *hole_size -= zone_size; in dev_extent_hole_check_zoned() 1651 !IS_ALIGNED(num_bytes, device->zone_info->zone_size)); in find_free_dev_extent() 5178 u64 zone_size = fs_devices->fs_info->zone_size; in init_alloc_chunk_ctl_policy_zoned() local 5182 u64 min_chunk_size = min_data_stripes * zone_size; in init_alloc_chunk_ctl_policy_zoned() 5185 ctl->max_stripe_size = zone_size; in init_alloc_chunk_ctl_policy_zoned() 5188 zone_size); in init_alloc_chunk_ctl_policy_zoned() 5201 zone_size), in init_alloc_chunk_ctl_policy_zoned() [all …]
|
H A D | fs.h | 757 u64 zone_size; member 865 return IS_ENABLED(CONFIG_BLK_DEV_ZONED) && fs_info->zone_size > 0; in btrfs_is_zoned()
|
H A D | bio.c | 455 u64 zone_start = round_down(physical, dev->fs_info->zone_size); in btrfs_submit_dev_bio()
|
H A D | space-info.c | 200 return fs_info->zone_size; in calc_chunk_size()
|
/openbmc/linux/drivers/mtd/ |
H A D | sm_ftl.c | 196 WARN_ON(block >= ftl->zone_size); in sm_mkoffset() 578 ftl->zone_size = 256; in sm_get_media_info() 587 ftl->zone_size = 512; in sm_get_media_info() 597 ftl->zone_size = 256; in sm_get_media_info() 604 ftl->zone_size = 512; in sm_get_media_info() 610 ftl->zone_size = 1024; in sm_get_media_info() 620 ftl->zone_size = 1024; in sm_get_media_info() 688 for (block = 0 ; block < ftl->zone_size - ftl->max_lba ; block++) { in sm_find_cis() 772 if (kfifo_alloc(&zone->free_sectors, ftl->zone_size * 2, GFP_KERNEL)) { in sm_init_zone() 778 for (block = 0 ; block < ftl->zone_size ; block++) { in sm_init_zone() [all …]
|
H A D | sm_ftl.h | 33 int zone_size; /* zone size in blocks */ member
|
/openbmc/linux/drivers/block/null_blk/ |
H A D | zoned.c | 68 if (!is_power_of_2(dev->zone_size)) { in null_init_zoned_dev() 72 if (dev->zone_size > dev->size) { in null_init_zoned_dev() 78 dev->zone_capacity = dev->zone_size; in null_init_zoned_dev() 80 if (dev->zone_capacity > dev->zone_size) { in null_init_zoned_dev() 82 dev->zone_capacity, dev->zone_size); in null_init_zoned_dev() 91 if (dev->zone_capacity != dev->zone_size && in null_init_zoned_dev() 92 dev->size & (dev->zone_size - 1)) { in null_init_zoned_dev() 99 dev->zone_size_sects = mb_to_sects(dev->zone_size); in null_init_zoned_dev()
|
H A D | null_blk.h | 97 unsigned long zone_size; /* zone size in MB if device is zoned */ member
|
H A D | main.c | 225 module_param_named(zone_size, g_zone_size, ulong, S_IRUGO); 226 MODULE_PARM_DESC(zone_size, "Zone size in MB when block device is zoned. Must be power-of-two: Defa… 434 NULLB_DEVICE_ATTR(zone_size, ulong, NULL); 750 dev->zone_size = g_zone_size; in null_alloc_dev() 2064 (!dev->zone_size || !is_power_of_2(dev->zone_size))) { in null_validate_conf()
|
/openbmc/qemu/block/ |
H A D | file-posix.c | 1326 unsigned int j = offset / bs->bl.zone_size; in get_zones_wp() 1432 bs->bl.zone_size = ret << BDRV_SECTOR_BITS; in raw_refresh_zoned_limits() 2494 int index = offset / bs->bl.zone_size; in raw_co_prw() 2545 uint64_t *wp = &wps->wp[offset / bs->bl.zone_size]; in raw_co_prw() 3420 int64_t zone_size, zone_size_mask; in raw_co_zone_mgmt() local 3427 zone_size = bs->bl.zone_size; in raw_co_zone_mgmt() 3428 zone_size_mask = zone_size - 1; in raw_co_zone_mgmt() 3431 "%" PRId64 "", offset / 512, zone_size / 512); in raw_co_zone_mgmt() 3438 " %" PRId64 "", len / 512, zone_size / 512); in raw_co_zone_mgmt() 3442 uint32_t i = offset / bs->bl.zone_size; in raw_co_zone_mgmt() [all …]
|
/openbmc/qemu/hw/block/ |
H A D | virtio-blk.c | 502 index = offset / bs->bl.zone_size; in check_zoned_request() 628 int64_t zone_size, offset; in virtio_blk_handle_zone_report() local 650 zone_size = sizeof(BlockZoneDescriptor) * nr_zones; in virtio_blk_handle_zone_report() 656 data->zone_report_data.zones = g_malloc(zone_size), in virtio_blk_handle_zone_report() 701 if (bs->bl.zone_size > capacity - offset) { in virtio_blk_handle_zone_mgmt() 703 len = capacity - bs->bl.zone_size * (bs->bl.nr_zones - 1ull); in virtio_blk_handle_zone_mgmt() 705 len = bs->bl.zone_size; in virtio_blk_handle_zone_mgmt() 1210 bs->bl.zone_size / 512); in virtio_blk_update_config()
|
/openbmc/linux/drivers/md/ |
H A D | raid0.c | 38 sector_t zone_size = 0; in dump_zones() local 54 zone_size = conf->strip_zone[j].zone_end - zone_start; in dump_zones() 58 (unsigned long long)zone_size>>1); in dump_zones()
|
/openbmc/linux/Documentation/block/ |
H A D | null_blk.rst | 146 zone_size=[MB]: Default: 256
|
/openbmc/qemu/include/block/ |
H A D | block_int-common.h | 884 uint32_t zone_size; member
|
/openbmc/qemu/docs/system/devices/ |
H A D | nvme.rst | 193 ``zoned.zone_size=SIZE`` (default: ``128MiB``)
|