| /linux-6.15/arch/parisc/kernel/ |
| H A D | pci-dma.c | 344 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.15/arch/powerpc/platforms/pseries/ |
| H A D | cmm.c | 237 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.15/include/xen/ |
| H A D | balloon.h | 18 unsigned long total_pages; member
|
| /linux-6.15/arch/s390/mm/ |
| H A D | init.c | 75 unsigned long total_pages = memblock_estimated_nr_free_pages(); in setup_zero_pages() local 82 while (order > 2 && (total_pages >> 10) < (1UL << order)) in setup_zero_pages()
|
| /linux-6.15/drivers/parisc/ |
| H A D | ccio-dma.c | 1035 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()
|
| H A D | sba_iommu.c | 1791 int total_pages = (int) (ioc->res_size << 3); /* 8 bits per byte */ in sba_proc_info() local 1803 total_pages); in sba_proc_info() 1822 total_pages - ioc->used_pages, ioc->used_pages, in sba_proc_info() 1823 (int)(ioc->used_pages * 100 / total_pages)); in sba_proc_info()
|
| /linux-6.15/include/linux/ |
| H A D | zpool.h | 77 u64 (*total_pages)(void *pool); member
|
| /linux-6.15/drivers/xen/ |
| H A D | balloon.c | 272 - balloon_stats.total_pages; in reserve_additional_memory() 336 balloon_stats.total_pages += balloon_hotplug; in reserve_additional_memory() 740 balloon_stats.total_pages = balloon_stats.current_pages; in balloon_init()
|
| /linux-6.15/kernel/dma/ |
| H A D | contiguous.c | 143 unsigned long total_pages = PHYS_PFN(memblock_phys_mem_size()); in cma_early_percent_memory() local 145 return (total_pages * CONFIG_CMA_SIZE_PERCENTAGE / 100) << PAGE_SHIFT; in cma_early_percent_memory()
|
| /linux-6.15/tools/mm/ |
| H A D | page-types.c | 202 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-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-mm-cma | 33 What: /sys/kernel/mm/cma/<cma-heap-name>/total_pages
|
| /linux-6.15/mm/ |
| H A D | cma_sysfs.c | 72 CMA_ATTR_RO(total_pages);
|
| H A D | zpool.c | 322 return zpool->driver->total_pages(zpool->pool); in zpool_get_total_pages()
|
| H A D | zsmalloc.c | 511 .total_pages = zs_zpool_total_pages, 636 unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0; in zs_stats_size_show() local 676 total_pages += pages_used; in zs_stats_size_show() 687 total_objs, total_used_objs, total_pages, "", in zs_stats_size_show()
|
| H A D | mempolicy.c | 3169 unsigned long total_pages = node_present_pages(nid); in numa_policy_init() local 3172 if (largest < total_pages) { in numa_policy_init() 3173 largest = total_pages; in numa_policy_init() 3178 if ((total_pages << PAGE_SHIFT) >= (16 << 20)) in numa_policy_init()
|
| /linux-6.15/kernel/ |
| H A D | kexec_core.c | 112 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-6.15/drivers/edac/ |
| H A D | edac_mc_sysfs.c | 823 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local 831 total_pages += dimm->nr_pages; in mci_size_mb_show() 835 return sysfs_emit(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
|
| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | pagemap_ioctl.c | 238 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-6.15/drivers/md/ |
| H A D | raid5-cache.c | 1622 int total_pages; /* total allocated pages */ member 1632 ctx->total_pages = 0; in r5l_recovery_allocate_ra_pool() 1633 while (ctx->total_pages < R5L_RECOVERY_PAGE_POOL_SIZE) { in r5l_recovery_allocate_ra_pool() 1638 ctx->ra_pool[ctx->total_pages] = page; in r5l_recovery_allocate_ra_pool() 1639 ctx->total_pages += 1; in r5l_recovery_allocate_ra_pool() 1642 if (ctx->total_pages == 0) in r5l_recovery_allocate_ra_pool() 1654 for (i = 0; i < ctx->total_pages; ++i) in r5l_recovery_free_ra_pool() 1678 while (ctx->valid_pages < ctx->total_pages) { in r5l_recovery_fetch_ra_pool()
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | encodings.c | 446 block_count_t total_pages = 0; in vdo_compute_new_forest_pages() local 457 total_pages += (new_pages * root_count); in vdo_compute_new_forest_pages() 460 return total_pages; in vdo_compute_new_forest_pages()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 1130 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local 1196 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz() 1197 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()
|
| /linux-6.15/drivers/scsi/ |
| H A D | mvumi.h | 420 u8 total_pages; member
|
| /linux-6.15/fs/proc/ |
| H A D | task_mmu.c | 2391 unsigned long n_pages, total_pages; in pagemap_scan_output() local 2400 if (check_add_overflow(p->found_pages, n_pages, &total_pages) || in pagemap_scan_output() 2401 total_pages > p->arg.max_pages) { in pagemap_scan_output() 2402 size_t n_too_much = total_pages - p->arg.max_pages; in pagemap_scan_output()
|
| /linux-6.15/fs/ceph/ |
| H A D | addr.c | 869 int num_pages, total_pages = 0; in writepages_finish() local 913 total_pages += num_pages; in writepages_finish() 955 ceph_put_wrbuffer_cap_refs(ci, total_pages, snapc); in writepages_finish()
|
| /linux-6.15/drivers/gpu/drm/i915/gvt/ |
| H A D | kvmgt.c | 139 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()
|