| /linux/tools/testing/selftests/kvm/ |
| H A D | access_tracking_perf_test.c | 157 static void too_many_idle_pages(long idle_pages, long total_pages, int vcpu_idx) in too_many_idle_pages() argument 166 prefix, idle_pages, total_pages); in too_many_idle_pages() 170 prefix, idle_pages, total_pages); in too_many_idle_pages() 236 int find_generation(struct memcg_stats *stats, long total_pages) in find_generation() argument 242 int gen = lru_gen_find_generation(stats, total_pages * 9 / 10); in find_generation() 249 total_pages * 9 / 10); in find_generation() 260 gen = lru_gen_find_generation(stats, total_pages / 2); in find_generation() 263 total_pages / 2); in find_generation()
|
| /linux/arch/parisc/kernel/ |
| H A D | pci-dma.c | 344 unsigned long total_pages = pcxl_res_size << 3; /* 8 bits per byte */ in proc_pcxl_dma_show() local 347 PCXL_DMA_MAP_SIZE, total_pages); in proc_pcxl_dma_show() 356 seq_printf(m, "pages %8ld %8ld %8ld %8ld%%\n", total_pages, in proc_pcxl_dma_show() 357 total_pages - pcxl_used_pages, pcxl_used_pages, in proc_pcxl_dma_show() 358 (pcxl_used_pages * 100 / total_pages)); in proc_pcxl_dma_show()
|
| /linux/kernel/liveupdate/ |
| H A D | kexec_handover.c | 1100 preservation->total_pages = vm->nr_pages; 1149 unsigned long total_pages, contig_pages; in kho_restore_vmalloc() 1160 total_pages = preservation->total_pages; in kho_restore_vmalloc() 1161 pages = kvmalloc_objs(*pages, total_pages); in kho_restore_vmalloc() 1175 if (idx + contig_pages > total_pages) in kho_restore_vmalloc() 1195 if (idx != total_pages) 1198 area = __get_vm_area_node(total_pages * PAGE_SIZE, align, shift, 1212 area->nr_pages = total_pages; in kho_alloc_preserve() 1218 area->addr = kasan_unpoison_vmalloc(area->addr, total_pages * PAGE_SIZ in kho_alloc_preserve() 1114 unsigned long total_pages, contig_pages; kho_restore_vmalloc() local [all...] |
| /linux/include/xen/ |
| H A D | balloon.h | 18 unsigned long total_pages; member
|
| /linux/include/linux/kho/abi/ |
| H A D | kexec_handover.h | 175 unsigned int total_pages; member
|
| /linux/drivers/xen/ |
| H A D | balloon.c | 272 - balloon_stats.total_pages; in reserve_additional_memory() 336 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory() 757 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
|
| /linux/tools/mm/ |
| H A D | page-types.c | 202 static unsigned long total_pages; variable 448 total_pages, pages2mb(total_pages)); in show_summary() 661 total_pages++; in add_page() 725 total_pages++; in walk_swap()
|
| /linux/drivers/edac/ |
| H A D | edac_mc_sysfs.c | 452 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local 460 total_pages += dimm->nr_pages; in mci_size_mb_show() 464 return sysfs_emit(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
|
| /linux/mm/ |
| H A D | cma_sysfs.c | 72 CMA_ATTR_RO(total_pages);
|
| H A D | mempolicy.c | 3365 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local 3368 if (largest < total_pages) { in numa_policy_init() 3369 largest = total_pages; in numa_policy_init() 3374 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
|
| H A D | filemap.c | 283 long total_pages = 0; in page_cache_delete_batch() 315 total_pages += folio_nr_pages(folio); in page_cache_delete_batch() 317 mapping->nrpages -= total_pages; in page_cache_delete_batch() 284 long total_pages = 0; page_cache_delete_batch() local
|
| H A D | page_alloc.c | 6030 unsigned long total_pages; in per_cpu_pages_init() 6038 total_pages = low_wmark_pages(zone); in __zone_set_pageset_high_and_batch() 6045 total_pages = zone_managed_pages(zone) / high_fraction; in __zone_set_pageset_high_and_batch() 6059 high = total_pages / nr_split_cpus; in zone_set_pageset_high_and_batch() 5947 unsigned long total_pages; zone_highsize() local
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pagemap_ioctl.c | 241 unsigned long long mem_size, vec_size, i, total_pages = 0; in sanity_tests_sd() 467 total_pages += ret; in sanity_tests_sd() 475 total_pages += ret; in sanity_tests_sd() 483 total_pages += ret; in sanity_tests_sd() 485 ksft_test_result(total_pages == mem_size/(page_size*2), "%s Smaller max_pages\n", __func__); in sanity_tests_sd() 490 total_pages = 0; in sanity_tests_sd() 239 unsigned long long mem_size, vec_size, i, total_pages = 0; sanity_tests_sd() local
|
| /linux/drivers/parisc/ |
| H A D | sba_iommu.c | 1789 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() local 1801 total_pages); in sba_proc_info() 1820 total_pages - ioc->used_pages, ioc->used_pages, in sba_proc_info() 1821 (int)(ioc->used_pages * 100 / total_pages)); in sba_proc_info()
|
| /linux/drivers/scsi/ |
| H A D | mvumi.h | 420 u8 total_pages; member
|
| H A D | mvumi.c | 1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
|
| /linux/fs/ceph/ |
| H A D | addr.c | 889 int num_pages, total_pages = 0; in writepages_finish() local 933 total_pages += num_pages; in writepages_finish() 980 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | kvmgt.c | 140 int total_pages = DIV_ROUND_UP(size, PAGE_SIZE); in gvt_pin_guest_page() local 149 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 850 * total_pages is constructed as MQD0+CtrlStack0 + MQD1+CtrlStack1 + ... 860 uint64_t total_pages = ttm->num_pages; in amdgpu_ttm_gart_bind_gfx9_mqd() local 865 pages_per_xcc = total_pages; in amdgpu_ttm_gart_bind_gfx9_mqd()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | resource_tracker.c | 2723 int total_pages; in qp_get_mtt_size() local 2732 total_pages = !tot ? 1 : roundup_pow_of_two(tot); in qp_get_mtt_size() 2734 return total_pages; in qp_get_mtt_size()
|