Home
last modified time | relevance | path

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

/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.c1033 preservation->total_pages = vm->nr_pages; in kho_preserve_vmalloc()
1081 unsigned long total_pages, contig_pages; in kho_restore_vmalloc() local
1092 total_pages = preservation->total_pages; in kho_restore_vmalloc()
1093 pages = kvmalloc_objs(*pages, total_pages); in kho_restore_vmalloc()
1107 if (idx + contig_pages > total_pages) in kho_restore_vmalloc()
1127 if (idx != total_pages) in kho_restore_vmalloc()
1130 area = __get_vm_area_node(total_pages * PAGE_SIZE, align, shift, in kho_restore_vmalloc()
1143 area->nr_pages = total_pages; in kho_restore_vmalloc()
/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()
757 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/linux/kernel/dma/
H A Dcontiguous.c154 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory() local
156 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
/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/drivers/edac/
H A Dedac_mc_sysfs.c452 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 Dcma_sysfs.c72 CMA_ATTR_RO(total_pages);
H A Dzsmalloc.c524 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local
564 total_pages += pages_used; in zs_stats_size_show()
575 total_objs, total_used_objs, total_pages, "", in zs_stats_size_show()
H A Dmempolicy.c3359 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local
3362 if (largest < total_pages) { in numa_policy_init()
3363 largest = total_pages; in numa_policy_init()
3368 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.c5976 unsigned long total_pages; in zone_highsize() local
5984 total_pages = low_wmark_pages(zone); in zone_highsize()
5991 total_pages = zone_managed_pages(zone) / high_fraction; in zone_highsize()
6005 high = total_pages / nr_split_cpus; in zone_highsize()
/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/md/
H A Draid5-cache.c1622 int total_pages; /* total allocated pages */ member
1632 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool()
1633 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool()
1638 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool()
1639 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool()
1642 if (ctx->total_pages == 0) in r5l_recovery_allocate_ra_pool()
1654 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool()
1678 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
/linux/drivers/scsi/
H A Dmvumi.h420 u8 total_pages; member
H A Dmvumi.c1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
/linux/fs/proc/
H A Dtask_mmu.c2653 unsigned long n_pages, total_pages; in pagemap_scan_output() local
2662 if (check_add_overflow(p->found_pages, n_pages, &total_pages) || in pagemap_scan_output()
2663 total_pages > p->arg.max_pages) { in pagemap_scan_output()
2664 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.c852 uint64_t total_pages = ttm->num_pages; in amdgpu_ttm_gart_bind_gfx9_mqd() local
858 pages_per_xcc = total_pages; in amdgpu_ttm_gart_bind_gfx9_mqd()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c2723 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()