Home
last modified time | relevance | path

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

/linux-4.1.27/mm/
Dfrontswap.c383 unsigned long total_pages = 0, total_pages_to_unuse; in __frontswap_shrink() local
387 total_pages = __frontswap_curr_pages(); in __frontswap_shrink()
388 if (total_pages <= target_pages) { in __frontswap_shrink()
393 total_pages_to_unuse = total_pages - target_pages; in __frontswap_shrink()
Dbootmem.c275 unsigned long total_pages = 0; in free_all_bootmem() local
281 total_pages += free_all_bootmem_core(bdata); in free_all_bootmem()
283 totalram_pages += total_pages; in free_all_bootmem()
285 return total_pages; in free_all_bootmem()
Dzsmalloc.c498 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local
532 total_pages += pages_used; in zs_stats_size_show()
539 total_used_objs, total_pages); in zs_stats_size_show()
Dmempolicy.c2593 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local
2596 if (largest < total_pages) { in numa_policy_init()
2597 largest = total_pages; in numa_policy_init()
2602 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
/linux-4.1.27/drivers/base/
Ddma-contiguous.c76 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-4.1.27/arch/um/kernel/
Dphysmem.c29 unsigned long iomem_pages, total_pages; in mem_total_pages() local
35 total_pages = phys_pages + iomem_pages + highmem_pages; in mem_total_pages()
37 max_mapnr = total_pages; in mem_total_pages()
/linux-4.1.27/arch/parisc/kernel/
Dpci-dma.c345 unsigned long total_pages = pcxl_res_size << 3; /* 8 bits per byte */ in proc_pcxl_dma_show() local
348 PCXL_DMA_MAP_SIZE, total_pages); in proc_pcxl_dma_show()
357 seq_printf(m, "pages %8ld %8ld %8ld %8ld%%\n", total_pages, in proc_pcxl_dma_show()
358 total_pages - pcxl_used_pages, pcxl_used_pages, in proc_pcxl_dma_show()
359 (pcxl_used_pages * 100 / total_pages)); in proc_pcxl_dma_show()
/linux-4.1.27/arch/metag/mm/
Dinit.c141 unsigned long total_pages, paddr; in bootmem_init_one_node() local
157 total_pages = bootmem_bootmap_pages(end_pfn - p->node_start_pfn); in bootmem_init_one_node()
159 paddr = memblock_alloc(total_pages << PAGE_SHIFT, PAGE_SIZE); in bootmem_init_one_node()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dcmm.c260 signed long total_pages = totalram_pages + loaned_pages; in cmm_get_mpp() local
271 if (target < 0 || total_pages < min_mem_pages) in cmm_get_mpp()
279 active_pages_target = total_pages - target; in cmm_get_mpp()
282 target = total_pages - min_mem_pages; in cmm_get_mpp()
/linux-4.1.27/arch/sh/mm/
Dinit.c224 unsigned long total_pages, paddr; in bootmem_init_one_node() local
236 total_pages = bootmem_bootmap_pages(p->node_spanned_pages); in bootmem_init_one_node()
238 paddr = memblock_alloc(total_pages << PAGE_SHIFT, PAGE_SIZE); in bootmem_init_one_node()
/linux-4.1.27/drivers/parisc/
Dccio-dma.c1027 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() local
1039 total_pages * 8, total_pages); in ccio_proc_info()
1043 total_pages - ioc->used_pages, ioc->used_pages, in ccio_proc_info()
1044 (int)(ioc->used_pages * 100 / total_pages)); in ccio_proc_info()
1048 ioc->res_size, total_pages); in ccio_proc_info()
Dsba_iommu.c1772 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() local
1784 total_pages); in sba_proc_info()
1803 total_pages - ioc->used_pages, ioc->used_pages, in sba_proc_info()
1804 (int)(ioc->used_pages * 100 / total_pages)); in sba_proc_info()
/linux-4.1.27/tools/vm/
Dpage-types.c203 static unsigned long total_pages; variable
412 total_pages, pages2mb(total_pages)); in show_summary()
586 total_pages++; in add_page()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dtracefile.c957 int total_pages = 0; in cfs_trace_get_debug_mb() local
962 total_pages += tcd->tcd_max_pages; in cfs_trace_get_debug_mb()
966 return (total_pages >> (20 - PAGE_CACHE_SHIFT)) + 1; in cfs_trace_get_debug_mb()
/linux-4.1.27/drivers/edac/
Dedac_mc_sysfs.c761 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local
769 total_pages += dimm->nr_pages; in mci_size_mb_show()
773 return sprintf(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
/linux-4.1.27/drivers/scsi/
Dmvumi.h427 u8 total_pages; member
Dmvumi.c1163 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c2488 int total_pages; in qp_get_mtt_size() local
2495 total_pages = in qp_get_mtt_size()
2499 return total_pages; in qp_get_mtt_size()