| /Linux-v5.4/arch/um/kernel/ |
| D | physmem.c | 30 unsigned long iomem_pages, total_pages; in mem_total_pages() local 36 total_pages = phys_pages + iomem_pages + highmem_pages; in mem_total_pages() 38 max_mapnr = total_pages; in mem_total_pages()
|
| /Linux-v5.4/arch/parisc/kernel/ |
| D | pci-dma.c | 340 unsigned long total_pages = pcxl_res_size << 3; /* 8 bits per byte */ in proc_pcxl_dma_show() local 343 PCXL_DMA_MAP_SIZE, total_pages); in proc_pcxl_dma_show() 352 seq_printf(m, "pages %8ld %8ld %8ld %8ld%%\n", total_pages, in proc_pcxl_dma_show() 353 total_pages - pcxl_used_pages, pcxl_used_pages, in proc_pcxl_dma_show() 354 (pcxl_used_pages * 100 / total_pages)); in proc_pcxl_dma_show()
|
| /Linux-v5.4/mm/ |
| D | frontswap.c | 424 unsigned long total_pages = 0, total_pages_to_unuse; in __frontswap_shrink() local 428 total_pages = __frontswap_curr_pages(); in __frontswap_shrink() 429 if (total_pages <= target_pages) { in __frontswap_shrink() 434 total_pages_to_unuse = total_pages - target_pages; in __frontswap_shrink()
|
| D | mempolicy.c | 2739 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local 2742 if (largest < total_pages) { in numa_policy_init() 2743 largest = total_pages; in numa_policy_init() 2748 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
|
| D | zsmalloc.c | 599 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local 635 total_pages += pages_used; in zs_stats_size_show() 643 total_used_objs, total_pages, "", total_freeable); in zs_stats_size_show()
|
| D | filemap.c | 298 int total_pages = 0; in page_cache_delete_batch() local 337 total_pages++; in page_cache_delete_batch() 339 mapping->nrpages -= total_pages; in page_cache_delete_batch()
|
| /Linux-v5.4/kernel/dma/ |
| D | contiguous.c | 76 unsigned long total_pages = 0; in cma_early_percent_memory() local 83 total_pages += memblock_region_memory_end_pfn(reg) - in cma_early_percent_memory() 86 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
|
| /Linux-v5.4/drivers/xen/ |
| D | balloon.c | 295 - balloon_stats.total_pages; in reserve_additional_memory() 359 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory() 684 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_region() 705 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
|
| /Linux-v5.4/include/xen/ |
| D | balloon.h | 16 unsigned long total_pages; member
|
| /Linux-v5.4/arch/powerpc/platforms/pseries/ |
| D | cmm.c | 280 signed long total_pages = totalram_pages() + loaned_pages; in cmm_get_mpp() local 291 if (target < 0 || total_pages < min_mem_pages) in cmm_get_mpp() 299 active_pages_target = total_pages - target; in cmm_get_mpp() 302 target = total_pages - min_mem_pages; in cmm_get_mpp()
|
| /Linux-v5.4/drivers/parisc/ |
| D | ccio-dma.c | 1036 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() local 1048 total_pages * 8, total_pages); in ccio_proc_info() 1052 total_pages - ioc->used_pages, ioc->used_pages, in ccio_proc_info() 1053 (int)(ioc->used_pages * 100 / total_pages)); in ccio_proc_info() 1057 ioc->res_size, total_pages); in ccio_proc_info()
|
| D | sba_iommu.c | 1778 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() local 1790 total_pages); in sba_proc_info() 1809 total_pages - ioc->used_pages, ioc->used_pages, in sba_proc_info() 1810 (int)(ioc->used_pages * 100 / total_pages)); in sba_proc_info()
|
| /Linux-v5.4/tools/vm/ |
| D | page-types.c | 200 static unsigned long total_pages; variable 446 total_pages, pages2mb(total_pages)); in show_summary() 657 total_pages++; in add_page() 721 total_pages++; in walk_swap()
|
| /Linux-v5.4/kernel/ |
| D | kexec_core.c | 152 unsigned long total_pages = 0; in sanity_check_segment_list() local 222 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list() 225 if (total_pages > nr_pages / 2) in sanity_check_segment_list()
|
| /Linux-v5.4/drivers/gpu/drm/i915/gvt/ |
| D | kvmgt.c | 123 int total_pages; in gvt_unpin_guest_page() local 127 total_pages = roundup(size, PAGE_SIZE) / PAGE_SIZE; in gvt_unpin_guest_page() 129 for (npage = 0; npage < total_pages; npage++) { in gvt_unpin_guest_page() 142 int total_pages; in gvt_pin_guest_page() local 146 total_pages = roundup(size, PAGE_SIZE) / PAGE_SIZE; in gvt_pin_guest_page() 151 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
|
| /Linux-v5.4/drivers/md/ |
| D | raid5-cache.c | 1629 int total_pages; /* total allocated pages */ member 1644 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool() 1645 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool() 1650 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool() 1651 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool() 1654 if (ctx->total_pages == 0) { in r5l_recovery_allocate_ra_pool() 1668 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool() 1691 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
|
| /Linux-v5.4/drivers/edac/ |
| D | edac_mc_sysfs.c | 818 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local 826 total_pages += dimm->nr_pages; in mci_size_mb_show() 830 return sprintf(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
|
| /Linux-v5.4/drivers/scsi/ |
| D | mvumi.h | 411 u8 total_pages; member
|
| D | mvumi.c | 1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
|
| /Linux-v5.4/fs/ceph/ |
| D | addr.c | 699 int num_pages, total_pages = 0; in writepages_finish() local 735 total_pages += num_pages; in writepages_finish() 765 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
| D | resource_tracker.c | 2729 int total_pages; in qp_get_mtt_size() local 2738 total_pages = !tot ? 1 : roundup_pow_of_two(tot); in qp_get_mtt_size() 2740 return total_pages; in qp_get_mtt_size()
|