Home
last modified time | relevance | path

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

12

/Linux-v5.10/fs/ntfs/
Dmalloc.h36 if (likely((size >> PAGE_SHIFT) < totalram_pages())) in __ntfs_malloc()
/Linux-v5.10/drivers/net/wireguard/
Dratelimiter.c173 table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 : in wg_ratelimiter_init()
175 (totalram_pages() << PAGE_SHIFT) / in wg_ratelimiter_init()
/Linux-v5.10/drivers/char/agp/
Dbackend.c118 memory = totalram_pages() >> (20 - PAGE_SHIFT); in agp_find_max()
120 memory = totalram_pages() << (PAGE_SHIFT - 20); in agp_find_max()
/Linux-v5.10/security/integrity/ima/
Dima_kexec.c104 ((kexec_segment_size >> PAGE_SHIFT) > totalram_pages() / 2)) { in ima_add_kexec_buffer()
/Linux-v5.10/mm/
Dmm_init.c153 unsigned long ram_pages = totalram_pages(); in mm_compute_batch()
Dutil.c812 allowed = ((totalram_pages() - hugetlb_total_pages()) in vm_commit_limit()
873 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
Dworkingset.c609 max_order = fls_long(totalram_pages() - 1); in workingset_init()
Dzswap.c223 return totalram_pages() * zswap_max_pool_percent / 100 < in zswap_is_full()
229 return totalram_pages() * zswap_accept_thr_percent / 100 * in zswap_can_accept()
Doom_kill.c265 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
Dswap.c1181 unsigned long megs = totalram_pages() >> (20 - PAGE_SHIFT); in swap_setup()
/Linux-v5.10/arch/um/kernel/
Dmem.c55 max_low_pfn = totalram_pages(); in mem_init()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dcmm.c240 const long total_pages = totalram_pages() + __loaned_pages; in cmm_get_mpp()
278 oom_freed_pages, totalram_pages()); in cmm_get_mpp()
/Linux-v5.10/arch/s390/mm/
Dinit.c69 while (order > 2 && (totalram_pages() >> 10) < (1UL << order)) in setup_zero_pages()
/Linux-v5.10/kernel/dma/
Dpool.c199 unsigned long pages = totalram_pages() / (SZ_1G / SZ_128K); in dma_atomic_pool_init()
/Linux-v5.10/mm/kasan/
Dquarantine.c247 total_size = (totalram_pages() << PAGE_SHIFT) / in quarantine_reduce()
/Linux-v5.10/drivers/staging/android/ion/
Dion_system_heap.c113 if (size / PAGE_SIZE > totalram_pages() / 2) in ion_system_heap_allocate()
/Linux-v5.10/fs/
Dfile_table.c394 unsigned long nr_pages = totalram_pages(); in files_maxfiles_init()
/Linux-v5.10/drivers/parisc/
Dccio-dma.c1246 iova_space_size = (u32) (totalram_pages() / count_parisc_driver(&ccio_driver)); in ccio_ioc_init()
1285 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in ccio_ioc_init()
Dsba_iommu.c1402 iova_space_size = (u32) (totalram_pages()/global_ioc_cnt); in sba_ioc_init()
1427 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in sba_ioc_init()
/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c620 totalram_pages() << PAGE_SHIFT, in i915_gem_shmem_setup()
/Linux-v5.10/arch/x86/kernel/cpu/microcode/
Dcore.c427 unsigned long nr_pages = totalram_pages(); in microcode_write()
/Linux-v5.10/fs/nfsd/
Dnfscache.c71 unsigned long low_pages = totalram_pages() - totalhigh_pages(); in nfsd_cache_size_limit()
/Linux-v5.10/drivers/media/platform/mtk-vpu/
Dmtk_vpu.c857 vpu->enable_4GB = !!(totalram_pages() > (SZ_2G >> PAGE_SHIFT)); in mtk_vpu_probe()
/Linux-v5.10/kernel/
Dkexec_core.c153 unsigned long nr_pages = totalram_pages(); in sanity_check_segment_list()
/Linux-v5.10/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c170 limit = totalram_pages() << PAGE_SHIFT; in igt_ppgtt_alloc()
1262 const u64 limit = totalram_pages() << PAGE_SHIFT; in exercise_mock()

12