Home
last modified time | relevance | path

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

/linux-6.1.9/arch/um/kernel/
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()
/linux-6.1.9/arch/parisc/kernel/
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-6.1.9/arch/powerpc/platforms/pseries/
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-6.1.9/include/xen/
Dballoon.h18 unsigned long total_pages; member
/linux-6.1.9/drivers/xen/
Dballoon.c286 - balloon_stats.total_pages; in reserve_additional_memory()
350 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory()
716 balloon_stats.total_pages += extra_pfn_end - start_pfn; in balloon_add_regions()
740 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
/linux-6.1.9/drivers/infiniband/hw/erdma/
Derdma_main.c135 int total_pages, type0, type1; in erdma_dwqe_resource_init() local
145 total_pages = dev->attrs.grp_num * 4; in erdma_dwqe_resource_init()
152 type1 = total_pages / 3; in erdma_dwqe_resource_init()
153 type0 = total_pages - type1 - 1; in erdma_dwqe_resource_init()
/linux-6.1.9/kernel/dma/
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()
/linux-6.1.9/drivers/parisc/
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()
Dsba_iommu.c1787 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() local
1799 total_pages); in sba_proc_info()
1818 total_pages - ioc->used_pages, ioc->used_pages, in sba_proc_info()
1819 (int)(ioc->used_pages * 100 / total_pages)); in sba_proc_info()
/linux-6.1.9/tools/vm/
Dpage-types.c204 static unsigned long total_pages; variable
450 total_pages, pages2mb(total_pages)); in show_summary()
665 total_pages++; in add_page()
729 total_pages++; in walk_swap()
/linux-6.1.9/kernel/
Dkexec_core.c153 unsigned long total_pages = 0; in sanity_check_segment_list() local
223 total_pages += PAGE_COUNT(image->segment[i].memsz); in sanity_check_segment_list()
226 if (total_pages > nr_pages / 2) in sanity_check_segment_list()
/linux-6.1.9/drivers/edac/
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()
/linux-6.1.9/drivers/md/
Draid5-cache.c1623 int total_pages; /* total allocated pages */ member
1633 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool()
1634 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool()
1639 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool()
1640 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool()
1643 if (ctx->total_pages == 0) in r5l_recovery_allocate_ra_pool()
1655 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool()
1679 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dparams.c1093 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local
1159 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz()
1160 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()
/linux-6.1.9/drivers/scsi/
Dmvumi.h420 u8 total_pages; member
Dmvumi.c1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
/linux-6.1.9/mm/
Dzsmalloc.c586 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local
622 total_pages += pages_used; in zs_stats_size_show()
630 total_used_objs, total_pages, "", total_freeable); in zs_stats_size_show()
Dmempolicy.c2933 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local
2936 if (largest < total_pages) { in numa_policy_init()
2937 largest = total_pages; in numa_policy_init()
2942 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
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()
Dpage_alloc.c7118 unsigned long total_pages; in zone_highsize() local
7126 total_pages = low_wmark_pages(zone); in zone_highsize()
7133 total_pages = zone_managed_pages(zone) / percpu_pagelist_high_fraction; in zone_highsize()
7147 high = total_pages / nr_split_cpus; in zone_highsize()
/linux-6.1.9/fs/ceph/
Daddr.c702 int num_pages, total_pages = 0; in writepages_finish() local
743 total_pages += num_pages; in writepages_finish()
773 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dkvmgt.c141 int total_pages = DIV_ROUND_UP(size, PAGE_SIZE); in gvt_pin_guest_page() local
150 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
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()