Home
last modified time | relevance | path

Searched defs:zone (Results 1 – 25 of 154) sorted by relevance

1234567

/linux-6.6.21/drivers/block/null_blk/
Dzoned.c35 struct nullb_zone *zone) in null_init_zone_lock()
44 struct nullb_zone *zone) in null_lock_zone()
53 struct nullb_zone *zone) in null_unlock_zone()
64 struct nullb_zone *zone; in null_init_zoned_dev() local
189 struct nullb_zone *zone; in null_report_zones() local
234 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() local
249 struct nullb_zone *zone) in __null_close_zone()
279 struct nullb_zone *zone; in null_close_imp_open_zone() local
344 struct nullb_zone *zone) in null_check_zone_resources()
368 struct nullb_zone *zone = &dev->zones[zno]; in null_zone_write() local
[all …]
/linux-6.6.21/fs/pstore/
Dzone.c160 static inline int buffer_datalen(struct pstore_zone *zone) in buffer_datalen()
165 static inline int buffer_start(struct pstore_zone *zone) in buffer_start()
175 static ssize_t psz_zone_read_buffer(struct pstore_zone *zone, char *buf, in psz_zone_read_buffer()
187 static int psz_zone_read_oldbuf(struct pstore_zone *zone, char *buf, in psz_zone_read_oldbuf()
199 static int psz_zone_write(struct pstore_zone *zone, in psz_zone_write()
262 static int psz_flush_dirty_zone(struct pstore_zone *zone) in psz_flush_dirty_zone()
284 struct pstore_zone *zone; in psz_flush_dirty_zones() local
335 struct pstore_zone *zone = NULL; in psz_kmsg_recover_data() local
374 struct pstore_zone *zone; in psz_kmsg_recover_meta() local
481 static int psz_recover_zone(struct psz_context *cxt, struct pstore_zone *zone) in psz_recover_zone()
[all …]
/linux-6.6.21/tools/power/cpupower/lib/
Dpowercap.c116 static int sysfs_powercap_get64_val(struct powercap_zone *zone, in sysfs_powercap_get64_val()
138 int powercap_get_max_energy_range_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_energy_range_uj()
143 int powercap_get_energy_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_energy_uj()
148 int powercap_get_max_power_range_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_power_range_uw()
153 int powercap_get_power_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_power_uw()
158 int powercap_zone_get_enabled(struct powercap_zone *zone, int *mode) in powercap_zone_get_enabled()
173 int powercap_zone_set_enabled(struct powercap_zone *zone, int mode) in powercap_zone_set_enabled()
180 int powercap_read_zone(struct powercap_zone *zone) in powercap_read_zone()
282 int powercap_walk_zones(struct powercap_zone *zone, in powercap_walk_zones()
283 int (*f)(struct powercap_zone *zone)) in powercap_walk_zones()
/linux-6.6.21/include/linux/
Dmmzone.h814 struct zone { struct
826 * wasting several GB of ram we must reserve some of the lower zone argument
837 struct pglist_data *zone_pgdat; argument
839 struct per_cpu_zonestat __percpu *per_cpu_zonestats; argument
856 unsigned long zone_start_pfn; argument
859 * spanned_pages is the total pages spanned by the zone, including argument
916 * of pageblock. Protected by zone->lock. argument
939 /* zone flags, see below */ argument
940 unsigned long flags;
943 spinlock_t lock;
[all …]
Dmemory_hotplug.h132 static inline unsigned zone_span_seqbegin(struct zone *zone) in zone_span_seqbegin()
136 static inline int zone_span_seqretry(struct zone *zone, unsigned iv) in zone_span_seqretry()
140 static inline void zone_span_writelock(struct zone *zone) in zone_span_writelock()
144 static inline void zone_span_writeunlock(struct zone *zone) in zone_span_writeunlock()
148 static inline void zone_seqlock_init(struct zone *zone) in zone_seqlock_init()
237 static inline unsigned zone_span_seqbegin(struct zone *zone) in zone_span_seqbegin()
241 static inline int zone_span_seqretry(struct zone *zone, unsigned iv) in zone_span_seqretry()
245 static inline void zone_span_writelock(struct zone *zone) {} in zone_span_writelock()
246 static inline void zone_span_writeunlock(struct zone *zone) {} in zone_span_writeunlock()
247 static inline void zone_seqlock_init(struct zone *zone) {} in zone_seqlock_init()
[all …]
Dvmstat.h145 static inline void zone_numa_event_add(long x, struct zone *zone, in zone_numa_event_add()
152 static inline unsigned long zone_numa_event_state(struct zone *zone, in zone_numa_event_state()
165 static inline void zone_page_state_add(long x, struct zone *zone, in zone_page_state_add()
207 static inline unsigned long zone_page_state(struct zone *zone, in zone_page_state()
224 static inline unsigned long zone_page_state_snapshot(struct zone *zone, in zone_page_state_snapshot()
243 __count_numa_event(struct zone *zone, enum numa_stat_item item) in __count_numa_event()
251 __count_numa_events(struct zone *zone, enum numa_stat_item item, long delta) in __count_numa_events()
319 static inline void __mod_zone_page_state(struct zone *zone, in __mod_zone_page_state()
342 static inline void __inc_zone_state(struct zone *zone, enum zone_stat_item item) in __inc_zone_state()
354 static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item) in __dec_zone_state()
[all …]
Dpage-isolation.h6 static inline bool has_isolate_pageblock(struct zone *zone) in has_isolate_pageblock()
19 static inline bool has_isolate_pageblock(struct zone *zone) in has_isolate_pageblock()
/linux-6.6.21/mm/
Dpage_alloc.c331 _deferred_grow_zone(struct zone *zone, unsigned int order) in _deferred_grow_zone()
441 static int page_outside_zone_boundaries(struct zone *zone, struct page *page) in page_outside_zone_boundaries()
466 static int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
476 static inline int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
612 static inline struct capture_control *task_capc(struct zone *zone) in task_capc()
648 static inline struct capture_control *task_capc(struct zone *zone) in task_capc()
662 static inline void add_to_free_list(struct page *page, struct zone *zone, in add_to_free_list()
672 static inline void add_to_free_list_tail(struct page *page, struct zone *zone, in add_to_free_list_tail()
686 static inline void move_to_free_list(struct page *page, struct zone *zone, in move_to_free_list()
694 static inline void del_page_from_free_list(struct page *page, struct zone *zone, in del_page_from_free_list()
[all …]
Dvmstat.c38 static void zero_zone_numa_counters(struct zone *zone) in zero_zone_numa_counters()
54 struct zone *zone; in zero_zones_numa_counters() local
169 static void fold_vm_zone_numa_events(struct zone *zone) in fold_vm_zone_numa_events()
189 struct zone *zone; in fold_vm_numa_events() local
198 int calculate_pressure_threshold(struct zone *zone) in calculate_pressure_threshold()
222 int calculate_normal_threshold(struct zone *zone) in calculate_normal_threshold()
275 struct zone *zone; in refresh_zone_stat_thresholds() local
318 int (*calculate_pressure)(struct zone *)) in set_pgdat_percpu_threshold()
320 struct zone *zone; in set_pgdat_percpu_threshold() local
342 void __mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in __mod_zone_page_state()
[all …]
Dmm_init.c49 struct zone *zone; in mminit_verify_zonelist() local
565 unsigned long zone, int nid) in __init_single_page()
717 struct zone *zone = &pgdat->node_zones[zid]; in init_reserved_page() local
775 overlap_memmap_init(unsigned long zone, unsigned long *pfn) in overlap_memmap_init()
819 int zone, int node) in init_unavailable_range()
848 void __meminit memmap_init_range(unsigned long size, int nid, unsigned long zone, in memmap_init_range()
909 static void __init memmap_init_zone_range(struct zone *zone, in memmap_init_zone_range()
943 struct zone *zone = node->node_zones + j; in memmap_init() local
1063 void __ref memmap_init_zone_device(struct zone *zone, in memmap_init_zone_device()
1275 struct zone *zone = pgdat->node_zones + i; in calculate_node_totalpages() local
[all …]
Dcompaction.c153 static void defer_compaction(struct zone *zone, int order) in defer_compaction()
168 static bool compaction_deferred(struct zone *zone, int order) in compaction_deferred()
191 void compaction_defer_reset(struct zone *zone, int order, in compaction_defer_reset()
205 static bool compaction_restarting(struct zone *zone, int order) in compaction_restarting()
224 static void reset_cached_positions(struct zone *zone) in reset_cached_positions()
303 __reset_isolation_pfn(struct zone *zone, unsigned long pfn, bool check_source, in __reset_isolation_pfn()
376 static void __reset_isolation_suitable(struct zone *zone) in __reset_isolation_suitable()
433 struct zone *zone = &pgdat->node_zones[zoneid]; in reset_isolation_suitable() local
464 struct zone *zone = cc->zone; in update_cached_migrate() local
487 struct zone *zone = cc->zone; in update_pageblock_skip() local
[all …]
Dshow_mem.c26 static inline void show_node(struct zone *zone) in show_node()
39 struct zone *zone; in si_mem_available() local
107 struct zone *zone = &pgdat->node_zones[zone_type]; in si_meminfo_node() local
193 struct zone *zone; in show_free_areas() local
406 struct zone *zone; in __show_mem() local
Dpage_isolation.c37 struct zone *zone = page_zone(page); in has_unmovable_pages() local
150 struct zone *zone = page_zone(page); in set_migratetype_isolate() local
208 struct zone *zone; in unset_migratetype_isolate() local
312 struct zone *zone; in isolate_single_pageblock() local
659 struct zone *zone; in test_pages_isolated() local
Dmemory_hotplug.c414 static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, in find_smallest_section_pfn()
435 static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, in find_biggest_section_pfn()
459 static void shrink_zone_span(struct zone *zone, unsigned long start_pfn, in shrink_zone_span()
502 struct zone *zone; in update_pgdat_span() local
527 void __ref remove_pfn_range_from_zone(struct zone *zone, in remove_pfn_range_from_zone()
682 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_online()
704 static void __meminit resize_zone_range(struct zone *zone, unsigned long start_pfn, in resize_zone_range()
749 void __ref move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, in move_pfn_range_to_zone()
794 struct zone *zone) in auto_movable_stats_account_zone()
849 struct zone *zone; in auto_movable_can_online_movable() local
[all …]
Ddebug_page_alloc.c35 bool __set_page_guard(struct zone *zone, struct page *page, unsigned int order, in __set_page_guard()
51 void __clear_page_guard(struct zone *zone, struct page *page, unsigned int order, in __clear_page_guard()
/linux-6.6.21/drivers/md/
Ddm-zoned-metadata.c137 struct dm_zone *zone; member
221 static unsigned int dmz_dev_zone_id(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_dev_zone_id()
229 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_sect()
236 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_block()
311 struct dm_zone *zone = kzalloc(sizeof(struct dm_zone), GFP_KERNEL); in dmz_insert() local
1359 struct dm_zone *zone; in dmz_init_zone() local
1430 struct dm_zone *zone; in dmz_emulate_zones() local
1457 struct dm_zone *zone = xa_load(&zmd->zones, idx); in dmz_drop_zones() local
1562 struct dm_zone *zone = data; in dmz_update_zone_cb() local
1581 static int dmz_update_zone(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_update_zone()
[all …]
Ddm-zoned-target.c21 struct dm_zone *zone; member
86 struct dm_zone *zone = bioctx->zone; in dmz_bio_endio() local
116 static int dmz_submit_bio(struct dmz_target *dmz, struct dm_zone *zone, in dmz_submit_bio()
169 static int dmz_handle_read(struct dmz_target *dmz, struct dm_zone *zone, in dmz_handle_read()
250 struct dm_zone *zone, struct bio *bio, in dmz_handle_direct_write()
283 struct dm_zone *zone, struct bio *bio, in dmz_handle_buffered_write()
318 static int dmz_handle_write(struct dmz_target *dmz, struct dm_zone *zone, in dmz_handle_write()
357 static int dmz_handle_discard(struct dmz_target *dmz, struct dm_zone *zone, in dmz_handle_discard()
401 struct dm_zone *zone; in dmz_handle_bio() local
/linux-6.6.21/drivers/mtd/
Dsm_ftl.c192 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset()
207 int *zone, int *block, int *boffset) in sm_break_offset()
238 int zone, int block, int boffset, in sm_read_sector()
323 int zone, int block, int boffset, in sm_write_sector()
370 int zone, int block, int lba, in sm_write_block()
436 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) in sm_mark_block_bad()
467 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() local
501 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) in sm_check_block()
754 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() local
882 struct ftl_zone *zone; in sm_get_zone() local
[all …]
/linux-6.6.21/include/net/netfilter/
Dnf_conntrack_zones.h19 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) in nf_ct_zone_init()
43 const struct nf_conntrack_zone *zone) in nf_ct_zone_add()
50 static inline bool nf_ct_zone_matches_dir(const struct nf_conntrack_zone *zone, in nf_ct_zone_matches_dir()
56 static inline u16 nf_ct_zone_id(const struct nf_conntrack_zone *zone, in nf_ct_zone_id()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c250 struct mlx4_zone_entry *zone = kmalloc(sizeof(*zone), GFP_KERNEL); in mlx4_zone_add_one() local
321 struct mlx4_zone_entry *zone, *tmp; in mlx4_zone_allocator_destroy() local
336 static u32 __mlx4_alloc_from_zone(struct mlx4_zone_entry *zone, int count, in __mlx4_alloc_from_zone()
418 static void __mlx4_free_from_zone(struct mlx4_zone_entry *zone, u32 obj, in __mlx4_free_from_zone()
428 struct mlx4_zone_entry *zone; in __mlx4_find_zone_by_uid() local
440 struct mlx4_zone_entry *zone; in mlx4_zone_get_bitmap() local
456 struct mlx4_zone_entry *zone; in mlx4_zone_remove_one() local
481 struct mlx4_zone_entry *zone, *zone_candidate = NULL; in __mlx4_find_zone_by_uid_unique() local
511 struct mlx4_zone_entry *zone; in mlx4_zone_alloc_entries() local
531 struct mlx4_zone_entry *zone; in mlx4_zone_free_entries() local
[all …]
/linux-6.6.21/fs/adfs/
Dmap.c159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map()
202 unsigned int zone; in adfs_map_statfs() local
220 unsigned int zone, mapoff; in adfs_map_lookup() local
312 unsigned int zone, zone_size; in adfs_map_layout() local
337 unsigned int zone; in adfs_map_read() local
350 unsigned int zone; in adfs_map_relse() local
/linux-6.6.21/drivers/thermal/tegra/
Dtegra-bpmp-thermal.c33 static int __tegra_bpmp_thermal_get_temp(struct tegra_bpmp_thermal_zone *zone, in __tegra_bpmp_thermal_get_temp()
67 struct tegra_bpmp_thermal_zone *zone = thermal_zone_device_priv(tz); in tegra_bpmp_thermal_get_temp() local
74 struct tegra_bpmp_thermal_zone *zone = thermal_zone_device_priv(tz); in tegra_bpmp_thermal_set_trips() local
102 struct tegra_bpmp_thermal_zone *zone; in tz_device_update_work_fn() local
253 struct tegra_bpmp_thermal_zone *zone; in tegra_bpmp_thermal_probe() local
/linux-6.6.21/kernel/power/
Dsnapshot.c404 struct mem_zone_bm_rtree *zone; member
466 static int add_rtree_block(struct mem_zone_bm_rtree *zone, gfp_t gfp_mask, in add_rtree_block()
542 struct mem_zone_bm_rtree *zone; in create_zone_bm_rtree() local
574 static void free_zone_bm_rtree(struct mem_zone_bm_rtree *zone, in free_zone_bm_rtree()
628 struct zone *zone; in create_mem_extents() local
698 struct mem_zone_bm_rtree *zone; in memory_bm_create() local
727 struct mem_zone_bm_rtree *zone; in memory_bm_free() local
749 struct mem_zone_bm_rtree *curr, *zone; in memory_bm_find_bit() local
961 static void recycle_zone_bm_rtree(struct mem_zone_bm_rtree *zone) in recycle_zone_bm_rtree()
974 struct mem_zone_bm_rtree *zone; in memory_bm_recycle() local
[all …]
/linux-6.6.21/drivers/iio/light/
Dlm3533-als.c57 atomic_t zone; member
86 static int _lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) in _lm3533_als_get_zone()
104 static int lm3533_als_get_zone(struct iio_dev *indio_dev, u8 *zone) in lm3533_als_get_zone()
124 static inline u8 lm3533_als_get_target_reg(unsigned channel, unsigned zone) in lm3533_als_get_target_reg()
130 unsigned zone, u8 *val) in lm3533_als_get_target()
151 unsigned zone, u8 val) in lm3533_als_set_target()
174 u8 zone; in lm3533_als_get_current() local
251 u8 zone; in lm3533_als_isr() local
431 u8 zone; in store_thresh_either_en() local
470 u8 zone; in show_zone() local
/linux-6.6.21/drivers/thermal/intel/int340x_thermal/
Dint340x_thermal_zone.c14 static int int340x_thermal_get_zone_temp(struct thermal_zone_device *zone, in int340x_thermal_get_zone_temp()
41 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp()
59 static void int340x_thermal_critical(struct thermal_zone_device *zone) in int340x_thermal_critical()

1234567