| /linux/tools/testing/selftests/kvm/ |
| H A D | access_tracking_perf_test.c | 157 static void too_many_idle_pages(long idle_pages, long total_pages, int vcpu_idx) in too_many_idle_pages() argument 166 prefix, idle_pages, total_pages); in too_many_idle_pages() 170 prefix, idle_pages, total_pages); in too_many_idle_pages() 236 int find_generation(struct memcg_stats *stats, long total_pages) in find_generation() argument 242 int gen = lru_gen_find_generation(stats, total_pages * 9 / 10); in find_generation() 249 total_pages * 9 / 10); in find_generation() 260 gen = lru_gen_find_generation(stats, total_pages / 2); in find_generation() 263 total_pages / 2); in find_generation()
|
| /linux/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/include/xen/ |
| H A D | balloon.h | 18 unsigned long total_pages; member
|
| /linux/arch/s390/mm/ |
| H A D | init.c | 75 unsigned long total_pages = memblock_estimated_nr_free_pages(); in arch_setup_zero_pages() local 82 while (order > 2 && (total_pages >> 10) < (1UL << order)) in arch_setup_zero_pages()
|
| /linux/drivers/edac/ |
| H A D | edac_mc_sysfs.c | 452 int total_pages = 0, csrow_idx, j; in mci_size_mb_show() local 460 total_pages += dimm->nr_pages; in mci_size_mb_show() 464 return sysfs_emit(data, "%u\n", PAGES_TO_MiB(total_pages)); in mci_size_mb_show()
|
| /linux/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/tools/testing/selftests/mm/ |
| H A D | pagemap_ioctl.c | 244 unsigned long long mem_size, vec_size, i, total_pages = 0; in sanity_tests_sd() 470 total_pages += ret; in sanity_tests_sd() 478 total_pages += ret; in sanity_tests_sd() 486 total_pages += ret; in sanity_tests_sd() 488 ksft_test_result(total_pages == mem_size/(page_size*2), "%s Smaller max_pages\n", __func__); in sanity_tests_sd() 493 total_pages = 0; in sanity_tests_sd() 241 unsigned long long mem_size, vec_size, i, total_pages = 0; sanity_tests_sd() local
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | params.c | 1218 u32 wqebbs, total_pages, useful_space; in mlx5e_build_icosq_log_wq_sz() local 1238 total_pages = DIV_ROUND_UP(wqebbs * MLX5_SEND_WQE_BB, useful_space); in mlx5e_build_icosq_log_wq_sz() 1239 wqebbs = total_pages * (PAGE_SIZE / MLX5_SEND_WQE_BB); in mlx5e_build_icosq_log_wq_sz()
|
| /linux/drivers/scsi/ |
| H A D | mvumi.h | 420 u8 total_pages; member
|
| H A D | mvumi.c | 1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | kvmgt.c | 140 int total_pages = DIV_ROUND_UP(size, PAGE_SIZE); in gvt_pin_guest_page() local 149 for (npage = 0; npage < total_pages; npage++) { in gvt_pin_guest_page()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 881 uint64_t total_pages = ttm->num_pages; in amdgpu_ttm_gart_bind_gfx9_mqd() local 886 pages_per_xcc = total_pages; in amdgpu_ttm_gart_bind_gfx9_mqd()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | resource_tracker.c | 2723 int total_pages; in qp_get_mtt_size() local 2732 total_pages = !tot ? 1 : roundup_pow_of_two(tot); in qp_get_mtt_size() 2734 return total_pages; in qp_get_mtt_size()
|