Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/arch/um/kernel/
H A Dphysmem.c30 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()
/kernel/linux/linux-6.6/arch/um/kernel/
H A Dphysmem.c30 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()
/kernel/linux/linux-5.10/mm/
H A Dfrontswap.c424 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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/include/xen/
H A Dballoon.h18 unsigned long total_pages; member
/kernel/linux/linux-6.6/include/xen/
H A Dballoon.h18 unsigned long total_pages; member
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dcmm.c240 const long total_pages = totalram_pages() + __loaned_pages; in cmm_get_mpp() local
258 if (target < 0 || total_pages < min_mem_pages) in cmm_get_mpp()
266 active_pages_target = total_pages - target; in cmm_get_mpp()
269 target = total_pages - min_mem_pages; in cmm_get_mpp()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/xen/
H A Dballoon.c284 - balloon_stats.total_pages; in reserve_additional_memory()
348 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
710 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_region()
733 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/kernel/linux/linux-6.6/drivers/xen/
H A Dballoon.c268 - balloon_stats.total_pages; in reserve_additional_memory()
332 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
698 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_regions()
722 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/kernel/linux/linux-5.10/tools/vm/
H A Dpage-types.c202 static unsigned long total_pages; variable
448 total_pages, pages2mb(total_pages)); in show_summary()
659 total_pages++; in add_page()
723 total_pages++; in walk_swap()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/kernel/dma/
H A Dcontiguous.c116 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory() local
118 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
/kernel/linux/linux-6.6/kernel/dma/
H A Dcontiguous.c150 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory() local
152 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
/kernel/linux/linux-5.10/drivers/parisc/
H A Dccio-dma.c1039 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() local
1051 total_pages * 8, total_pages); in ccio_proc_info()
1055 total_pages - ioc->used_pages, ioc->used_pages, in ccio_proc_info()
1056 (int)(ioc->used_pages * 100 / total_pages)); in ccio_proc_info()
1060 ioc->res_size, total_pages); in ccio_proc_info()
/kernel/linux/linux-6.6/drivers/parisc/
H A Dccio-dma.c1035 unsigned int total_pages = ioc->res_size << 3; in ccio_proc_info() local
1047 total_pages * 8, total_pages); in ccio_proc_info()
1051 total_pages - ioc->used_pages, ioc->used_pages, in ccio_proc_info()
1052 (int)(ioc->used_pages * 100 / total_pages)); in ccio_proc_info()
1056 ioc->res_size, total_pages); in ccio_proc_info()
/kernel/linux/linux-5.10/drivers/edac/
H A Dedac_mc_sysfs.c800 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local
808 total_pages += dimm->nr_pages; in mci_size_mb_show()
812 return sprintf(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
/kernel/linux/linux-5.10/kernel/
H A Dkexec_core.c152 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()
/kernel/linux/linux-6.6/kernel/
H A Dkexec_core.c151 unsigned long total_pages = 0; in sanity_check_segment_list() local
221 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
224 if (total_pages > nr_pages / 2) in sanity_check_segment_list()
/kernel/linux/linux-6.6/drivers/edac/
H A Dedac_mc_sysfs.c824 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local
832 total_pages += dimm->nr_pages; in mci_size_mb_show()
836 return sprintf(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
/kernel/linux/linux-5.10/drivers/md/
H A Draid5-cache.c1627 int total_pages; /* total allocated pages */ member
1642 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool()
1643 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool()
1648 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool()
1649 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool()
1652 if (ctx->total_pages == 0) { in r5l_recovery_allocate_ra_pool()
1666 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool()
1673 * In normal cases, ctx->valid_pages == ctx->total_pages after the call.
1675 * ctx->valid_pages could be smaller than ctx->total_pages
1689 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Draid5-cache.c1624 int total_pages; /* total allocated pages */ member
1634 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool()
1635 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool()
1640 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool()
1641 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool()
1644 if (ctx->total_pages == 0) in r5l_recovery_allocate_ra_pool()
1656 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool()
1662 * In normal cases, ctx->valid_pages == ctx->total_pages after the call.
1664 * ctx->valid_pages could be smaller than ctx->total_pages
1680 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c156 int total_pages; in gvt_unpin_guest_page() local
160 total_pages = roundup(size, PAGE_SIZE) / PAGE_SIZE; in gvt_unpin_guest_page()
162 for (npage = 0; npage < total_pages; npage++) { in gvt_unpin_guest_page()
176 int total_pages; in gvt_pin_guest_page() local
180 total_pages = roundup(size, PAGE_SIZE) / PAGE_SIZE; in gvt_pin_guest_page()
185 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c1165 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local
1231 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz()
1232 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()

Completed in 43 milliseconds

12