Home
last modified time | relevance | path

Searched refs:zone_capacity (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/block/null_blk/
H A Dzoned.c77 if (!dev->zone_capacity) 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()
97 zone_capacity_sects = mb_to_sects(dev->zone_capacity); in null_init_zoned_dev()
H A Dnull_blk.h98 unsigned long zone_capacity; /* zone capacity in MB if device is zoned */ member
H A Dmain.c229 module_param_named(zone_capacity, g_zone_capacity, ulong, 0444);
230 MODULE_PARM_DESC(zone_capacity, "Zone capacity in MB when block device is zoned. Can be less than o…
435 NULLB_DEVICE_ATTR(zone_capacity, ulong, NULL);
751 dev->zone_capacity = g_zone_capacity; in null_alloc_dev()
/openbmc/linux/fs/btrfs/
H A Dzoned.c1396 bg->zone_capacity = info->capacity; in btrfs_load_block_group_single()
1513 cache->zone_capacity = cache->length; in btrfs_load_block_group_zone_info()
1555 if (cache->alloc_offset > cache->zone_capacity) { in btrfs_load_block_group_zone_info()
1558 cache->alloc_offset, cache->zone_capacity, in btrfs_load_block_group_zone_info()
1600 (cache->length - cache->zone_capacity); in btrfs_calc_zone_unusable()
1601 free = cache->zone_capacity - cache->alloc_offset; in btrfs_calc_zone_unusable()
2153 block_group->alloc_offset = block_group->zone_capacity; in do_zone_finish()
2156 block_group->zone_capacity; in do_zone_finish()
2274 block_group->start + block_group->zone_capacity) in btrfs_zone_finish_endio()
2298 eb->start + eb->len * 2 <= bg->start + bg->zone_capacity) in btrfs_schedule_zone_finish_bg()
[all …]
H A Dblock-group.h244 u64 zone_capacity; member
H A Dzoned.h400 return (bg->alloc_offset == bg->zone_capacity); in btrfs_zoned_bg_is_full()
H A Dfree-space-cache.c2705 WARN_ON(!initial && offset + size > block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2712 to_free = block_group->zone_capacity; in __btrfs_add_free_space_zoned()
2737 (block_group->length - block_group->zone_capacity); in __btrfs_add_free_space_zoned()
2743 mult_perc(block_group->zone_capacity, bg_reclaim_threshold)) { in __btrfs_add_free_space_zoned()
2926 block_group->zone_capacity - block_group->alloc_offset, in btrfs_dump_free_space()
H A Dextent-tree.c3798 WARN_ON_ONCE(block_group->alloc_offset > block_group->zone_capacity); in do_allocation_zoned()
3799 avail = block_group->zone_capacity - block_group->alloc_offset; in do_allocation_zoned()
4176 u64 avail = block_group->zone_capacity - block_group->alloc_offset; in prepare_allocation_zoned()
H A Dblock-group.c3029 (cache->length - cache->zone_capacity); in btrfs_dec_block_group_ro()
/openbmc/qemu/hw/nvme/
H A Dns.c215 ns->zone_capacity = zone_cap / ns->lbasz; in nvme_ns_zoned_check_calc_geometry()
255 zone->d.zcap = ns->zone_capacity; in nvme_ns_zoned_init_state()
H A Dnvme.h256 uint64_t zone_capacity; member
/openbmc/qemu/docs/system/devices/
H A Dnvme.rst196 ``zoned.zone_capacity=SIZE`` (default: ``0``)