| /linux/drivers/md/dm-vdo/ |
| H A D | logical-zone.c | 41 struct logical_zones *zones = context; in get_thread_id_for_zone() local 43 return zones->zones[zone_number].thread_id; in get_thread_id_for_zone() 51 static int initialize_zone(struct logical_zones *zones, zone_count_t zone_number) in initialize_zone() argument 54 struct vdo *vdo = zones->vdo; in initialize_zone() 55 struct logical_zone *zone = &zones->zones[zone_number]; in initialize_zone() 63 zone->next = &zones->zones[zone_number + 1]; in initialize_zone() 67 zone->zones = zones; in initialize_zone() 70 zone->block_map_zone = &vdo->block_map->zones[zone_number]; in initialize_zone() 75 zone->allocation_zone = &vdo->physical_zones->zones[allocation_zone_number]; in initialize_zone() 89 struct logical_zones *zones; in vdo_make_logical_zones() local [all …]
|
| H A D | dedupe.c | 299 struct hash_zone zones[]; member 2040 static void close_index(struct hash_zones *zones) in close_index() argument 2041 __must_hold(&zones->lock) in close_index() 2049 zones->index_state = IS_CHANGING; in close_index() 2051 spin_unlock(&zones->lock); in close_index() 2052 result = uds_close_index(zones->index_session); in close_index() 2056 spin_lock(&zones->lock); in close_index() 2057 zones->index_state = IS_CLOSED; in close_index() 2058 zones->error_flag |= result != UDS_SUCCESS; in close_index() 2062 static void open_index(struct hash_zones *zones) in open_index() argument [all …]
|
| H A D | dedupe.h | 83 void vdo_free_hash_zones(struct hash_zones *zones); 85 void vdo_drain_hash_zones(struct hash_zones *zones, struct vdo_completion *parent); 87 void vdo_get_dedupe_statistics(struct hash_zones *zones, struct vdo_statistics *stats); 89 struct hash_zone * __must_check vdo_select_hash_zone(struct hash_zones *zones, 92 void vdo_dump_hash_zones(struct hash_zones *zones); 94 const char *vdo_get_dedupe_index_state_name(struct hash_zones *zones); 96 u64 vdo_get_dedupe_index_timeout_count(struct hash_zones *zones); 98 int vdo_message_dedupe_index(struct hash_zones *zones, const char *name); 100 void vdo_set_dedupe_state_normal(struct hash_zones *zones); 102 void vdo_start_dedupe_index(struct hash_zones *zones, bool create_flag); [all …]
|
| H A D | physical-zone.c | 326 static int initialize_zone(struct vdo *vdo, struct physical_zones *zones) in initialize_zone() argument 329 zone_count_t zone_number = zones->zone_count; in initialize_zone() 330 struct physical_zone *zone = &zones->zones[zone_number]; in initialize_zone() 345 zone->next = &zones->zones[(zone_number + 1) % vdo->thread_config.physical_zone_count]; in initialize_zone() 364 struct physical_zones *zones; in vdo_make_physical_zones() local 372 struct physical_zone, __func__, &zones); in vdo_make_physical_zones() 376 for (zones->zone_count = 0; zones->zone_count < zone_count; zones->zone_count++) { in vdo_make_physical_zones() 377 result = initialize_zone(vdo, zones); in vdo_make_physical_zones() 379 vdo_free_physical_zones(zones); in vdo_make_physical_zones() 384 *zones_ptr = zones; in vdo_make_physical_zones() [all …]
|
| H A D | logical-zone.h | 21 struct logical_zones *zones; member 63 struct logical_zone zones[]; member 69 void vdo_free_logical_zones(struct logical_zones *zones); 71 void vdo_drain_logical_zones(struct logical_zones *zones, 75 void vdo_resume_logical_zones(struct logical_zones *zones,
|
| H A D | action-manager.c | 58 zone_count_t zones; member 103 int vdo_make_action_manager(zone_count_t zones, in vdo_make_action_manager() argument 116 .zones = zones, in vdo_make_action_manager() 184 if (manager->acting_zone == manager->zones) { in apply_to_zone()
|
| H A D | physical-zone.h | 75 struct physical_zone zones[]; member 97 void vdo_free_physical_zones(struct physical_zones *zones);
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-zoned.rst | 25 host-managed disk with 256 MB zones, dm-zoned memory usage per disk 26 instance is at most 4.5 MB and as little as 5 zones will be used 38 write accesses to the sequential zones of a zoned block device. 39 Conventional zones are used for caching as well as for storing internal 42 in zones with the same size as the zoned block device. These zones will be 43 placed in front of the zones from the zoned block device and will be handled 44 just like conventional zones. 46 The zones of the device(s) are separated into 2 types: 48 1) Metadata zones: these are conventional zones used to store metadata. 49 Metadata zones are not reported as usable capacity to the user. [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | alloc.c | 226 struct mlx4_zone_allocator *zones = kmalloc_obj(*zones); in mlx4_zone_allocator_create() local 228 if (NULL == zones) in mlx4_zone_allocator_create() 231 INIT_LIST_HEAD(&zones->entries); in mlx4_zone_allocator_create() 232 INIT_LIST_HEAD(&zones->prios); in mlx4_zone_allocator_create() 233 spin_lock_init(&zones->lock); in mlx4_zone_allocator_create() 234 zones->last_uid = 0; in mlx4_zone_allocator_create() 235 zones->mask = 0; in mlx4_zone_allocator_create() 236 zones->flags = flags; in mlx4_zone_allocator_create() 238 return zones; in mlx4_zone_allocator_create() 426 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument [all …]
|
| H A D | qp.c | 244 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, in __mlx4_qp_reserve_range() 287 mlx4_zone_free_entries_unique(qp_table->zones, base_qpn, cnt); in __mlx4_qp_release_range() 562 qp_table->zones = mlx4_zone_allocator_create(MLX4_ZONE_ALLOC_FLAGS_NO_OVERLAP); in mlx4_create_zones() 564 if (NULL == qp_table->zones) in mlx4_create_zones() 583 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones() 602 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones() 713 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones() 735 mlx4_zone_allocator_destroy(qp_table->zones); in mlx4_create_zones() 743 if (qp_table->zones) { in mlx4_cleanup_qp_zones() 750 mlx4_zone_get_bitmap(qp_table->zones, in mlx4_cleanup_qp_zones() [all …]
|
| /linux/fs/btrfs/ |
| H A D | zoned.c | 81 struct blk_zone *zones = data; in copy_zone_info_cb() local 83 memcpy(&zones[idx], zone, sizeof(*zone)); in copy_zone_info_cb() 88 static int sb_write_pointer(struct block_device *bdev, struct blk_zone *zones, in sb_write_pointer() argument 96 ASSERT(zones[i].type != BLK_ZONE_TYPE_CONVENTIONAL, in sb_write_pointer() 97 "zones[%d].type=%d", i, zones[i].type); in sb_write_pointer() 98 empty[i] = (zones[i].cond == BLK_ZONE_COND_EMPTY); in sb_write_pointer() 99 full[i] = sb_zone_is_full(&zones[i]); in sb_write_pointer() 121 *wp_ret = zones[0].start << SECTOR_SHIFT; in sb_write_pointer() 130 u64 zone_end = (zones[i].start + zones[i].capacity) << SECTOR_SHIFT; in sb_write_pointer() 146 sector = zones[1].start; in sb_write_pointer() [all …]
|
| /linux/drivers/block/null_blk/ |
| H A D | zoned.c | 94 dev->zones = kvmalloc_objs(struct nullb_zone, dev->nr_zones, in null_init_zoned_dev() 96 if (!dev->zones) in null_init_zoned_dev() 131 zone = &dev->zones[i]; in null_init_zoned_dev() 145 zone = &dev->zones[i]; in null_init_zoned_dev() 189 kvfree(dev->zones); in null_free_zoned_dev() 190 dev->zones = NULL; in null_free_zoned_dev() 211 zone = &dev->zones[first_zone]; in null_report_zones() 244 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() 268 zone = &dev->zones[zno]; in null_close_imp_open_zone() 355 struct nullb_zone *zone = &dev->zones[zno]; in null_zone_write() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | zonefs.rst | 14 write zones of the device must be written sequentially starting from the end 34 space that is divided into zones. A zone is a group of consecutive LBAs and all 35 zones are contiguous (there are no LBA gaps). Zones may have different types. 37 * Conventional zones: there are no access constraints to LBAs belonging to 38 conventional zones. Any read or write access can be executed, similarly to a 40 * Sequential zones: these zones accept random reads but must be written 44 cannot be overwritten. Sequential zones must first be erased using a special 60 Zonefs exposes the zones of a zoned block device as files. The files 61 representing zones are grouped by zone type, which are themselves represented 85 Files representing zones of the same type are grouped together under the same [all …]
|
| /linux/drivers/thermal/intel/ |
| H A D | x86_pkg_temp_thermal.c | 67 static struct zone_device **zones; variable 104 return zones[id]; in pkg_temp_thermal_get_dev() 365 zones[id] = zonedev; in pkg_temp_thermal_device_add() 427 zones[topology_logical_die_id(cpu)] = NULL; in pkg_thermal_cpu_offline() 495 zones = kzalloc_objs(struct zone_device *, max_id); in pkg_temp_thermal_init() 496 if (!zones) in pkg_temp_thermal_init() 515 kfree(zones); in pkg_temp_thermal_init() 527 kfree(zones); in module_init()
|
| /linux/Documentation/power/powercap/ |
| H A D | powercap.rst | 19 Power zones represent different parts of the system, which can be controlled and 23 the system represented by different power zones are hierarchical (that is, one 25 controls), those power zones may also be organized in a hierarchy with one 150 control type called intel-rapl which contains two power zones, intel-rapl:0 and 151 intel-rapl:1, representing CPU packages. Each of these power zones contains 154 the zones and subzones contain energy monitoring attributes (energy_uj, 156 to be applied (the constraints in the 'package' power zones apply to the whole 170 Depending on different power zones, the Intel RAPL technology allows 173 All the zones contain attributes representing the constraint names, 245 enabled (rw): Enable/Disable controls at zone level or for all zones using
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_zones_many.sh | 8 zones=2000 9 [ "$KSFT_MACHINE_SLOW" = yes ] && zones=500 153 test_zones $zones 156 test_conntrack_tool $zones
|
| /linux/fs/pstore/ |
| H A D | zone.c | 281 static int psz_flush_dirty_zones(struct pstore_zone **zones, unsigned int cnt) in psz_flush_dirty_zones() argument 286 if (!zones) in psz_flush_dirty_zones() 290 zone = zones[i]; in psz_flush_dirty_zones() 569 struct pstore_zone **zones, unsigned int cnt) in psz_recover_zones() argument 575 if (!zones) in psz_recover_zones() 579 zone = zones[i]; in psz_recover_zones() 1128 struct pstore_zone **zones = *pszones; in psz_free_zones() local 1130 if (!zones) in psz_free_zones() 1135 psz_free_zone(&(zones[*cnt])); in psz_free_zones() 1137 kfree(zones); in psz_free_zones() [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-lm3530.c | 124 u8 zones[LM3530_ALS_ZB_MAX]; member 176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure() 271 reg_val[5] = als.zones[0]; /* LM3530_ALS_ZB0_REG */ in lm3530_init_registers() 272 reg_val[6] = als.zones[1]; /* LM3530_ALS_ZB1_REG */ in lm3530_init_registers() 273 reg_val[7] = als.zones[2]; /* LM3530_ALS_ZB2_REG */ in lm3530_init_registers() 274 reg_val[8] = als.zones[3]; /* LM3530_ALS_ZB3_REG */ in lm3530_init_registers()
|
| /linux/Documentation/admin-guide/blockdev/ |
| H A D | zoned_loop.rst | 24 number of conventional zones can be created. The storage for each zone of the 40 machine. That is, zones can be empty, implicitly opened, explicitly opened, 42 maximum number of open and active zones. 80 conv_zones Total number of conventioanl zones starting from 120 state of the device zones: the device zones are restored to their last state 127 base directory containing the backing files of the device zones must be deleted. 132 The following sequence of commands creates a 2GB zoned device with zones of 64
|
| /linux/drivers/mtd/ |
| H A D | sm_ftl.c | 465 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() 752 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() 884 zone = &ftl->zones[zone_num]; in sm_get_zone() 944 zone = &ftl->zones[zone_num]; in sm_cache_flush() 1158 ftl->zones = kzalloc_objs(struct ftl_zone, ftl->zone_count); in sm_add_mtd() 1159 if (!ftl->zones) in sm_add_mtd() 1217 kfree(ftl->zones); in sm_add_mtd() 1237 if (!ftl->zones[i].initialized) in sm_remove_dev() 1240 kfree(ftl->zones[i].lba_to_phys_table); in sm_remove_dev() 1241 kfifo_free(&ftl->zones[i].free_sectors); in sm_remove_dev() [all …]
|
| /linux/sound/synth/emux/ |
| H A D | soundfont.c | 244 sf->zones = NULL; in newsf() 315 zp->next = sf->zones; in sf_zone_new() 316 sf->zones = zp; in sf_zone_new() 394 for (zp = sf->zones; zp; prevp = zp, zp = zp->next) { in load_map() 406 zp->next = sf->zones; in load_map() 407 sf->zones = zp; in load_map() 447 for (p = sf->zones; p; p = next) { in remove_info() 455 sf->zones = next; in remove_info() 515 for (zone = sf->zones; zone; zone = zone->next) { in load_info() 1152 for (cur = sf->zones; cur; cur = cur->next) { in rebuild_presets() [all …]
|
| /linux/drivers/block/ |
| H A D | zloop.c | 133 struct zloop_zone zones[] __counted_by(nr_zones); 158 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_update_seq_zone() 205 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_open_zone() 241 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_close_zone() 283 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_reset_zone() 330 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_finish_zone() 415 zone = &zlo->zones[zone_no]; in zloop_rw() 622 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_complete_rq() 679 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_set_zone_append_sector() 768 struct zloop_zone *zone = &zlo->zones[zone_no]; in zloop_report_zones() [all …]
|
| /linux/drivers/thermal/tegra/ |
| H A D | Kconfig | 9 Tegra systems-on-chip. The driver supports four thermal zones 11 zones to manage temperatures. This option is also required for the
|
| /linux/drivers/md/dm-vdo/indexer/ |
| H A D | volume-index.h | 63 struct volume_sub_index_zone *zones; member 99 struct volume_index_zone *zones; member
|
| H A D | index.c | 134 zone = index->zones[request->zone_number]; in triage_index_request() 305 struct index_zone *zone = request->index->zones[request->zone_number]; in dispatch_index_zone_control_request() 579 struct index_zone *zone = index->zones[request->zone_number]; in dispatch_index_request() 1146 index->zones[zone_number] = zone; in make_index_zone() 1177 &index->zones); in uds_make_index() 1250 zone = index->zones[z]; in uds_make_index() 1286 if (index->zones != NULL) { in uds_free_index() 1288 free_index_zone(index->zones[i]); in uds_free_index() 1289 vdo_free(index->zones); in uds_free_index()
|