Home
last modified time | relevance | path

Searched refs:zone (Results 1 – 25 of 90) sorted by relevance

1234

/drivers/block/null_blk/
A Dzoned.c136 zone->capacity = zone->len; in null_init_zoned_dev()
137 zone->wp = zone->start + zone->len; in null_init_zoned_dev()
158 zone->wp = zone->start + zone->capacity; in null_init_zoned_dev()
161 zone->wp = zone->start; in null_init_zoned_dev()
388 zone->wp + nr_sectors > zone->start + zone->capacity) { in null_zone_write()
432 if (zone->wp == zone->start + zone->capacity) { in null_zone_write()
542 if (zone->wp > zone->start) in null_close_zone()
548 if (zone->wp == zone->start) in null_close_zone()
602 zone->wp = zone->start + zone->len; in null_finish_zone()
638 zone->wp = zone->start; in null_reset_zone()
[all …]
/drivers/md/dm-vdo/
A Dlogical-zone.c67 zone->zones = zones; in initialize_zone()
91 zone_count_t zone; in vdo_make_logical_zones() local
104 for (zone = 0; zone < zone_count; zone++) { in vdo_make_logical_zones()
155 if (!vdo_is_state_draining(&zone->state) || zone->notifying || in check_for_drain_complete()
252 zone->zone_number, (unsigned long long) zone->flush_generation, in vdo_increment_logical_zone_flush_generation()
267 struct logical_zone *zone = data_vio->logical.zone; in vdo_acquire_flush_generation_lock() local
305 if (zone->oldest_active_generation <= zone->notification_generation) { in attempt_generation_complete_notification()
312 zone->notification_generation = zone->oldest_active_generation; in attempt_generation_complete_notification()
327 struct logical_zone *zone = data_vio->logical.zone; in vdo_release_flush_generation_lock() local
340 if (!update_oldest_active_generation(zone) || zone->notifying) in vdo_release_flush_generation_lock()
[all …]
A Dblock-map.c1444 a, b, zone->oldest_generation, zone->generation); in is_not_older()
1466 (zone->oldest_generation != zone->generation)) in release_generation()
1571 .zone = zone, in finish_page_write()
1703 zone = data_vio->logical.zone->block_map_zone; in release_page_lock()
2094 set_generation(zone, tree_page, zone->generation); in finish_block_map_allocation()
2327 set_generation(zone, page, zone->generation); in vdo_write_tree_page()
2750 VIO_PRIORITY_METADATA, zone, &zone->vio_pool); in initialize_block_map_zone()
2756 zone->page_cache.zone = zone; in initialize_block_map_zone()
2844 for (zone = 0; zone < map->zone_count; zone++) in vdo_free_block_map()
2893 for (zone = 0; zone < map->zone_count; zone++) { in vdo_decode_block_map()
[all …]
A Dphysical-zone.c337 vdo_int_map_free(zone->pbn_operations); in initialize_zone()
341 zone->zone_number = zone_number; in initialize_zone()
347 free_pbn_lock_pool(vdo_forget(zone->lock_pool)); in initialize_zone()
348 vdo_int_map_free(zone->pbn_operations); in initialize_zone()
399 struct physical_zone *zone = &zones->zones[index]; in vdo_free_physical_zones() local
401 free_pbn_lock_pool(vdo_forget(zone->lock_pool)); in vdo_free_physical_zones()
418 return ((zone == NULL) ? NULL : vdo_int_map_get(zone->pbn_operations, pbn)); in vdo_get_physical_zone_pbn_lock()
542 struct physical_zone *zone = allocation->zone; in continue_allocating() local
574 allocation->zone = zone->next; in continue_allocating()
634 return_pbn_lock_to_pool(zone->lock_pool, lock); in vdo_release_physical_zone_pbn_lock()
[all …]
A Ddedupe.c718 struct hash_zone *zone = context->zone; in release_context() local
720 WRITE_ONCE(zone->active, zone->active - 1); in release_context()
1313 struct physical_zone *zone = agent->duplicate.zone; in lock_duplicate_pbn() local
2287 WRITE_ONCE(zone->active, zone->active - recycled); in check_for_drain_complete()
2340 struct hash_zone *zone = timer_container_of(zone, t, timer); in timeout_index_operations() local
2371 return_hash_lock_to_pool(zone, &zone->lock_array[i]); in initialize_zone()
2384 context->zone = zone; in initialize_zone()
2694 for (zone = 0; zone < zones->zone_count; zone++) in vdo_get_dedupe_statistics()
2792 zone->zone_number, vdo_int_map_size(zone->hash_lock_map)); in dump_hash_zone()
2815 for (zone = 0; zone < zones->zone_count; zone++) in vdo_dump_hash_zones()
[all …]
/drivers/block/
A Dzloop.c177 zone->wp = zone->start; in zloop_update_seq_zone()
180 zone->wp = zone->start + zlo->zone_size; in zloop_update_seq_zone()
183 zone->wp = zone->start + file_sectors; in zloop_update_seq_zone()
205 switch (zone->cond) { in zloop_open_zone()
241 switch (zone->cond) { in zloop_close_zone()
246 if (zone->wp == zone->start) in zloop_close_zone()
285 zone->wp = zone->start; in zloop_reset_zone()
329 zone->wp = zone->start + zlo->zone_size; in zloop_finish_zone()
410 sector = zone->wp; in zloop_rw()
418 if (sector != zone->wp || zone->wp + nr_sectors > zone_end) { in zloop_rw()
[all …]
/drivers/md/
A Ddm-zoned-metadata.c226 return zone->id - zone->dev->zone_offset; in dmz_dev_zone_id()
308 if (!zone) in dmz_insert()
322 return zone; in dmz_insert()
1404 zmd->sb[0].zone = zone; in dmz_init_zone()
1625 zone->id, zone->wp_block, wp); in dmz_handle_seq_write_err()
1628 dmz_invalidate_blocks(zmd, zone, zone->wp_block, in dmz_handle_seq_write_err()
2029 if (!zone) in dmz_get_zone_for_reclaim()
2513 zone->id, zone->weight, in dmz_validate_blocks()
2593 zone->id, zone->weight, n); in dmz_invalidate_blocks()
2908 zone = dmz_get(zmd, zmd->sb[0].zone->id + i); in dmz_ctr_metadata()
[all …]
A Ddm-zoned-target.c86 struct dm_zone *zone = bioctx->zone; in dmz_bio_endio() local
88 if (zone) { in dmz_bio_endio()
190 zone->id, in dmz_handle_read()
197 if (dmz_is_rnd(zone) || dmz_is_cache(zone) || in dmz_handle_read()
325 if (!zone) in dmz_handle_write()
333 zone->id, in dmz_handle_write()
336 if (dmz_is_rnd(zone) || dmz_is_cache(zone) || in dmz_handle_write()
367 if (!zone) in dmz_handle_discard()
383 if (dmz_is_rnd(zone) || dmz_is_cache(zone) || in dmz_handle_discard()
421 bioctx->zone = zone; in dmz_handle_bio()
[all …]
A Draid0.c68 struct strip_zone *zone; in create_strip_zones() local
155 zone = &conf->strip_zone[0]; in create_strip_zones()
203 zone->nb_dev = cnt; in create_strip_zones()
243 zone->nb_dev = c; in create_strip_zones()
281 zone->nb_dev); in create_strip_zones()
450 struct strip_zone *zone; in raid0_handle_discard() local
478 end = zone->zone_end; in raid0_handle_discard()
499 zone->nb_dev, in raid0_handle_discard()
500 zone->disk_shift); in raid0_handle_discard()
504 zone->nb_dev, zone->disk_shift); in raid0_handle_discard()
[all …]
A Ddm-zoned.h219 void dmz_free_zone(struct dmz_metadata *zmd, struct dm_zone *zone);
221 void dmz_map_zone(struct dmz_metadata *zmd, struct dm_zone *zone,
238 static inline void dmz_activate_zone(struct dm_zone *zone) in dmz_activate_zone() argument
240 atomic_inc(&zone->refcount); in dmz_activate_zone()
243 int dmz_lock_zone_reclaim(struct dm_zone *zone);
244 void dmz_unlock_zone_reclaim(struct dm_zone *zone);
287 static inline void dmz_deactivate_zone(struct dm_zone *zone) in dmz_deactivate_zone() argument
289 dmz_reclaim_bio_acc(zone->dev->reclaim); in dmz_deactivate_zone()
290 atomic_dec(&zone->refcount); in dmz_deactivate_zone()
296 static inline bool dmz_is_active(struct dm_zone *zone) in dmz_is_active() argument
[all …]
A Ddm-zone.c105 zone->start += sector_diff; in dm_report_zones_cb()
106 if (zone->type != BLK_ZONE_TYPE_CONVENTIONAL) { in dm_report_zones_cb()
107 if (zone->cond == BLK_ZONE_COND_FULL) in dm_report_zones_cb()
108 zone->wp = zone->start + zone->len; in dm_report_zones_cb()
109 else if (zone->cond == BLK_ZONE_COND_EMPTY) in dm_report_zones_cb()
110 zone->wp = zone->start; in dm_report_zones_cb()
112 zone->wp += sector_diff; in dm_report_zones_cb()
115 args->next_sector = zone->start + zone->len; in dm_report_zones_cb()
242 if (zone->start >= zc->start && in dm_device_count_zones_cb()
243 zone->start < zc->start + zc->len) in dm_device_count_zones_cb()
[all …]
/drivers/md/dm-vdo/indexer/
A Dindex.c110 unsigned int zone; in enqueue_barrier_messages() local
112 for (zone = 0; zone < index->zone_count; zone++) { in enqueue_barrier_messages()
201 result = finish_previous_chapter(zone->index, zone->newest_virtual_chapter); in swap_open_chapter()
205 swap(zone->open_chapter, zone->writing_chapter); in swap_open_chapter()
239 if (zone->id == i) in announce_chapter_closed()
259 (unsigned long long) zone->newest_virtual_chapter, zone->id, in open_next_chapter()
261 zone->open_chapter->capacity - zone->open_chapter->size); in open_next_chapter()
268 uds_set_volume_index_zone_open_chapter(zone->index->volume_index, zone->id, in open_next_chapter()
272 finished_zones = start_closing_chapter(zone->index, zone->id, in open_next_chapter()
1113 if (zone == NULL) in free_index_zone()
[all …]
A Dvolume-index.c543 unsigned int zone = in uds_get_volume_index_record() local
652 zone->early_flushes++; in set_volume_sub_index_zone_open_chapter()
662 zone->virtual_chapter_high - zone->virtual_chapter_low; in set_volume_sub_index_zone_open_chapter()
663 zone->virtual_chapter_low = zone->virtual_chapter_high; in set_volume_sub_index_zone_open_chapter()
703 unsigned int zone; in uds_set_volume_index_open_chapter() local
705 for (zone = 0; zone < volume_index->zone_count; zone++) in uds_set_volume_index_open_chapter()
1111 unsigned int zone; in uds_save_volume_index() local
1113 for (zone = 0; zone < writer_count; zone++) { in uds_save_volume_index()
1114 result = start_saving_volume_index(volume_index, zone, writers[zone]); in uds_save_volume_index()
1227 unsigned int zone; in uds_make_volume_index() local
[all …]
/drivers/net/ethernet/mellanox/mlx4/
A Dalloc.c250 struct mlx4_zone_entry *zone = kmalloc(sizeof(*zone), GFP_KERNEL); in mlx4_zone_add_one() local
252 if (NULL == zone) in mlx4_zone_add_one()
279 *puid = zone->uid; in mlx4_zone_add_one()
328 kfree(zone); in mlx4_zone_allocator_destroy()
349 uid = zone->uid; in __mlx4_alloc_from_zone()
421 mlx4_bitmap_free_range(zone->bitmap, obj - zone->offset, count, zone->use_rr); in __mlx4_free_from_zone()
432 return zone; in __mlx4_find_zone_by_uid()
447 bitmap = zone == NULL ? NULL : zone->bitmap; in mlx4_zone_get_bitmap()
463 if (NULL == zone) { in mlx4_zone_remove_one()
472 kfree(zone); in mlx4_zone_remove_one()
[all …]
/drivers/mtd/
A Dsm_ftl.c195 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset()
287 block, zone, ret); in sm_read_sector()
314 block, zone); in sm_read_sector()
353 block, zone, ret); in sm_write_sector()
856 zone->initialized = 1; in sm_init_zone()
882 struct ftl_zone *zone; in sm_get_zone() local
894 return zone; in sm_get_zone()
932 struct ftl_zone *zone; in sm_cache_flush() local
1017 struct ftl_zone *zone; in sm_read() local
1026 if (IS_ERR(zone)) { in sm_read()
[all …]
/drivers/thermal/tegra/
A Dtegra-bpmp-thermal.c43 req.get_temp.zone = zone->idx; in __tegra_bpmp_thermal_get_temp()
81 req.set_trip.zone = zone->idx; in tegra_bpmp_thermal_set_trips()
102 struct tegra_bpmp_thermal_zone *zone; in tz_device_update_work_fn() local
137 req.host_trip_reached.zone); in bpmp_mrq_thermal()
256 zone = devm_kzalloc(&pdev->dev, sizeof(*zone), GFP_KERNEL); in tegra_bpmp_thermal_probe()
257 if (!zone) in tegra_bpmp_thermal_probe()
260 zone->idx = i; in tegra_bpmp_thermal_probe()
261 zone->tegra = tegra; in tegra_bpmp_thermal_probe()
270 devm_kfree(&pdev->dev, zone); in tegra_bpmp_thermal_probe()
279 devm_kfree(&pdev->dev, zone); in tegra_bpmp_thermal_probe()
[all …]
/drivers/thermal/intel/int340x_thermal/
A Dint340x_thermal_zone.c14 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp() argument
17 struct int34x_thermal_zone *d = thermal_zone_device_priv(zone); in int340x_thermal_get_zone_temp()
44 struct int34x_thermal_zone *d = thermal_zone_device_priv(zone); in int340x_thermal_set_trip_temp()
63 thermal_zone_device_type(zone)); in int340x_thermal_critical()
163 int34x_zone->zone = thermal_zone_device_register_with_trips( in int340x_thermal_zone_add()
172 if (IS_ERR(int34x_zone->zone)) { in int340x_thermal_zone_add()
173 ret = PTR_ERR(int34x_zone->zone); in int340x_thermal_zone_add()
176 ret = thermal_zone_device_enable(int34x_zone->zone); in int340x_thermal_zone_add()
183 thermal_zone_device_unregister(int34x_zone->zone); in int340x_thermal_zone_add()
194 thermal_zone_device_unregister(int34x_zone->zone); in int340x_thermal_zone_remove()
[all …]
/drivers/iio/light/
A Dlm3533-als.c57 atomic_t zone; member
110 *zone = atomic_read(&als->zone); in lm3533_als_get_zone()
130 unsigned zone, u8 *val) in lm3533_als_get_target() argument
151 unsigned zone, u8 val) in lm3533_als_set_target() argument
174 u8 zone; in lm3533_als_get_current() local
251 u8 zone; in lm3533_als_isr() local
259 atomic_set(&als->zone, zone); in lm3533_als_isr()
431 u8 zone; in store_thresh_either_en() local
447 atomic_set(&als->zone, zone); in store_thresh_either_en()
470 u8 zone; in show_zone() local
[all …]
/drivers/scsi/
A Dsd_zbc.c50 struct blk_zone zone = { 0 }; in sd_zbc_parse_report() local
57 zone.type = buf[0] & 0x0f; in sd_zbc_parse_report()
58 zone.cond = (buf[1] >> 4) & 0xf; in sd_zbc_parse_report()
60 zone.reset = 1; in sd_zbc_parse_report()
62 zone.non_seq = 1; in sd_zbc_parse_report()
67 zone.len = zone.capacity; in sd_zbc_parse_report()
70 if (zone.len > gran) { in sd_zbc_parse_report()
83 zone.len = gran; in sd_zbc_parse_report()
85 if (zone.cond == ZBC_ZONE_COND_FULL) in sd_zbc_parse_report()
86 zone.wp = zone.start + zone.len; in sd_zbc_parse_report()
[all …]
/drivers/base/
A Dmemory.c230 struct zone *zone; in memory_block_online() local
282 mem->zone = zone; in memory_block_online()
303 if (!mem->zone) in memory_block_offline()
331 mem->zone = NULL; in memory_block_offline()
478 struct zone *zone; in print_allowed_zone() local
481 if (zone == default_zone) in print_allowed_zone()
494 struct zone *default_zone; in valid_zones_show()
508 mem->zone ? mem->zone->name : "none"); in valid_zones_show()
741 struct zone *zone, *matching_zone = NULL; in early_node_zone_for_memory_block() local
760 matching_zone = zone; in early_node_zone_for_memory_block()
[all …]
/drivers/nvme/host/
A Dzns.c155 struct blk_zone zone = { }; in nvme_zone_parse_entry() local
162 zone.type = BLK_ZONE_TYPE_SEQWRITE_REQ; in nvme_zone_parse_entry()
163 zone.cond = entry->zs >> 4; in nvme_zone_parse_entry()
164 zone.len = head->zsze; in nvme_zone_parse_entry()
165 zone.capacity = nvme_lba_to_sect(head, le64_to_cpu(entry->zcap)); in nvme_zone_parse_entry()
166 zone.start = nvme_lba_to_sect(head, le64_to_cpu(entry->zslba)); in nvme_zone_parse_entry()
167 if (zone.cond == BLK_ZONE_COND_FULL) in nvme_zone_parse_entry()
168 zone.wp = zone.start + zone.len; in nvme_zone_parse_entry()
170 zone.wp = nvme_lba_to_sect(head, le64_to_cpu(entry->wp)); in nvme_zone_parse_entry()
172 return cb(&zone, idx, data); in nvme_zone_parse_entry()
/drivers/thermal/renesas/
A Drzg2l_thermal.c60 struct thermal_zone_device *zone; member
157 thermal_remove_hwmon_sysfs(priv->zone); in rzg2l_thermal_remove()
163 struct thermal_zone_device *zone; in rzg2l_thermal_probe() local
208 zone = devm_thermal_of_zone_register(dev, 0, priv, in rzg2l_thermal_probe()
210 if (IS_ERR(zone)) { in rzg2l_thermal_probe()
212 ret = PTR_ERR(zone); in rzg2l_thermal_probe()
216 priv->zone = zone; in rzg2l_thermal_probe()
217 ret = thermal_add_hwmon_sysfs(priv->zone); in rzg2l_thermal_probe()
A Drcar_thermal.c92 struct thermal_zone_device *zone; member
384 thermal_remove_hwmon_sysfs(priv->zone); in rcar_thermal_remove()
386 thermal_zone_device_unregister(priv->zone); in rcar_thermal_remove()
487 priv->zone = devm_thermal_of_zone_register( in rcar_thermal_probe()
496 ret = thermal_zone_device_enable(priv->zone); in rcar_thermal_probe()
498 thermal_zone_device_unregister(priv->zone); in rcar_thermal_probe()
499 priv->zone = ERR_PTR(ret); in rcar_thermal_probe()
502 if (IS_ERR(priv->zone)) { in rcar_thermal_probe()
504 ret = PTR_ERR(priv->zone); in rcar_thermal_probe()
505 priv->zone = NULL; in rcar_thermal_probe()
[all …]
/drivers/thermal/
A Dda9062-thermal.c53 struct thermal_zone_device *zone; member
97 thermal_zone_device_update(thermal->zone, in da9062_thermal_poll_on()
111 thermal_zone_device_update(thermal->zone, in da9062_thermal_poll_on()
199 thermal->zone = thermal_zone_device_register_with_trips(thermal->config->name, in da9062_thermal_probe()
203 if (IS_ERR(thermal->zone)) { in da9062_thermal_probe()
205 ret = PTR_ERR(thermal->zone); in da9062_thermal_probe()
208 ret = thermal_zone_device_enable(thermal->zone); in da9062_thermal_probe()
237 thermal_zone_device_unregister(thermal->zone); in da9062_thermal_probe()
248 thermal_zone_device_unregister(thermal->zone); in da9062_thermal_remove()
/drivers/hwmon/
A Dscpi-hwmon.c67 struct scpi_thermal_zone *zone = thermal_zone_device_priv(tz); in scpi_read_temp() local
68 struct scpi_sensors *scpi_sensors = zone->scpi_sensors; in scpi_read_temp()
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
267 struct scpi_thermal_zone *zone; in scpi_hwmon_probe() local
272 zone = devm_kzalloc(dev, sizeof(*zone), GFP_KERNEL); in scpi_hwmon_probe()
273 if (!zone) in scpi_hwmon_probe()
276 zone->sensor_id = i; in scpi_hwmon_probe()
277 zone->scpi_sensors = scpi_sensors; in scpi_hwmon_probe()
280 zone, in scpi_hwmon_probe()
289 devm_kfree(dev, zone); in scpi_hwmon_probe()

Completed in 84 milliseconds

1234