Searched refs:usage (Results 1 – 7 of 7) sorted by relevance
/mm/ |
D | sparse.c | 235 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init() 329 struct mem_section_usage *usage, unsigned long flags) in sparse_init_one_section() argument 334 ms->usage = usage; in sparse_init_one_section() 352 struct mem_section_usage *usage; in sparse_early_usemaps_alloc_pgdat_section() local 369 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section() 370 if (!usage && limit) { in sparse_early_usemaps_alloc_pgdat_section() 374 return usage; in sparse_early_usemaps_alloc_pgdat_section() 378 struct mem_section_usage *usage) in check_usemap_section_nr() argument 392 usemap_snr = pfn_to_section_nr(__pa(usage) >> PAGE_SHIFT); in check_usemap_section_nr() 428 struct mem_section_usage *usage) in check_usemap_section_nr() argument [all …]
|
D | page_counter.c | 17 unsigned long usage) in propagate_protected_usage() argument 28 protected = min(usage, min); in propagate_protected_usage() 37 protected = min(usage, low); in propagate_protected_usage() 54 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel() 74 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_charge() 116 new = atomic_long_add_return(nr_pages, &c->usage); in page_counter_try_charge() 118 atomic_long_sub(nr_pages, &c->usage); in page_counter_try_charge() 173 long usage; in page_counter_set_max() local 186 usage = atomic_long_read(&counter->usage); in page_counter_set_max() 188 if (usage > nr_pages) in page_counter_set_max() [all …]
|
D | swapfile.c | 788 unsigned char usage, int nr, in scan_swap_map_slots() argument 904 WRITE_ONCE(si->swap_map[offset], usage); in scan_swap_map_slots() 1055 unsigned char usage) in scan_swap_map() argument 1060 n_ret = scan_swap_map_slots(si, usage, 1, &entry); in scan_swap_map() 1256 unsigned char usage) in __swap_entry_free_locked() argument 1266 if (usage == SWAP_HAS_CACHE) { in __swap_entry_free_locked() 1285 usage = count | has_cache; in __swap_entry_free_locked() 1286 if (usage) in __swap_entry_free_locked() 1287 WRITE_ONCE(p->swap_map[offset], usage); in __swap_entry_free_locked() 1291 return usage; in __swap_entry_free_locked() [all …]
|
D | memory_hotplug.c | 177 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 197 usage = ms->usage; in register_page_bootmem_info_section() 198 page = virt_to_page(usage); in register_page_bootmem_info_section() 212 struct mem_section_usage *usage; in register_page_bootmem_info_section() local 221 usage = ms->usage; in register_page_bootmem_info_section() 222 page = virt_to_page(usage); in register_page_bootmem_info_section()
|
D | memcontrol.c | 2546 static u64 calculate_overage(unsigned long usage, unsigned long high) in calculate_overage() argument 2550 if (usage <= high) in calculate_overage() 2559 overage = usage - high; in calculate_overage() 4231 unsigned long usage; in __mem_cgroup_threshold() local 4243 usage = mem_cgroup_usage(memcg, swap); in __mem_cgroup_threshold() 4258 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold() 4270 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold() 4331 unsigned long usage; in __mem_cgroup_usage_register_event() local 4342 usage = mem_cgroup_usage(memcg, false); in __mem_cgroup_usage_register_event() 4345 usage = mem_cgroup_usage(memcg, true); in __mem_cgroup_usage_register_event() [all …]
|
D | Kconfig.debug | 144 There is no runtime or memory usage effect of this option
|
D | Kconfig | 837 be used to help understand percpu memory usage.
|