Home
last modified time | relevance | path

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

/linux/arch/um/kernel/
H A Dphysmem.c27 unsigned long phys_pages, iomem_pages, total_pages; in mem_total_pages() local
32 total_pages = phys_pages + iomem_pages; in mem_total_pages()
34 max_mapnr = total_pages; in mem_total_pages()
/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/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/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()
701 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_regions()
724 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/linux/include/xen/
H A Dballoon.h18 unsigned long total_pages; member
/linux/kernel/dma/
H A Dcontiguous.c144 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory() local
146 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/kernel/
H A Dkexec_core.c112 unsigned long total_pages = 0; in sanity_check_segment_list() local
182 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
185 if (total_pages > nr_pages / 2) in sanity_check_segment_list()
/linux/tools/testing/selftests/mm/
H A Dpagemap_ioctl.c238 unsigned long long mem_size, vec_size, i, total_pages = 0; in sanity_tests_sd() local
464 total_pages += ret; in sanity_tests_sd()
472 total_pages += ret; in sanity_tests_sd()
480 total_pages += ret; in sanity_tests_sd()
482 ksft_test_result(total_pages == mem_size/(page_size*2), "%s Smaller max_pages\n", __func__); in sanity_tests_sd()
487 total_pages = 0; in sanity_tests_sd()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dparams.c1121 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local
1187 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz()
1188 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()
/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.c2367 unsigned long n_pages, total_pages; in pagemap_scan_output() local
2376 if (check_add_overflow(p->found_pages, n_pages, &total_pages) || in pagemap_scan_output()
2377 total_pages > p->arg.max_pages) { in pagemap_scan_output()
2378 size_t n_too_much = total_pages - p->arg.max_pages; in pagemap_scan_output()
/linux/mm/
H A Dmempolicy.c3138 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local
3141 if (largest < total_pages) { in numa_policy_init()
3142 largest = total_pages; in numa_policy_init()
3147 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
H A Dfilemap.c281 long total_pages = 0; in page_cache_delete_batch() local
313 total_pages += folio_nr_pages(folio); in page_cache_delete_batch()
315 mapping->nrpages -= total_pages; in page_cache_delete_batch()
H A Dpage_alloc.c5436 unsigned long total_pages; in zone_highsize() local
5444 total_pages = low_wmark_pages(zone); in zone_highsize()
5451 total_pages = zone_managed_pages(zone) / high_fraction; in zone_highsize()
5465 high = total_pages / nr_split_cpus; in zone_highsize()
H A Dz3fold.c1420 .total_pages = z3fold_zpool_total_pages,
/linux/fs/ceph/
H A Daddr.c862 int num_pages, total_pages = 0; in writepages_finish() local
905 total_pages += num_pages; in writepages_finish()
941 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
/linux/drivers/gpu/drm/i915/gvt/
H A Dkvmgt.c139 int total_pages = DIV_ROUND_UP(size, PAGE_SIZE); in gvt_pin_guest_page() local
148 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ttm.c867 uint64_t total_pages = ttm->num_pages; in amdgpu_ttm_gart_bind_gfx9_mqd() local
873 pages_per_xcc = total_pages; in amdgpu_ttm_gart_bind_gfx9_mqd()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dresource_tracker.c2730 int total_pages; in qp_get_mtt_size() local
2739 total_pages = !tot ? 1 : roundup_pow_of_two(tot); in qp_get_mtt_size()
2741 return total_pages; in qp_get_mtt_size()