Home
last modified time | relevance | path

Searched refs:total_pages (Results 1 – 25 of 26) sorted by relevance

12

/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c157 static void too_many_idle_pages(long idle_pages, long total_pages, int vcpu_idx) in too_many_idle_pages()
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()
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()
156 too_many_idle_pages(long idle_pages,long total_pages,int vcpu_idx) too_many_idle_pages() argument
235 find_generation(struct memcg_stats * stats,long total_pages) find_generation() argument
/linux/arch/parisc/kernel/
H A Dpci-dma.c344 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 Dkexec_handover.c1021 preservation->total_pages = vm->nr_pages; in kho_preserve_vmalloc()
1069 unsigned long total_pages, contig_pages; in kho_restore_vmalloc() local
1080 total_pages = preservation->total_pages; in kho_restore_vmalloc()
1081 pages = kvmalloc_array(total_pages, sizeof(*pages), GFP_KERNEL); in kho_restore_vmalloc()
1095 if (idx + contig_pages > total_pages) in kho_restore_vmalloc()
1115 if (idx != total_pages) in kho_restore_vmalloc()
1118 area = __get_vm_area_node(total_pages * PAGE_SIZE, align, shift, in kho_restore_vmalloc()
1131 area->nr_pages = total_pages; in kho_restore_vmalloc()
/linux/arch/powerpc/platforms/pseries/
H A Dcmm.c237 const long total_pages = totalram_pages() + __loaned_pages; in cmm_get_mpp() local
255 if (target < 0 || total_pages < min_mem_pages) in cmm_get_mpp()
263 active_pages_target = total_pages - target; in cmm_get_mpp()
266 target = total_pages - min_mem_pages; in cmm_get_mpp()
/linux/arch/s390/mm/
H A Dinit.c74 unsigned long total_pages = memblock_estimated_nr_free_pages(); in setup_zero_pages() local
81 while (order > 2 && (total_pages >> 10) < (1UL << order)) in setup_zero_pages()
/linux/include/xen/
H A Dballoon.h18 unsigned long total_pages; member
/linux/drivers/parisc/
H A Dccio-dma.c1037 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() local
1049 total_pages * 8, total_pages); in ccio_proc_info()
1053 total_pages - ioc->used_pages, ioc->used_pages, in ccio_proc_info()
1054 (int)(ioc->used_pages * 100 / total_pages)); in ccio_proc_info()
1058 ioc->res_size, total_pages); in ccio_proc_info()
H A Dsba_iommu.c1789 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/xen/
H A Dballoon.c272 - balloon_stats.total_pages; in reserve_additional_memory()
336 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
743 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/linux/kernel/dma/
H A Dcontiguous.c144 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory()
146 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
143 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); cma_early_percent_memory() local
/linux/tools/mm/
H A Dpage-types.c202 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/include/linux/
H A Dkexec_handover.h37 unsigned int total_pages; member
/linux/tools/testing/selftests/mm/
H A Dpagemap_ioctl.c239 unsigned long long mem_size, vec_size, i, total_pages = 0; in sanity_tests_sd() local
465 total_pages += ret; in sanity_tests_sd()
473 total_pages += ret; in sanity_tests_sd()
481 total_pages += ret; in sanity_tests_sd()
483 ksft_test_result(total_pages == mem_size/(page_size*2), "%s Smaller max_pages\n", __func__); in sanity_tests_sd()
488 total_pages = 0; in sanity_tests_sd()
/linux/kernel/
H A Dkexec_core.c115 unsigned long total_pages = 0; in sanity_check_segment_list() local
185 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
188 if (total_pages > nr_pages / 2) in sanity_check_segment_list()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c1122 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local
1188 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz()
1189 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()
/linux/drivers/md/dm-vdo/
H A Dencodings.c449 block_count_t total_pages = 0; in vdo_compute_new_forest_pages() local
460 total_pages += (new_pages * root_count); in vdo_compute_new_forest_pages()
463 return total_pages; in vdo_compute_new_forest_pages()
/linux/drivers/scsi/
H A Dmvumi.h420 u8 total_pages; member
/linux/mm/
H A Dzsmalloc.c554 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local
594 total_pages += pages_used; in zs_stats_size_show()
605 total_objs, total_used_objs, total_pages, "", in zs_stats_size_show()
H A Dmempolicy.c3361 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local
3364 if (largest < total_pages) { in numa_policy_init()
3365 largest = total_pages; in numa_policy_init()
3370 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
H A Dfilemap.c283 long total_pages = 0; in page_cache_delete_batch() local
315 total_pages += folio_nr_pages(folio); in page_cache_delete_batch()
317 mapping->nrpages -= total_pages; in page_cache_delete_batch()
H A Dpage_alloc.c5938 unsigned long total_pages; in zone_highsize() local
5946 total_pages = low_wmark_pages(zone); in zone_highsize()
5953 total_pages = zone_managed_pages(zone) / high_fraction; in zone_highsize()
5967 high = total_pages / nr_split_cpus; in zone_highsize()
/linux/fs/proc/
H A Dtask_mmu.c2640 unsigned long n_pages, total_pages; in pagemap_scan_output() local
2649 if (check_add_overflow(p->found_pages, n_pages, &total_pages) || in pagemap_scan_output()
2650 total_pages > p->arg.max_pages) { in pagemap_scan_output()
2651 size_t n_too_much = total_pages - p->arg.max_pages; in pagemap_scan_output()
/linux/fs/ceph/
H A Daddr.c880 int num_pages, total_pages = 0; in writepages_finish() local
924 total_pages += num_pages; in writepages_finish()
966 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
/linux/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c140 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 Damdgpu_ttm.c838 uint64_t total_pages = ttm->num_pages; in amdgpu_ttm_gart_bind_gfx9_mqd() local
844 pages_per_xcc = total_pages; in amdgpu_ttm_gart_bind_gfx9_mqd()

12