Home
last modified time | relevance | path

Searched refs:totalram_pages (Results 1 – 25 of 52) sorted by relevance

123

/openbmc/linux/fs/ntfs/
H A Dmalloc.h36 if (likely((size >> PAGE_SHIFT) < totalram_pages())) in __ntfs_malloc()
/openbmc/linux/drivers/net/wireguard/
H A Dratelimiter.c173 table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 : in wg_ratelimiter_init()
175 (totalram_pages() << PAGE_SHIFT) / in wg_ratelimiter_init()
/openbmc/linux/drivers/char/agp/
H A Dbackend.c120 memory = totalram_pages() >> (20 - PAGE_SHIFT); in agp_find_max()
122 memory = totalram_pages() << (PAGE_SHIFT - 20); in agp_find_max()
/openbmc/linux/security/integrity/ima/
H A Dima_kexec.c106 ((kexec_segment_size >> PAGE_SHIFT) > totalram_pages() / 2)) { in ima_add_kexec_buffer()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dcmm.c237 const long total_pages = totalram_pages() + __loaned_pages; in cmm_get_mpp()
275 oom_freed_pages, totalram_pages()); in cmm_get_mpp()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_gmrid_manager.c85 const unsigned long max_graphics_pages = totalram_pages() / 2; in vmw_gmrid_man_get_node()
/openbmc/linux/arch/s390/mm/
H A Dinit.c73 while (order > 2 && (totalram_pages() >> 10) < (1UL << order)) in setup_zero_pages()
/openbmc/linux/arch/um/kernel/
H A Dmem.c74 max_low_pfn = totalram_pages(); in mem_init()
/openbmc/linux/net/ipv4/
H A Dinetpeer.c79 nr_entries = div64_ul((u64)totalram_pages() << PAGE_SHIFT, in inet_initpeers()
/openbmc/linux/mm/
H A Dutil.c893 allowed = ((totalram_pages() - hugetlb_total_pages()) in vm_commit_limit()
954 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
H A Dshow_mem.c80 val->totalram = totalram_pages(); in si_meminfo()
H A Dworkingset.c794 max_order = fls_long(totalram_pages() - 1); in workingset_init()
H A Dzswap.c263 return totalram_pages() * zswap_max_pool_percent / 100 < in zswap_is_full()
269 return totalram_pages() * zswap_accept_thr_percent / 100 * in zswap_can_accept()
H A Dswap.c1073 unsigned long megs = totalram_pages() >> (20 - PAGE_SHIFT); in swap_setup()
H A Doom_kill.c265 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
H A Dmm_init.c167 unsigned long ram_pages = totalram_pages(); in mm_compute_batch()
2757 K(physpages - totalram_pages() - totalcma_pages), in mem_init_print_info()
/openbmc/linux/kernel/dma/
H A Dpool.c196 unsigned long pages = totalram_pages() / (SZ_1G / SZ_128K); in dma_atomic_pool_init()
/openbmc/linux/mm/kasan/
H A Dquarantine.c272 total_size = (totalram_pages() << PAGE_SHIFT) / in kasan_quarantine_reduce()
/openbmc/linux/fs/
H A Dfile_table.c485 unsigned long nr_pages = totalram_pages(); in files_maxfiles_init()
/openbmc/linux/drivers/parisc/
H A Dccio-dma.c1243 iova_space_size = (u32) (totalram_pages() / count_parisc_driver(&ccio_driver)); in ccio_ioc_init()
1282 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in ccio_ioc_init()
H A Dsba_iommu.c1413 iova_space_size = (u32) (totalram_pages()/global_ioc_cnt); in sba_ioc_init()
1438 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in sba_ioc_init()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_shmem.c729 totalram_pages() << PAGE_SHIFT, in i915_gem_shmem_setup()
/openbmc/linux/fs/nfsd/
H A Dnfscache.c71 unsigned long low_pages = totalram_pages() - totalhigh_pages(); in nfsd_cache_size_limit()
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c180 limit = totalram_pages() << PAGE_SHIFT; in igt_ppgtt_alloc()
1458 const u64 limit = totalram_pages() << PAGE_SHIFT; in exercise_mock()
/openbmc/linux/kernel/
H A Dkexec_core.c152 unsigned long nr_pages = totalram_pages(); in sanity_check_segment_list()

123