Home
last modified time | relevance | path

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

12345678910>>...12

/kernel/linux/linux-6.6/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
200 struct nullb_zone *zone; in null_report_zones() local
245 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() local
260 struct nullb_zone *zone) in __null_close_zone()
290 struct nullb_zone *zone; in null_close_imp_open_zone() local
355 struct nullb_zone *zone) in null_check_zone_resources()
379 struct nullb_zone *zone = &dev->zones[zno]; in null_zone_write() local
[all …]
/kernel/linux/linux-5.10/fs/pstore/
Dzone.c164 static inline int buffer_datalen(struct pstore_zone *zone) in buffer_datalen()
169 static inline int buffer_start(struct pstore_zone *zone) in buffer_start()
179 static ssize_t psz_zone_read_buffer(struct pstore_zone *zone, char *buf, in psz_zone_read_buffer()
191 static int psz_zone_read_oldbuf(struct pstore_zone *zone, char *buf, in psz_zone_read_oldbuf()
203 static int psz_zone_write(struct pstore_zone *zone, in psz_zone_write()
266 static int psz_flush_dirty_zone(struct pstore_zone *zone) in psz_flush_dirty_zone()
288 struct pstore_zone *zone; in psz_flush_dirty_zones() local
341 struct pstore_zone *zone = NULL; in psz_kmsg_recover_data() local
380 struct pstore_zone *zone; in psz_kmsg_recover_meta() local
487 static int psz_recover_zone(struct psz_context *cxt, struct pstore_zone *zone) in psz_recover_zone()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/power/cpupower/lib/
Dpowercap.c124 static int sysfs_powercap_get64_val(struct powercap_zone *zone, in sysfs_powercap_get64_val()
146 int powercap_get_max_energy_range_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_energy_range_uj()
151 int powercap_get_energy_uj(struct powercap_zone *zone, uint64_t *val) in powercap_get_energy_uj()
156 int powercap_get_max_power_range_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_max_power_range_uw()
161 int powercap_get_power_uw(struct powercap_zone *zone, uint64_t *val) in powercap_get_power_uw()
166 int powercap_zone_get_enabled(struct powercap_zone *zone, int *mode) in powercap_zone_get_enabled()
181 int powercap_zone_set_enabled(struct powercap_zone *zone, int mode) in powercap_zone_set_enabled()
188 int powercap_read_zone(struct powercap_zone *zone) in powercap_read_zone()
290 int powercap_walk_zones(struct powercap_zone *zone, in powercap_walk_zones()
291 int (*f)(struct powercap_zone *zone)) in powercap_walk_zones()
/kernel/linux/linux-5.10/drivers/block/null_blk/
Dzoned.c91 struct blk_zone *zone = &dev->zones[i]; in null_init_zoned_dev() local
104 struct blk_zone *zone = &dev->zones[i]; in null_init_zoned_dev() local
176 struct blk_zone zone; in null_report_zones() local
214 struct blk_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() local
228 static blk_status_t null_close_zone(struct nullb_device *dev, struct blk_zone *zone) in null_close_zone()
314 static blk_status_t null_check_zone_resources(struct nullb_device *dev, struct blk_zone *zone) in null_check_zone_resources()
338 struct blk_zone *zone = &dev->zones[zno]; in null_zone_write() local
432 static blk_status_t null_open_zone(struct nullb_device *dev, struct blk_zone *zone) in null_open_zone()
468 static blk_status_t null_finish_zone(struct nullb_device *dev, struct blk_zone *zone) in null_finish_zone()
506 static blk_status_t null_reset_zone(struct nullb_device *dev, struct blk_zone *zone) in null_reset_zone()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dmmzone.h459 struct zone { struct
471 * wasting several GB of ram we must reserve some of the lower zone argument
482 struct pglist_data *zone_pgdat; argument
494 unsigned long zone_start_pfn; argument
497 * spanned_pages is the total pages spanned by the zone, including argument
541 * of pageblock. Protected by zone->lock. argument
559 /* zone flags, see below */ argument
560 unsigned long flags;
563 spinlock_t lock;
577 unsigned long compact_cached_free_pfn;
[all …]
Dmemory_hotplug.h91 static inline unsigned zone_span_seqbegin(struct zone *zone) in zone_span_seqbegin()
95 static inline int zone_span_seqretry(struct zone *zone, unsigned iv) in zone_span_seqretry()
99 static inline void zone_span_writelock(struct zone *zone) in zone_span_writelock()
103 static inline void zone_span_writeunlock(struct zone *zone) in zone_span_writeunlock()
107 static inline void zone_seqlock_init(struct zone *zone) in zone_seqlock_init()
251 static inline unsigned zone_span_seqbegin(struct zone *zone) in zone_span_seqbegin()
255 static inline int zone_span_seqretry(struct zone *zone, unsigned iv) in zone_span_seqretry()
259 static inline void zone_span_writelock(struct zone *zone) {} in zone_span_writelock()
260 static inline void zone_span_writeunlock(struct zone *zone) {} in zone_span_writeunlock()
261 static inline void zone_seqlock_init(struct zone *zone) {} in zone_seqlock_init()
/kernel/linux/linux-6.6/mm/
Dpage_alloc.c337 _deferred_grow_zone(struct zone *zone, unsigned int order) in _deferred_grow_zone()
447 static int page_outside_zone_boundaries(struct zone *zone, struct page *page) in page_outside_zone_boundaries()
472 static int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
482 static inline int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
621 static inline struct capture_control *task_capc(struct zone *zone) in task_capc()
657 static inline struct capture_control *task_capc(struct zone *zone) in task_capc()
671 static inline void add_to_free_list(struct page *page, struct zone *zone, in add_to_free_list()
681 static inline void add_to_free_list_tail(struct page *page, struct zone *zone, in add_to_free_list_tail()
695 static inline void move_to_free_list(struct page *page, struct zone *zone, in move_to_free_list()
703 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 …]
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
/kernel/linux/linux-6.6/include/linux/
Dmmzone.h843 struct zone { struct
855 * wasting several GB of ram we must reserve some of the lower zone argument
866 struct pglist_data *zone_pgdat; argument
868 struct per_cpu_zonestat __percpu *per_cpu_zonestats; argument
885 unsigned long zone_start_pfn; argument
888 * spanned_pages is the total pages spanned by the zone, including argument
945 * of pageblock. Protected by zone->lock. argument
968 /* zone flags, see below */ argument
969 unsigned long flags;
972 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_memory.c81 struct ttm_mem_zone *zone = in ttm_mem_zone_kobj_release() local
93 struct ttm_mem_zone *zone = in ttm_mem_zone_show() local
121 struct ttm_mem_zone *zone = in ttm_mem_zone_store() local
241 struct ttm_mem_zone *zone; in ttm_zones_above_swap_target() local
302 struct ttm_mem_zone *zone = kzalloc(sizeof(*zone), GFP_KERNEL); in ttm_mem_init_kernel_zone() local
334 struct ttm_mem_zone *zone; in ttm_mem_init_highmem_zone() local
370 struct ttm_mem_zone *zone = kzalloc(sizeof(*zone), GFP_KERNEL); in ttm_mem_init_dma32_zone() local
420 struct ttm_mem_zone *zone; in ttm_mem_global_init() local
464 struct ttm_mem_zone *zone; in ttm_mem_global_release() local
488 struct ttm_mem_zone *zone; in ttm_check_swapping() local
[all …]
/kernel/linux/linux-5.10/mm/
Dpage_alloc.c137 struct zone *zone; member
592 static int page_outside_zone_boundaries(struct zone *zone, struct page *page) in page_outside_zone_boundaries()
615 static int page_is_consistent(struct zone *zone, struct page *page) in page_is_consistent()
627 static int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
637 static inline int __maybe_unused bad_range(struct zone *zone, struct page *page) in bad_range()
767 static inline bool set_page_guard(struct zone *zone, struct page *page, in set_page_guard()
785 static inline void clear_page_guard(struct zone *zone, struct page *page, in clear_page_guard()
798 static inline bool set_page_guard(struct zone *zone, struct page *page, in set_page_guard()
800 static inline void clear_page_guard(struct zone *zone, struct page *page, in clear_page_guard()
845 static inline struct capture_control *task_capc(struct zone *zone) in task_capc()
[all …]
Dvmstat.c40 static void zero_zone_numa_counters(struct zone *zone) in zero_zone_numa_counters()
55 struct zone *zone; in zero_zones_numa_counters() local
172 int calculate_pressure_threshold(struct zone *zone) in calculate_pressure_threshold()
196 int calculate_normal_threshold(struct zone *zone) in calculate_normal_threshold()
249 struct zone *zone; in refresh_zone_stat_thresholds() local
292 int (*calculate_pressure)(struct zone *)) in set_pgdat_percpu_threshold()
294 struct zone *zone; in set_pgdat_percpu_threshold() local
316 void __mod_zone_page_state(struct zone *zone, enum zone_stat_item item, in __mod_zone_page_state()
384 void __inc_zone_state(struct zone *zone, enum zone_stat_item item) in __inc_zone_state()
430 void __dec_zone_state(struct zone *zone, enum zone_stat_item item) in __dec_zone_state()
[all …]
Dcompaction.c160 void defer_compaction(struct zone *zone, int order) in defer_compaction()
175 bool compaction_deferred(struct zone *zone, int order) in compaction_deferred()
198 void compaction_defer_reset(struct zone *zone, int order, in compaction_defer_reset()
212 bool compaction_restarting(struct zone *zone, int order) in compaction_restarting()
231 static void reset_cached_positions(struct zone *zone) in reset_cached_positions()
258 __reset_isolation_pfn(struct zone *zone, unsigned long pfn, bool check_source, in __reset_isolation_pfn()
334 static void __reset_isolation_suitable(struct zone *zone) in __reset_isolation_suitable()
391 struct zone *zone = &pgdat->node_zones[zoneid]; in reset_isolation_suitable() local
426 struct zone *zone = cc->zone; in update_cached_migrate() local
448 struct zone *zone = cc->zone; in update_pageblock_skip() local
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
239 int zone, int block, int boffset, in sm_read_sector()
322 int zone, int block, int boffset, in sm_write_sector()
369 int zone, int block, int lba, in sm_write_block()
433 static void sm_mark_block_bad(struct sm_ftl *ftl, int zone, int block) in sm_mark_block_bad()
463 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_erase_block() local
497 static int sm_check_block(struct sm_ftl *ftl, int zone, int block) in sm_check_block()
747 struct ftl_zone *zone = &ftl->zones[zone_num]; in sm_init_zone() local
870 struct ftl_zone *zone; in sm_get_zone() local
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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
1377 struct dm_zone *zone; in dmz_init_zone() local
1448 struct dm_zone *zone; in dmz_emulate_zones() local
1475 struct dm_zone *zone = xa_load(&zmd->zones, idx); in dmz_drop_zones() local
1580 struct dm_zone *zone = data; in dmz_update_zone_cb() local
1599 static int dmz_update_zone(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_update_zone()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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()
43 static int int340x_thermal_get_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_get_trip_temp()
79 static int int340x_thermal_get_trip_type(struct thermal_zone_device *zone, in int340x_thermal_get_trip_type()
116 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp()
138 static int int340x_thermal_get_trip_hyst(struct thermal_zone_device *zone, in int340x_thermal_get_trip_hyst()
/kernel/linux/linux-6.6/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 …]

12345678910>>...12