Home
last modified time | relevance | path

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

123456789

/linux/drivers/block/null_blk/
H A Dzoned.c25 struct nullb_zone *zone) in null_init_zone_lock() argument
28 spin_lock_init(&zone->spinlock); in null_init_zone_lock()
30 mutex_init(&zone->mutex); in null_init_zone_lock()
34 struct nullb_zone *zone) in null_lock_zone() argument
37 spin_lock_irq(&zone->spinlock); in null_lock_zone()
39 mutex_lock(&zone->mutex); in null_lock_zone()
43 struct nullb_zone *zone) in null_unlock_zone() argument
46 spin_unlock_irq(&zone->spinlock); in null_unlock_zone()
48 mutex_unlock(&zone->mutex); in null_unlock_zone()
55 struct nullb_zone *zone; in null_init_zoned_dev() local
[all …]
/linux/fs/pstore/
H A Dzone.c160 static inline int buffer_datalen(struct pstore_zone *zone) in buffer_datalen() argument
162 return atomic_read(&zone->buffer->datalen); in buffer_datalen()
165 static inline int buffer_start(struct pstore_zone *zone) in buffer_start() argument
167 return atomic_read(&zone->buffer->start); in buffer_start()
175 static ssize_t psz_zone_read_buffer(struct pstore_zone *zone, char *buf, in psz_zone_read_buffer() argument
178 if (!buf || !zone || !zone->buffer) in psz_zone_read_buffer()
180 if (off > zone->buffer_size) in psz_zone_read_buffer()
182 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer()
183 memcpy(buf, zone->buffer->data + off, len); in psz_zone_read_buffer()
187 static int psz_zone_read_oldbuf(struct pstore_zone *zone, char *buf, in psz_zone_read_oldbuf() argument
[all …]
/linux/mm/
H A Dpage_alloc.c81 * shuffle the whole zone).
93 /* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */
211 struct zone *zone);
274 /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */
286 static bool cond_accept_memory(struct zone *zone, unsigned int order,
307 _deferred_grow_zone(struct zone *zone, unsigned int order) in _deferred_grow_zone() argument
309 return deferred_grow_zone(zone, orde in _deferred_grow_zone()
312 _deferred_grow_zone(struct zone * zone,unsigned int order) _deferred_grow_zone() argument
560 page_outside_zone_boundaries(struct zone * zone,struct page * page) page_outside_zone_boundaries() argument
585 bad_range(struct zone * zone,struct page * page) bad_range() argument
595 bad_range(struct zone * zone,struct page * page) bad_range() argument
715 task_capc(struct zone * zone) task_capc() argument
757 task_capc(struct zone * zone) task_capc() argument
770 account_freepages(struct zone * zone,int nr_pages,int migratetype) account_freepages() argument
788 __add_to_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype,bool tail) __add_to_free_list() argument
814 move_to_free_list(struct page * page,struct zone * zone,unsigned int order,int old_mt,int new_mt) move_to_free_list() argument
838 __del_page_from_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype) __del_page_from_free_list() argument
860 del_page_from_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype) del_page_from_free_list() argument
936 __free_one_page(struct page * page,unsigned long pfn,struct zone * zone,unsigned int order,int migratetype,fpi_t fpi_flags) __free_one_page() argument
1455 free_pcppages_bulk(struct zone * zone,int count,struct per_cpu_pages * pcp,int pindex) free_pcppages_bulk() argument
1509 split_large_buddy(struct zone * zone,struct page * page,unsigned long pfn,int order,fpi_t fpi) split_large_buddy() argument
1532 add_page_to_zone_llist(struct zone * zone,struct page * page,unsigned int order) add_page_to_zone_llist() argument
1541 free_one_page(struct zone * zone,struct page * page,unsigned long pfn,unsigned int order,fpi_t fpi_flags) free_one_page() argument
1581 struct zone *zone = page_zone(page); __free_pages_ok() local
1660 __pageblock_pfn_to_page(unsigned long start_pfn,unsigned long end_pfn,struct zone * zone) __pageblock_pfn_to_page() argument
1701 expand(struct zone * zone,struct page * page,int low,int high,int migratetype) expand() argument
1729 page_del_and_expand(struct zone * zone,struct page * page,int low,int high,int migratetype) page_del_and_expand() argument
1888 __rmqueue_smallest(struct zone * zone,unsigned int order,int migratetype) __rmqueue_smallest() argument
1927 __rmqueue_cma_fallback(struct zone * zone,unsigned int order) __rmqueue_cma_fallback() argument
1933 __rmqueue_cma_fallback(struct zone * zone,unsigned int order) __rmqueue_cma_fallback() argument
1941 __move_freepages_block(struct zone * zone,unsigned long start_pfn,int old_mt,int new_mt) __move_freepages_block() argument
1974 prep_move_freepages_block(struct zone * zone,struct page * page,unsigned long * start_pfn,int * num_free,int * num_movable) prep_move_freepages_block() argument
2024 move_freepages_block(struct zone * zone,struct page * page,int old_mt,int new_mt) move_freepages_block() argument
2098 __move_freepages_block_isolate(struct zone * zone,struct page * page,bool isolate) __move_freepages_block_isolate() argument
2150 pageblock_isolate_and_move_free_pages(struct zone * zone,struct page * page) pageblock_isolate_and_move_free_pages() argument
2155 pageblock_unisolate_and_move_free_pages(struct zone * zone,struct page * page) pageblock_unisolate_and_move_free_pages() argument
2162 boost_watermark(struct zone * zone) boost_watermark() argument
2281 try_to_claim_block(struct zone * zone,struct page * page,int current_order,int order,int start_type,int block_type,unsigned int alloc_flags) try_to_claim_block() argument
2356 __rmqueue_claim(struct zone * zone,int order,int start_migratetype,unsigned int alloc_flags) __rmqueue_claim() argument
2411 __rmqueue_steal(struct zone * zone,int order,int start_migratetype) __rmqueue_steal() argument
2447 __rmqueue(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,enum rmqueue_mode * mode) __rmqueue() argument
2516 rmqueue_bulk(struct zone * zone,unsigned int order,unsigned long count,struct list_head * list,int migratetype,unsigned int alloc_flags) rmqueue_bulk() argument
2557 decay_pcp_high(struct zone * zone,struct per_cpu_pages * pcp) decay_pcp_high() argument
2596 drain_zone_pages(struct zone * zone,struct per_cpu_pages * pcp) drain_zone_pages() argument
2613 drain_pages_zone(unsigned int cpu,struct zone * zone) drain_pages_zone() argument
2637 struct zone *zone; drain_pages() local
2647 drain_local_pages(struct zone * zone) drain_local_pages() argument
2667 __drain_all_pages(struct zone * zone,bool force_all_cpus) __drain_all_pages() argument
2740 drain_all_pages(struct zone * zone) drain_all_pages() argument
2770 nr_pcp_high(struct per_cpu_pages * pcp,struct zone * zone,int batch,bool free_high) nr_pcp_high() argument
2825 free_frozen_page_commit(struct zone * zone,struct per_cpu_pages * pcp,struct page * page,int migratetype,unsigned int order,fpi_t fpi_flags) free_frozen_page_commit() argument
2934 struct zone *zone; __free_frozen_pages() local
3024 struct zone *zone = folio_zone(folio); free_unref_folios() local
3116 struct zone *zone = page_zone(page); __isolate_free_page() local
3166 struct zone *zone = page_zone(page); __putback_isolated_page() local
3203 rmqueue_buddy(struct zone * preferred_zone,struct zone * zone,unsigned int order,unsigned int alloc_flags,int migratetype) rmqueue_buddy() argument
3255 nr_pcp_alloc(struct per_cpu_pages * pcp,struct zone * zone,int order) nr_pcp_alloc() argument
3307 __rmqueue_pcplist(struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags,struct per_cpu_pages * pcp,struct list_head * list) __rmqueue_pcplist() argument
3353 rmqueue_pcplist(struct zone * preferred_zone,struct zone * zone,unsigned int order,int migratetype,unsigned int alloc_flags) rmqueue_pcplist() argument
3395 rmqueue(struct zone * preferred_zone,struct zone * zone,unsigned int order,gfp_t gfp_flags,unsigned int alloc_flags,int migratetype) rmqueue() argument
3429 reserve_highatomic_pageblock(struct page * page,int order,struct zone * zone) reserve_highatomic_pageblock() argument
3486 struct zone *zone; unreserve_highatomic_pageblock() local
3719 zone_allows_reclaim(struct zone * local_zone,struct zone * zone) zone_allows_reclaim() argument
3725 zone_allows_reclaim(struct zone * local_zone,struct zone * zone) zone_allows_reclaim() argument
3740 alloc_flags_nofragment(struct zone * zone,gfp_t gfp_mask) alloc_flags_nofragment() argument
3796 struct zone *zone; get_page_from_freelist() local
4181 struct zone *zone = page_zone(page); __alloc_pages_direct_compact() local
4281 struct zone *zone; should_compact_retry() local
4451 struct zone *zone; wake_all_kswapds() local
4581 struct zone *zone; should_reclaim_retry() local
5047 struct zone *zone; alloc_pages_bulk_noprof() local
5484 struct zone *zone; nr_free_zone_pages() local
5516 zoneref_set_zone(struct zone * zone,struct zoneref * zoneref) zoneref_set_zone() argument
5529 struct zone *zone; build_zonerefs_node() local
5898 zone_batchsize(struct zone * zone) zone_batchsize() argument
5946 zone_highsize(struct zone * zone,int batch,int cpu_online,int high_fraction) zone_highsize() argument
6042 __zone_set_pageset_high_and_batch(struct zone * zone,unsigned long high_min,unsigned long high_max,unsigned long batch) __zone_set_pageset_high_and_batch() argument
6058 zone_set_pageset_high_and_batch(struct zone * zone,int cpu_online) zone_set_pageset_high_and_batch() argument
6090 setup_zone_pageset(struct zone * zone) setup_zone_pageset() argument
6115 zone_pcp_update(struct zone * zone,int cpu_online) zone_pcp_update() argument
6122 zone_pcp_update_cacheinfo(struct zone * zone,unsigned int cpu) zone_pcp_update_cacheinfo() argument
6146 struct zone *zone; setup_pcp_cacheinfo() local
6159 struct zone *zone; setup_per_cpu_pageset() local
6184 zone_pcp_init(struct zone * zone) zone_pcp_init() argument
6224 struct zone *zone; page_alloc_cpu_dead() local
6255 struct zone *zone; page_alloc_cpu_online() local
6288 struct zone *zone = pgdat->node_zones + i; calculate_totalreserve_pages() local
6348 struct zone *zone = &pgdat->node_zones[i]; setup_per_zone_lowmem_reserve() local
6376 struct zone *zone; __setup_per_zone_wmarks() local
6445 struct zone *zone; setup_per_zone_wmarks() local
6558 struct zone *zone; setup_min_unmapped_ratio() local
6586 struct zone *zone; setup_min_slab_ratio() local
6644 struct zone *zone; percpu_pagelist_high_fraction_sysctl_handler() local
7152 zone_spans_last_pfn(const struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) zone_spans_last_pfn() argument
7191 struct zone *zone; alloc_contig_frozen_pages_noprof() local
7326 zone_pcp_disable(struct zone * zone) zone_pcp_disable() argument
7333 zone_pcp_enable(struct zone * zone) zone_pcp_enable() argument
7340 zone_pcp_reset(struct zone * zone) zone_pcp_reset() argument
7374 struct zone *zone; __offline_isolated_pages() local
7436 add_to_free_list(struct page * page,struct zone * zone,unsigned int order,int migratetype,bool tail) add_to_free_list() argument
7448 break_down_buddy_pages(struct zone * zone,struct page * page,struct page * target,int low,int high,int migratetype) break_down_buddy_pages() argument
7479 struct zone *zone = page_zone(page); take_page_off_buddy() local
7515 struct zone *zone = page_zone(page); put_page_back_buddy() local
7536 has_managed_zone(enum zone_type zone) has_managed_zone() argument
7572 __accept_page(struct zone * zone,unsigned long * flags,struct page * page) __accept_page() argument
7588 struct zone *zone = page_zone(page); accept_page() local
7601 try_to_accept_memory_one(struct zone * zone) try_to_accept_memory_one() argument
7620 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
7661 struct zone *zone = page_zone(page); __free_unaccepted() local
7684 cond_accept_memory(struct zone * zone,unsigned int order,int alloc_flags) cond_accept_memory() argument
[all...]
H A Dmm_init.c80 struct zone *zone; in mminit_verify_zonelist() local
91 zone = &pgdat->node_zones[zoneid]; in mminit_verify_zonelist()
92 if (!populated_zone(zone)) in mminit_verify_zonelist()
98 zone->name); in mminit_verify_zonelist()
101 for_each_zone_zonelist(zone, z, zonelist, zoneid) in mminit_verify_zonelist()
102 pr_cont("%d:%s ", zone_to_nid(zone), zone->name); in mminit_verify_zonelist()
593 unsigned long zone, int nid) in __init_single_page() argument
596 set_page_links(page, zone, nid, pfn); in __init_single_page()
605 if (!is_highmem_idx(zone)) in __init_single_page()
688 struct zone *zone = &pgdat->node_zones[zid]; in __init_page_from_nid() local
[all …]
H A Dmemory_hotplug.c159 * specifying a zone (MMOP_ONLINE)
161 * "contig-zones": keep zone contiguous
426 static unsigned long find_smallest_section_pfn(int nid, struct zone *zone, in find_smallest_section_pfn() argument
437 if (zone != page_zone(pfn_to_page(start_pfn))) in find_smallest_section_pfn()
447 static unsigned long find_biggest_section_pfn(int nid, struct zone *zone, in find_biggest_section_pfn() argument
462 if (zone != page_zone(pfn_to_page(pfn))) in find_biggest_section_pfn()
471 static void shrink_zone_span(struct zone *zone, unsigne argument
514 struct zone *zone; update_pgdat_span() local
539 remove_pfn_range_from_zone(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) remove_pfn_range_from_zone() argument
695 resize_zone_range(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) resize_zone_range() argument
740 move_pfn_range_to_zone(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages,struct vmem_altmap * altmap,int migratetype,bool isolate_pageblock) move_pfn_range_to_zone() argument
787 auto_movable_stats_account_zone(struct auto_movable_stats * stats,struct zone * zone) auto_movable_stats_account_zone() argument
841 struct zone *zone; auto_movable_can_online_movable() local
897 struct zone *zone = &pgdat->node_zones[zid]; default_kernel_zone_for_pfn() local
1064 struct zone *zone = page_zone(page); adjust_present_page_count() local
1083 mhp_init_memmap_on_memory(unsigned long pfn,unsigned long nr_pages,struct zone * zone) mhp_init_memmap_on_memory() argument
1137 online_pages(unsigned long pfn,unsigned long nr_pages,struct zone * zone,struct memory_group * group) online_pages() argument
1899 offline_pages(unsigned long start_pfn,unsigned long nr_pages,struct zone * zone,struct memory_group * group) offline_pages() argument
[all...]
H A Dmmzone.c30 struct zone *next_zone(struct zone *zone) in next_zone() argument
32 pg_data_t *pgdat = zone->zone_pgdat; in next_zone()
34 if (zone < pgdat->node_zones + MAX_NR_ZONES - 1) in next_zone()
35 zone++; in next_zone()
39 zone = pgdat->node_zones; in next_zone()
41 zone = NULL; in next_zone()
43 return zone; in next_zone()
/linux/drivers/block/
H A Dzloop.c182 struct zloop_zone *zone) in zloop_lru_rotate_open_zone() argument
186 list_move_tail(&zone->open_zone_entry, in zloop_lru_rotate_open_zone()
193 struct zloop_zone *zone) in zloop_lru_remove_open_zone() argument
195 if (zone->cond == BLK_ZONE_COND_IMP_OPEN || in zloop_lru_remove_open_zone()
196 zone->cond == BLK_ZONE_COND_EXP_OPEN) { in zloop_lru_remove_open_zone()
198 list_del_init(&zone->open_zone_entry); in zloop_lru_remove_open_zone()
216 struct zloop_zone *zone; in zloop_close_imp_open_zone() local
223 list_for_each_entry(zone, &zlo->open_zones_lru_list, open_zone_entry) { in zloop_close_imp_open_zone()
224 if (zone->cond == BLK_ZONE_COND_IMP_OPEN) { in zloop_close_imp_open_zone()
225 zone->cond = BLK_ZONE_COND_CLOSED; in zloop_close_imp_open_zone()
[all …]
/linux/tools/power/cpupower/lib/
H A Dpowercap.c124 static int sysfs_powercap_get64_val(struct powercap_zone *zone, in sysfs_powercap_get64_val() argument
132 strcat(file, zone->sys_name); 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() argument
148 return sysfs_powercap_get64_val(zone, GET_MAX_ENERGY_RANGE_UJ, 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() argument
153 return sysfs_powercap_get64_val(zone, GET_ENERGY_UJ, 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() argument
158 return sysfs_powercap_get64_val(zone, GET_MAX_POWER_RANGE_UW, 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() argument
163 return sysfs_powercap_get64_val(zone, GET_POWER_UW, val); in powercap_get_power_uw()
[all …]
H A Dpowercap.h38 int powercap_walk_zones(struct powercap_zone *zone,
39 int (*f)(struct powercap_zone *zone));
46 int powercap_get_max_energy_range_uj(struct powercap_zone *zone, uint64_t *val);
47 int powercap_get_energy_uj(struct powercap_zone *zone, uint64_t *val);
48 int powercap_get_max_power_range_uw(struct powercap_zone *zone, uint64_t *val);
49 int powercap_get_power_uw(struct powercap_zone *zone, uint64_t *val);
50 int powercap_zone_get_enabled(struct powercap_zone *zone, int *mode);
51 int powercap_zone_set_enabled(struct powercap_zone *zone, int mode);
/linux/drivers/md/
H A 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() argument
223 if (WARN_ON(!zone)) in dmz_dev_zone_id()
226 return zone->id - zone->dev->zone_offset; in dmz_dev_zone_id()
229 sector_t dmz_start_sect(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_sect() argument
231 unsigned int zone_id = dmz_dev_zone_id(zmd, zone); in dmz_start_sect()
236 sector_t dmz_start_block(struct dmz_metadata *zmd, struct dm_zone *zone) in dmz_start_block() argument
238 unsigned int zone_id = dmz_dev_zone_id(zmd, zone); in dmz_start_block()
306 struct dm_zone *zone = kzalloc_obj(struct dm_zone); in dmz_insert() local
308 if (!zone) in dmz_insert()
[all …]
H A Ddm-zoned-target.c21 struct dm_zone *zone; member
86 struct dm_zone *zone = bioctx->zone; in dmz_bio_endio() local
88 if (zone) { in dmz_bio_endio()
91 dmz_is_seq(zone)) in dmz_bio_endio()
92 set_bit(DMZ_SEQ_WRITE_ERR, &zone->flags); in dmz_bio_endio()
93 dmz_deactivate_zone(zone); in dmz_bio_endio()
116 static int dmz_submit_bio(struct dmz_target *dmz, struct dm_zone *zone, in dmz_submit_bio() argument
122 struct dmz_dev *dev = zone->dev; in dmz_submit_bio()
134 dmz_start_sect(dmz->metadata, zone) + dmz_blk2sect(chunk_block); in dmz_submit_bio()
144 if (bio_op(bio) == REQ_OP_WRITE && dmz_is_seq(zone)) in dmz_submit_bio()
[all …]
/linux/include/net/netfilter/
H A Dnf_conntrack_zones.h12 return &ct->zone; in nf_ct_zone()
19 nf_ct_zone_init(struct nf_conntrack_zone *zone, u16 id, u8 dir, u8 flags) in nf_ct_zone_init() argument
21 zone->id = id; in nf_ct_zone_init()
22 zone->flags = flags; in nf_ct_zone_init()
23 zone->dir = dir; in nf_ct_zone_init()
25 return zone; in nf_ct_zone_init()
36 if (tmpl->zone.flags & NF_CT_FLAG_MARK) in nf_ct_zone_tmpl()
37 return nf_ct_zone_init(tmp, skb->mark, tmpl->zone.dir, 0); in nf_ct_zone_tmpl()
43 const struct nf_conntrack_zone *zone) in nf_ct_zone_add() argument
46 ct->zone = *zone; in nf_ct_zone_add()
[all …]
/linux/kernel/power/
H A Dsnapshot.c406 struct mem_zone_bm_rtree *zone; member
468 static int add_rtree_block(struct mem_zone_bm_rtree *zone, gfp_t gfp_mask, in add_rtree_block() argument
475 block_nr = zone->blocks; in add_rtree_block()
485 for (i = zone->levels; i < levels_needed; i++) { in add_rtree_block()
487 &zone->nodes); in add_rtree_block()
491 node->data[0] = (unsigned long)zone->rtree; in add_rtree_block()
492 zone->rtree = node; in add_rtree_block()
493 zone->levels += 1; in add_rtree_block()
497 block = alloc_rtree_node(gfp_mask, safe_needed, ca, &zone->leaves); in add_rtree_block()
502 node = zone->rtree; in add_rtree_block()
[all …]
/linux/fs/adfs/
H A Dmap.c159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map() argument
166 dm = asb->s_map + zone; in scan_map()
167 zone = asb->s_map_size; in scan_map()
168 dm_end = asb->s_map + zone; in scan_map()
179 } while (--zone > 0); in scan_map()
202 unsigned int zone; in adfs_map_statfs() local
205 zone = asb->s_map_size; in adfs_map_statfs()
209 } while (--zone > 0); in adfs_map_statfs()
220 unsigned int zone, mapoff; in adfs_map_lookup() local
228 zone = asb->s_map_size >> 1; in adfs_map_lookup()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c250 struct mlx4_zone_entry *zone = kmalloc_obj(*zone); in mlx4_zone_add_one() local
252 if (NULL == zone) in mlx4_zone_add_one()
255 zone->flags = flags; in mlx4_zone_add_one()
256 zone->bitmap = bitmap; in mlx4_zone_add_one()
257 zone->use_rr = (flags & MLX4_ZONE_USE_RR) ? MLX4_USE_RR : 0; in mlx4_zone_add_one()
258 zone->priority = priority; in mlx4_zone_add_one()
259 zone->offset = offset; in mlx4_zone_add_one()
263 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one()
264 zone->allocator = zone_alloc; in mlx4_zone_add_one()
274 list_add_tail(&zone->prio_list, &it->prio_list); in mlx4_zone_add_one()
[all …]
/linux/virt/kvm/
H A Dcoalesced_mmio.c36 if (addr < dev->zone.addr) in coalesced_mmio_in_range()
38 if (addr + len > dev->zone.addr + dev->zone.size) in coalesced_mmio_in_range()
74 ring->coalesced_mmio[insert].pio = dev->zone.pio; in coalesced_mmio_write()
123 struct kvm_coalesced_mmio_zone *zone) in kvm_vm_ioctl_register_coalesced_mmio() argument
128 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_register_coalesced_mmio()
137 dev->zone = *zone; in kvm_vm_ioctl_register_coalesced_mmio()
141 zone->pio ? KVM_PIO_BUS : KVM_MMIO_BUS, in kvm_vm_ioctl_register_coalesced_mmio()
142 zone->addr, zone->size, &dev->dev); in kvm_vm_ioctl_register_coalesced_mmio()
158 struct kvm_coalesced_mmio_zone *zone) in kvm_vm_ioctl_unregister_coalesced_mmio() argument
163 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_unregister_coalesced_mmio()
[all …]
/linux/include/trace/events/
H A Dcompaction.h194 TP_PROTO(struct zone *zone,
198 TP_ARGS(zone, order, ret),
208 __entry->nid = zone_to_nid(zone);
209 __entry->idx = zone_idx(zone);
223 TP_PROTO(struct zone *zone,
227 TP_ARGS(zone, order, ret)
232 TP_PROTO(struct zone *zone,
236 TP_ARGS(zone, order, ret)
241 TP_PROTO(struct zone *zone, int order),
243 TP_ARGS(zone, order),
[all …]
/linux/drivers/mtd/
H A Dsm_ftl.c190 static loff_t sm_mkoffset(struct sm_ftl *ftl, int zone, int block, int boffset) in sm_mkoffset() argument
193 WARN_ON(zone < 0 || zone >= ftl->zone_count); in sm_mkoffset()
200 return (zone * SM_MAX_ZONE_SIZE + block) * ftl->block_size + boffset; in sm_mkoffset()
205 int *zone, int *block, int *boffset) in sm_break_offset() argument
210 *zone = offset >= ftl->zone_count ? -1 : offset; in sm_break_offset()
236 int zone, int block, int boffset, in sm_read_sector() argument
268 if (zone == 0 && block == ftl->cis_block && boffset == in sm_read_sector()
280 ret = mtd_read_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops); in sm_read_sector()
285 block, zone, ret); in sm_read_sector()
303 " as bad" , block, zone); in sm_read_sector()
[all …]
/linux/Documentation/filesystems/
H A Dzonefs.rst10 zonefs is a very simple file system exposing each zone of a zoned block device
24 by allowing SSTables to be stored in a zone file similarly to a regular file
26 of the higher level construct "one file is one zone" can help reducing the
34 space that is divided into zones. A zone is a group of consecutive LBAs and all
41 sequentially. Each sequential zone has a write pointer maintained by the
43 to the device. As a result of this write constraint, LBAs in a sequential zone
45 command (zone reset) before rewriting.
61 representing zones are grouped by zone type, which are themselves represented
62 by sub-directories. This file structure is built entirely using zone information
71 mount, zonefs uses blkdev_report_zones() to obtain the device zone configuration
[all …]
/linux/include/linux/
H A Dcompaction.h90 extern unsigned int extfrag_for_order(struct zone *zone, unsigned int order);
91 extern int fragmentation_index(struct zone *zone, unsigned int order);
97 extern bool compaction_suitable(struct zone *zone, int order,
100 extern void compaction_defer_reset(struct zone *zone, int order,
115 static inline bool compaction_suitable(struct zone *zone, int order, in compaction_suitable() argument
/linux/block/
H A Dblk-zoned.c354 static int blkdev_copy_zone_to_user(struct blk_zone *zone, unsigned int idx, in blkdev_copy_zone_to_user() argument
359 if (copy_to_user(&args->zones[idx], zone, sizeof(struct blk_zone))) in blkdev_copy_zone_to_user()
490 static bool disk_zone_is_last(struct gendisk *disk, struct blk_zone *zone) in disk_zone_is_last() argument
492 return zone->start + zone->len >= get_capacity(disk); in disk_zone_is_last()
796 static unsigned int blk_zone_wp_offset(struct blk_zone *zone) in blk_zone_wp_offset() argument
798 switch (zone->cond) { in blk_zone_wp_offset()
803 return zone->wp - zone->start; in blk_zone_wp_offset()
820 struct blk_zone *zone) in disk_zone_wplug_sync_wp_offset() argument
823 unsigned int wp_offset = blk_zone_wp_offset(zone); in disk_zone_wplug_sync_wp_offset()
825 zwplug = disk_get_zone_wplug(disk, zone->start); in disk_zone_wplug_sync_wp_offset()
[all …]
/linux/sound/synth/emux/
H A Dsoundfont.c476 struct snd_sf_zone *zone; in load_info() local
515 for (zone = sf->zones; zone; zone = zone->next) { in load_info()
516 if (!zone->mapped && in load_info()
517 zone->bank == hdr.bank && in load_info()
518 zone->instr == hdr.instr) in load_info()
547 zone = sf_zone_new(sflist, sf); in load_info()
548 if (!zone) in load_info()
552 zone->bank = tmpzone.bank; in load_info()
553 zone->instr = tmpzone.instr; in load_info()
554 zone->v = tmpzone.v; in load_info()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-powercap25 This status affects every power zone using this "control_type.
27 What: /sys/class/powercap/<control type>/<power zone>
32 A power zone is a single or a collection of devices, which can
33 be independently monitored and controlled. A power zone sysfs
37 What: /sys/class/powercap/<control type>/<power zone>/<child power zone>
45 power zone for a whole CPU package, each CPU core in it can
46 be a child power zone.
48 What: /sys/class/powercap/.../<power zone>/name
53 Specifies the name of this power zone.
55 What: /sys/class/powercap/.../<power zone>/energy_uj
[all …]
H A Dsysfs-class-backlight88 What: /sys/class/backlight/<backlight>/<ambient light zone>_max
93 Control the maximum brightness for <ambient light zone>
96 <ambient light zone>.
98 The <ambient light zone> is device-driver specific:
100 For ADP5520 and ADP5501, <ambient light zone> can be:
104 light zone
111 For ADP8860, <ambient light zone> can be:
115 light zone
122 For ADP8870, <ambient light zone> can be:
126 light zone
[all …]
/linux/drivers/thermal/intel/int340x_thermal/
H 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()
41 static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone, in int340x_thermal_set_trip_temp() argument
44 struct int34x_thermal_zone *d = thermal_zone_device_priv(zone); in int340x_thermal_set_trip_temp()
60 static void int340x_thermal_critical(struct thermal_zone_device *zone) in int340x_thermal_critical() argument
62 dev_dbg(thermal_zone_device(zone), "%s: critical temperature reached\n", in int340x_thermal_critical()
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()
[all …]

123456789