| /linux-6.15/drivers/net/wireguard/ |
| H A D | ratelimiter.c | 173 table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 : in wg_ratelimiter_init() 175 (totalram_pages() << PAGE_SHIFT) / in wg_ratelimiter_init()
|
| /linux-6.15/drivers/char/agp/ |
| H A D | backend.c | 120 memory = totalram_pages() >> (20 - PAGE_SHIFT); in agp_find_max() 122 memory = totalram_pages() << (PAGE_SHIFT - 20); in agp_find_max()
|
| /linux-6.15/security/integrity/ima/ |
| H A D | ima_kexec.c | 108 ((kexec_segment_size >> PAGE_SHIFT) > totalram_pages() / 2)) { in ima_add_kexec_buffer()
|
| /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() 275 oom_freed_pages, totalram_pages()); in cmm_get_mpp()
|
| /linux-6.15/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_gmrid_manager.c | 85 const unsigned long max_graphics_pages = totalram_pages() / 2; in vmw_gmrid_man_get_node()
|
| /linux-6.15/net/ipv4/ |
| H A D | inetpeer.c | 79 nr_entries = div64_ul((u64)totalram_pages() << PAGE_SHIFT, in inet_initpeers()
|
| H A D | tcp_metrics.c | 1023 if (totalram_pages() >= 128 * 1024) in tcp_metrics_hash_alloc()
|
| /linux-6.15/kernel/dma/ |
| H A D | pool.c | 196 unsigned long pages = totalram_pages() / (SZ_1G / SZ_128K); in dma_atomic_pool_init()
|
| /linux-6.15/mm/ |
| H A D | util.c | 880 allowed = ((totalram_pages() - hugetlb_total_pages()) in vm_commit_limit() 942 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
|
| H A D | show_mem.c | 77 val->totalram = totalram_pages(); in si_meminfo()
|
| H A D | workingset.c | 799 max_order = fls_long(totalram_pages() - 1); in workingset_init()
|
| H A D | swap.c | 1094 unsigned long megs = totalram_pages() >> (20 - PAGE_SHIFT); in swap_setup()
|
| H A D | oom_kill.c | 266 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
|
| H A D | mm_init.c | 184 unsigned long ram_pages = totalram_pages(); in mm_compute_batch() 2729 K(physpages - totalram_pages() - totalcma_pages), in mem_init_print_info()
|
| /linux-6.15/mm/kasan/ |
| H A D | quarantine.c | 266 total_size = (totalram_pages() << PAGE_SHIFT) / in kasan_quarantine_reduce()
|
| /linux-6.15/drivers/parisc/ |
| H A D | ccio-dma.c | 1243 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 D | sba_iommu.c | 1413 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()
|
| /linux-6.15/fs/ |
| H A D | file_table.c | 610 unsigned long nr_pages = totalram_pages(); in files_maxfiles_init()
|
| /linux-6.15/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_shmem.c | 724 totalram_pages() << PAGE_SHIFT, in i915_gem_shmem_setup()
|
| /linux-6.15/fs/nfsd/ |
| H A D | nfscache.c | 71 unsigned long low_pages = totalram_pages() - totalhigh_pages(); in nfsd_cache_size_limit()
|
| /linux-6.15/kernel/ |
| H A D | kexec_core.c | 113 unsigned long nr_pages = totalram_pages(); in sanity_check_segment_list()
|
| /linux-6.15/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_gem_gtt.c | 180 limit = totalram_pages() << PAGE_SHIFT; in igt_ppgtt_alloc() 1461 const u64 limit = totalram_pages() << PAGE_SHIFT; in exercise_mock()
|
| /linux-6.15/drivers/media/platform/mediatek/vpu/ |
| H A D | mtk_vpu.c | 887 vpu->enable_4GB = !!(totalram_pages() > (SZ_2G >> PAGE_SHIFT)); in mtk_vpu_probe()
|
| /linux-6.15/drivers/misc/ |
| H A D | vmw_balloon.c | 626 limit = totalram_pages(); in vmballoon_send_get_target()
|
| /linux-6.15/net/dccp/ |
| H A D | proto.c | 1125 unsigned long nr_pages = totalram_pages(); in dccp_init()
|