Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/drivers/block/null_blk/
H A Dzoned.c140 zone->capacity = zone->len; in null_init_zoned_dev()
141 zone->wp = zone->start + zone->len; in null_init_zoned_dev()
152 zone->start = zone->wp = sector; in null_init_zoned_dev()
154 zone->len = dev_capacity_sects - zone->start; in null_init_zoned_dev()
278 if (zone->wp == zone->start) { in __null_close_zone()
417 if (zone->wp + nr_sectors > zone->start + zone->capacity) { in null_zone_write()
449 if (zone->wp == zone->start + zone->capacity) { in null_zone_write()
562 zone->wp = zone->start + zone->len; in null_finish_zone()
600 zone->wp = zone->start; in null_reset_zone()
724 zone->wp = zone->start; in null_set_zone_cond()
[all …]
/openbmc/linux/fs/pstore/
H A Dzone.c413 zone->name, i, zone->off, in psz_kmsg_recover_meta()
421 zone->name, i, zone->off, in psz_kmsg_recover_meta()
444 zone->name, i, zone->off, in psz_kmsg_recover_meta()
453 zone->name, i, zone->off, in psz_kmsg_recover_meta()
489 if (!zone || zone->oldbuf) in psz_recover_zone()
516 zone->name, zone->off, zone->buffer_size); in psz_recover_zone()
523 zone->name, zone->off, zone->buffer_size, in psz_recover_zone()
529 zone->name, zone->off, zone->buffer_size, in psz_recover_zone()
652 if (zone && zone->buffer && buffer_datalen(zone)) in psz_ok()
763 zone->oldbuf = zone->buffer; in psz_kmsg_write_record()
[all …]
/openbmc/linux/mm/
H A Dshow_mem.c26 static inline void show_node(struct zone *zone) in show_node() argument
39 struct zone *zone; in si_mem_available() local
45 for_each_zone(zone) in si_mem_available()
107 struct zone *zone = &pgdat->node_zones[zone_type]; in si_meminfo_node() local
109 if (is_highmem(zone)) { in si_meminfo_node()
193 struct zone *zone; in show_free_areas() local
307 show_node(zone); in show_free_areas()
330 zone->name, in show_free_areas()
365 show_node(zone); in show_free_areas()
406 struct zone *zone; in __show_mem() local
[all …]
H A Dpage_alloc.c1931 struct zone *zone; in unreserve_highatomic_pageblock() local
2209 struct zone *zone; in drain_pages() local
2411 struct zone *zone; in free_unref_page() local
3059 struct zone *zone; in get_page_from_freelist() local
3512 struct zone *zone; in should_compact_retry() local
3682 struct zone *zone; in wake_all_kswapds() local
3803 struct zone *zone; in should_reclaim_retry() local
4252 struct zone *zone; in __alloc_pages_bulk() local
4770 struct zone *zone; in nr_free_zone_pages() local
4815 struct zone *zone; in build_zonerefs_node() local
[all …]
H A Dvmstat.c54 struct zone *zone; in zero_zones_numa_counters() local
189 struct zone *zone; in fold_vm_numa_events() local
275 struct zone *zone; in refresh_zone_stat_thresholds() local
320 struct zone *zone; in set_pgdat_percpu_threshold() local
704 struct zone *zone; in inc_zone_page_state() local
809 struct zone *zone; in refresh_cpu_vm_stats() local
895 struct zone *zone; in cpu_vm_stats_fold() local
1450 struct zone *zone; in walk_zones_in_node() local
1469 struct zone *zone) in frag_show_print() argument
1673 struct zone *zone) in zoneinfo_show_print() argument
[all …]
H A Dcompaction.c464 struct zone *zone = cc->zone; in update_cached_migrate() local
487 struct zone *zone = cc->zone; in update_pageblock_skip() local
1640 struct zone *zone = cc->zone; in isolate_freepages() local
2353 struct zone *zone; in compaction_zonelist_suitable() local
2628 .zone = zone, in compact_zone_order()
2688 struct zone *zone; in try_to_compact_pages() local
2758 struct zone *zone; in proactive_compact_node() local
2773 cc.zone = zone; in proactive_compact_node()
2789 struct zone *zone; in compact_node() local
2805 cc.zone = zone; in compact_node()
[all …]
H A Dmemory_hotplug.c475 zone->spanned_pages = zone_end_pfn(zone) - pfn; in shrink_zone_span()
491 zone->spanned_pages = pfn - zone->zone_start_pfn + 1; in shrink_zone_span()
502 struct zone *zone; in update_pgdat_span() local
682 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_online() argument
794 struct zone *zone) in auto_movable_stats_account_zone() argument
849 struct zone *zone; in auto_movable_can_online_movable() local
903 struct zone *zone = &pgdat->node_zones[zid]; in default_kernel_zone_for_pfn() local
1070 struct zone *zone = page_zone(page); in adjust_present_page_count() local
1089 struct zone *zone) in mhp_init_memmap_on_memory() argument
1813 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_offline() argument
[all …]
H A Dmm_init.c49 struct zone *zone; in mminit_verify_zonelist() local
72 pr_cont("%d:%s ", zone_to_nid(zone), zone->name); in mminit_verify_zonelist()
717 struct zone *zone = &pgdat->node_zones[zid]; in init_reserved_page() local
943 struct zone *zone = node->node_zones + j; in memmap_init() local
1275 struct zone *zone = pgdat->node_zones + i; in calculate_node_totalpages() local
1537 struct zone *zone = pgdat->node_zones + z; in free_area_init_core_hotplug() local
1563 struct zone *zone = pgdat->node_zones + j; in free_area_init_core() local
2163 struct zone *zone = arg; in deferred_init_memmap_chunk() local
2193 struct zone *zone; in deferred_init_memmap() local
2359 void set_zone_contiguous(struct zone *zone) in set_zone_contiguous() argument
[all …]
/openbmc/phosphor-pid-control/pid/
H A Dpidloop.cpp39 zone->updateSensors(); in processThermals()
41 zone->clearSetPoints(); in processThermals()
42 zone->clearRPMCeilings(); in processThermals()
44 zone->processThermals(); in processThermals()
62 zone->initializeLog(); in pidControlLoop()
65 zone->initializeCache(); in pidControlLoop()
66 processThermals(zone); in pidControlLoop()
117 if (zone->getManualMode()) in pidControlLoop()
124 zone->updateFanTelemetry(); in pidControlLoop()
136 processThermals(zone); in pidControlLoop()
[all …]
H A Dbuilder.cpp43 static std::string getControlPath(int64_t zone) in getControlPath() argument
45 return std::string(objectPath) + std::to_string(zone); in getControlPath()
76 auto zone = std::make_shared<DbusPidZone>( in buildZones() local
82 std::cerr << "Zone Id: " << zone->getZoneID() << "\n"; in buildZones()
104 zone->addFanPID(std::move(pid)); in buildZones()
120 zone->addThermalPID(std::move(pid)); in buildZones()
121 zone->addPidControlProcess( in buildZones()
136 zone->addThermalPID(std::move(stepwise)); in buildZones()
137 zone->addPidControlProcess( in buildZones()
161 zone->emit_object_added(); in buildZones()
[all …]
/openbmc/linux/tools/power/cpupower/lib/
H A Dpowercap.c132 strcat(file, zone->sys_name); in sysfs_powercap_get64_val()
175 strcat(path, zone->sys_name); in powercap_zone_get_enabled()
206 strcat(file, zone->sys_name); in powercap_read_zone()
209 if (zone->parent) in powercap_read_zone()
210 zone->tree_depth = zone->parent->tree_depth + 1; in powercap_read_zone()
213 zone->has_energy_uj = 1; in powercap_read_zone()
216 zone->has_power_uw = 1; in powercap_read_zone()
249 child_zone->parent = zone; in powercap_read_zone()
295 if (!zone) in powercap_walk_zones()
298 ret = f(zone); in powercap_walk_zones()
[all …]
/openbmc/linux/include/linux/
H A Dmemory_hotplug.h11 struct zone;
132 static inline unsigned zone_span_seqbegin(struct zone *zone) in zone_span_seqbegin() argument
140 static inline void zone_span_writelock(struct zone *zone) in zone_span_writelock() argument
144 static inline void zone_span_writeunlock(struct zone *zone) in zone_span_writeunlock() argument
148 static inline void zone_seqlock_init(struct zone *zone) in zone_seqlock_init() argument
157 struct zone *zone);
160 struct zone *zone, struct memory_group *group);
247 static inline void zone_seqlock_init(struct zone *zone) {} in zone_seqlock_init() argument
309 struct zone *zone, struct memory_group *group);
318 struct zone *zone, struct memory_group *group) in offline_pages() argument
[all …]
H A Dmmzone.h1024 return zone->zone_start_pfn + zone->spanned_pages; in zone_end_pfn()
1196 struct zone *zone; /* Pointer to actual zone */ member
1464 #define zone_idx(zone) ((zone) - (zone)->zone_pgdat->node_zones) argument
1484 static inline bool managed_zone(struct zone *zone) in managed_zone() argument
1496 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1506 static inline int zone_to_nid(struct zone *zone) in zone_to_nid() argument
1533 static inline int is_highmem(struct zone *zone) in is_highmem() argument
1564 extern struct zone *next_zone(struct zone *zone);
1584 zone = next_zone(zone))
1589 zone = next_zone(zone)) \
[all …]
H A Dvmstat.h145 static inline void zone_numa_event_add(long x, struct zone *zone, in zone_numa_event_add() argument
152 static inline unsigned long zone_numa_event_state(struct zone *zone, in zone_numa_event_state() argument
165 static inline void zone_page_state_add(long x, struct zone *zone, in zone_page_state_add() argument
207 static inline unsigned long zone_page_state(struct zone *zone, in zone_page_state() argument
224 static inline unsigned long zone_page_state_snapshot(struct zone *zone, in zone_page_state_snapshot() argument
243 __count_numa_event(struct zone *zone, enum numa_stat_item item) in __count_numa_event() argument
307 void drain_zonestat(struct zone *zone, struct per_cpu_zonestat *);
309 int calculate_pressure_threshold(struct zone *zone);
310 int calculate_normal_threshold(struct zone *zone);
319 static inline void __mod_zone_page_state(struct zone *zone, in __mod_zone_page_state() argument
[all …]
/openbmc/phosphor-pid-control/test/
H A Dpid_zone_unittest.cpp58 int64_t zone = 1; in TEST() local
216 zone->processFans(); in TEST_F()
257 zone->clearSetPoints(); in TEST_F()
261 EXPECT_EQ(zone->getMinThermalSetPoint(), zone->getMaxSetPointRequest()); in TEST_F()
298 EXPECT_EQ(zone->getMinThermalSetPoint(), zone->getMaxSetPointRequest()); in TEST_F()
386 zone->updateSensors(); in TEST_F()
484 zone->updateSensors(); in TEST_F()
498 zone->updateSensors(); in TEST_F()
778 zone->processFans(); in TEST_F()
799 zone->manual(true); in TEST_F()
[all …]
/openbmc/phosphor-fan-presence/control/
H A Dactions.cpp18 control::Zone& zone, const Group& group) { in call_actions_based_on_timer() argument
21 auto it = zone.getTimerEvents().find(__func__); in call_actions_based_on_timer()
22 if (it != zone.getTimerEvents().end()) in call_actions_based_on_timer()
57 zone.setServices(&group); in default_floor_on_missing_owner()
58 auto services = zone.getGroupServices(&group); in default_floor_on_missing_owner()
64 zone.setFloor(zone.getDefFloor()); in default_floor_on_missing_owner()
67 zone.setFloorChangeAllow(&group, !defFloor); in default_floor_on_missing_owner()
74 zone.setServices(&group); in set_speed_on_missing_owner()
82 zone.setSpeed(speed); in set_speed_on_missing_owner()
85 zone.setActiveAllow(&group, !missingOwner); in set_speed_on_missing_owner()
[all …]
H A Dactions.hpp108 zone.setSpeed(speed); in count_state_before_speed()
134 auto speed = zone.getDefFloor(); in set_floor_from_average_sensor_value()
168 zone.setFloor(speed); in set_floor_from_average_sensor_value()
192 auto speed = zone.getCeiling(); in set_ceiling_from_average_sensor_value()
286 zone.setCeiling(speed); in set_ceiling_from_average_sensor_value()
339 zone.requestSpeedIncrease(netDelta); in set_net_increase_speed()
457 [&zone](const auto& entry) { zone.removeEvent(entry); }); in use_alternate_events_on_state()
460 [&zone](const auto& entry) { zone.initEvent(entry); }); in use_alternate_events_on_state()
489 auto speed = zone.getDefFloor(); in set_floor_from_median_sensor_value()
539 zone.setFloor(speed); in set_floor_from_median_sensor_value()
[all …]
H A Dpreconditions.cpp27 std::all_of(pg.begin(), pg.end(), [&zone](const auto& entry) { in property_states_match()
30 return zone.getPropValueVariant( in property_states_match()
50 zone.initEvent(entry); in property_states_match()
60 zone.removeEvent(entry); in property_states_match()
62 zone.setFullSpeed(); in property_states_match()
65 zone.setActiveAllow(&group, precondState); in property_states_match()
71 return [sse = std::move(sse)](auto& zone, auto& group) { in services_missing_owner() argument
73 zone.setServices(&group); in services_missing_owner()
74 const auto& services = zone.getGroupServices(&group); in services_missing_owner()
84 zone.initEvent(entry); in services_missing_owner()
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_conntrack_zones.h12 return &ct->zone; in nf_ct_zone()
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()
43 const struct nf_conntrack_zone *zone) in nf_ct_zone_add() argument
46 ct->zone = *zone; in nf_ct_zone_add()
53 return zone->dir & (1 << dir); in nf_ct_zone_matches_dir()
60 return nf_ct_zone_matches_dir(zone, dir) ? in nf_ct_zone_id()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-zoned-metadata.c226 return zone->id - zone->dev->zone_offset; in dmz_dev_zone_id()
313 if (!zone) in dmz_insert()
327 return zone; in dmz_insert()
1409 zmd->sb[0].zone = zone; in dmz_init_zone()
1630 zone->id, zone->wp_block, wp); in dmz_handle_seq_write_err()
1633 dmz_invalidate_blocks(zmd, zone, zone->wp_block, in dmz_handle_seq_write_err()
2515 zone->id, zone->weight, in dmz_validate_blocks()
2595 zone->id, zone->weight, n); in dmz_invalidate_blocks()
2911 zone = dmz_get(zmd, zmd->sb[0].zone->id + i); in dmz_ctr_metadata()
2918 if (!dmz_is_rnd(zone) && !dmz_is_cache(zone)) { in dmz_ctr_metadata()
[all …]
/openbmc/linux/fs/adfs/
H A Dmap.c179 } while (--zone > 0); in scan_map()
202 unsigned int zone; in adfs_map_statfs() local
209 } while (--zone > 0); in adfs_map_statfs()
322 for (zone = 1; zone < nzones; zone++) { in adfs_map_layout()
324 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
337 unsigned int zone; in adfs_map_read() local
339 for (zone = 0; zone < nzones; zone++) { in adfs_map_read()
340 dm[zone].dm_bh = sb_bread(sb, map_addr + zone); in adfs_map_read()
341 if (!dm[zone].dm_bh) in adfs_map_read()
350 unsigned int zone; in adfs_map_relse() local
[all …]
/openbmc/linux/kernel/power/
H A Dsnapshot.c628 struct zone *zone; in create_mem_extents() local
753 zone = bm->cur.zone; in memory_bm_find_bit()
783 if (zone == bm->cur.zone && in memory_bm_find_bit()
801 bm->cur.zone = zone; in memory_bm_find_bit()
1246 static void mark_free_pages(struct zone *zone) in mark_free_pages() argument
1301 struct zone *zone; in count_free_highmem_pages() local
1349 struct zone *zone; in count_highmem_pages() local
1417 struct zone *zone; in count_data_pages() local
1532 struct zone *zone; in copy_data_pages() local
1834 struct zone *zone; in hibernate_preallocate_memory() local
[all …]
/openbmc/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()
138 struct kvm_coalesced_mmio_zone *zone) in kvm_vm_ioctl_register_coalesced_mmio() argument
143 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_register_coalesced_mmio()
153 dev->zone = *zone; in kvm_vm_ioctl_register_coalesced_mmio()
157 zone->pio ? KVM_PIO_BUS : KVM_MMIO_BUS, in kvm_vm_ioctl_register_coalesced_mmio()
158 zone->addr, zone->size, &dev->dev); in kvm_vm_ioctl_register_coalesced_mmio()
174 struct kvm_coalesced_mmio_zone *zone) in kvm_vm_ioctl_unregister_coalesced_mmio() argument
179 if (zone->pio != 1 && zone->pio != 0) in kvm_vm_ioctl_unregister_coalesced_mmio()
185 if (zone->pio == dev->zone.pio && in kvm_vm_ioctl_unregister_coalesced_mmio()
[all …]
/openbmc/linux/include/trace/events/
H A Dcompaction.h194 TP_PROTO(struct zone *zone,
223 TP_PROTO(struct zone *zone,
232 TP_PROTO(struct zone *zone,
241 TP_PROTO(struct zone *zone, int order),
243 TP_ARGS(zone, order),
274 TP_PROTO(struct zone *zone, int order),
276 TP_ARGS(zone, order)
281 TP_PROTO(struct zone *zone, int order),
283 TP_ARGS(zone, order)
288 TP_PROTO(struct zone *zone, int order),
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H 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 …]

12345678910>>...18