Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/fs/ntfs/
H A Dmalloc.h36 if (likely((size >> PAGE_SHIFT) < totalram_pages())) in __ntfs_malloc()
/OK3568_Linux_fs/kernel/drivers/char/agp/
H A Dbackend.c118 memory = totalram_pages() >> (20 - PAGE_SHIFT); in agp_find_max()
120 memory = totalram_pages() << (PAGE_SHIFT - 20); in agp_find_max()
/OK3568_Linux_fs/kernel/security/integrity/ima/
H A Dima_kexec.c104 ((kexec_segment_size >> PAGE_SHIFT) > totalram_pages() / 2)) { in ima_add_kexec_buffer()
/OK3568_Linux_fs/kernel/mm/
H A Dmm_init.c153 unsigned long ram_pages = totalram_pages(); in mm_compute_batch()
H A Dutil.c870 allowed = ((totalram_pages() - hugetlb_total_pages()) in vm_commit_limit()
931 if (pages > totalram_pages() + total_swap_pages) in __vm_enough_memory()
H A Dworkingset.c609 max_order = fls_long(totalram_pages() - 1); in workingset_init()
H A 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()
H A Doom_kill.c269 oc->totalpages = totalram_pages() + total_swap_pages; in constrained_alloc()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/
H A Dcmm.c240 const long total_pages = totalram_pages() + __loaned_pages; in cmm_get_mpp()
278 oom_freed_pages, totalram_pages()); in cmm_get_mpp()
/OK3568_Linux_fs/kernel/arch/um/kernel/
H A Dmem.c55 max_low_pfn = totalram_pages(); in mem_init()
/OK3568_Linux_fs/kernel/arch/s390/mm/
H A Dinit.c69 while (order > 2 && (totalram_pages() >> 10) < (1UL << order)) in setup_zero_pages()
/OK3568_Linux_fs/kernel/kernel/dma/
H A Dpool.c199 unsigned long pages = totalram_pages() / (SZ_1G / SZ_128K); in dma_atomic_pool_init()
/OK3568_Linux_fs/kernel/mm/kasan/
H A Dquarantine.c252 total_size = (totalram_pages() << PAGE_SHIFT) / in kasan_quarantine_reduce()
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/heaps/
H A Dion_system_heap.c121 if (size / PAGE_SIZE > totalram_pages() / 2) in ion_system_heap_allocate()
/OK3568_Linux_fs/kernel/fs/
H A Dfile_table.c395 unsigned long nr_pages = totalram_pages(); in files_maxfiles_init()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_gpuprops.c319 gpu_props->core_props.gpu_available_memory_size = totalram_pages << PAGE_SHIFT; in kbase_gpuprops_calculate_props()
322 totalram_pages() << PAGE_SHIFT; in kbase_gpuprops_calculate_props()
/OK3568_Linux_fs/kernel/drivers/parisc/
H A Dccio-dma.c1247 iova_space_size = (u32) (totalram_pages() / count_parisc_driver(&ccio_driver)); in ccio_ioc_init()
1286 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in ccio_ioc_init()
H A Dsba_iommu.c1403 iova_space_size = (u32) (totalram_pages()/global_ioc_cnt); in sba_ioc_init()
1428 (unsigned long) totalram_pages() >> (20 - PAGE_SHIFT), in sba_ioc_init()
/OK3568_Linux_fs/kernel/drivers/staging/android/ion/
H A Dion_protected_heap.c269 if (size / PAGE_SIZE > totalram_pages / 2) in ion_protected_heap_allocate()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A Di915_gem_shmem.c620 totalram_pages() << PAGE_SHIFT, in i915_gem_shmem_setup()
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/microcode/
H A Dcore.c427 unsigned long nr_pages = totalram_pages(); in microcode_write()
/OK3568_Linux_fs/kernel/fs/nfsd/
H A Dnfscache.c71 unsigned long low_pages = totalram_pages() - totalhigh_pages(); in nfsd_cache_size_limit()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_gpuprops.c241 gpu_props->core_props.gpu_available_memory_size = totalram_pages() << PAGE_SHIFT; in kbase_gpuprops_calculate_props()
/OK3568_Linux_fs/kernel/kernel/
H A Dkexec_core.c153 unsigned long nr_pages = totalram_pages(); in sanity_check_segment_list()

123