Home
last modified time | relevance | path

Searched refs:totalram (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/cgroup/
Dtest_zswap.c510 if (sys_info.totalram > 5000000000) in test_no_kmem_bypass()
518 min_free_kb_high = sys_info.totalram / 2000; in test_no_kmem_bypass()
519 min_free_kb_low = sys_info.totalram / 500000; in test_no_kmem_bypass()
520 values->target_alloc_bytes = (sys_info.totalram - min_free_kb_high * 1000) + in test_no_kmem_bypass()
521 sys_info.totalram * 5 / 100; in test_no_kmem_bypass()
522 stored_pages_threshold = sys_info.totalram / 5 / 4096; in test_no_kmem_bypass()
523 trigger_allocation_size = sys_info.totalram / 20; in test_no_kmem_bypass()
/linux-6.12.1/arch/s390/appldata/
Dappldata_mem.c48 u64 totalram; /* total main memory size */ member
97 mem_data->totalram = P2K(val.totalram); in appldata_get_mem_data()
/linux-6.12.1/tools/testing/selftests/size/
Dget_size.c105 used = info.totalram - info.freeram - info.bufferram; in _start()
108 print_k_value(" Total: ", info.totalram, info.mem_unit); in _start()
/linux-6.12.1/fs/proc/
Dmeminfo.c60 show_val_kb(m, "MemTotal: ", i.totalram); in meminfo_proc_show()
80 show_val_kb(m, "LowTotal: ", i.totalram - i.totalhigh); in meminfo_proc_show()
/linux-6.12.1/include/uapi/linux/
Dsysinfo.h11 __kernel_ulong_t totalram; /* Total usable main memory size */ member
/linux-6.12.1/drivers/gpu/drm/ttm/
Dttm_device.c88 num_pages = ((u64)si.totalram * si.mem_unit) >> PAGE_SHIFT; in ttm_global_init()
92 num_dma32 = (u64)(si.totalram - si.totalhigh) * si.mem_unit in ttm_global_init()
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_ttm_sys_mgr.c111 gtt_size = (u64)si.totalram * si.mem_unit; in xe_ttm_sys_mgr_init()
/linux-6.12.1/mm/
Dshow_mem.c77 val->totalram = totalram_pages(); in si_meminfo()
99 val->totalram = managed_pages; in si_meminfo_node()
/linux-6.12.1/kernel/
Dsys.c2839 mem_total = info->totalram + info->totalswap; in do_sysinfo()
2840 if (mem_total < info->totalram || mem_total < info->totalswap) in do_sysinfo()
2861 info->totalram <<= bitcount; in do_sysinfo()
2890 u32 totalram; member
2914 if (upper_32_bits(s.totalram) || upper_32_bits(s.totalswap)) { in COMPAT_SYSCALL_DEFINE1()
2922 s.totalram >>= bitcount; in COMPAT_SYSCALL_DEFINE1()
2937 s_32.totalram = s.totalram; in COMPAT_SYSCALL_DEFINE1()
/linux-6.12.1/drivers/base/
Dnode.c399 nid, K(i.totalram), in node_read_meminfo()
401 nid, K(i.totalram - i.freeram), in node_read_meminfo()
422 nid, K(i.totalram - i.totalhigh), in node_read_meminfo()
/linux-6.12.1/net/handshake/
Dnetlink.c185 tmp = si.totalram / (25 * si.mem_unit); in handshake_net_init()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Dprofile.c108 (si.totalram << 1) >> log_mtts_per_seg))); in mlx4_make_profile()
/linux-6.12.1/drivers/mmc/host/
Dsdhci-xenon.c467 if (si.totalram * si.mem_unit > SZ_2G) { in xenon_probe_params()
/linux-6.12.1/fs/notify/inotify/
Dinotify_user.c841 watches_max = (((si.totalram - si.totalhigh) / 100) << PAGE_SHIFT) / in inotify_user_setup()
/linux-6.12.1/fs/nfsd/
Dnfssvc.c606 target = (i.totalram - i.totalhigh) << PAGE_SHIFT; in nfsd_get_default_max_blksize()
/linux-6.12.1/net/rds/
Dib_recv.c1064 rds_ib_sysctl_max_recv_allocation = si.totalram / 3 * PAGE_SIZE / RDS_FRAG_SIZE; in rds_ib_recv_init()
/linux-6.12.1/fs/jfs/
Djfs_txnmgr.c236 if (si.totalram > (256 * 1024)) /* 1 GB */ in txInit()
239 nTxLock = si.totalram >> 2; in txInit()
/linux-6.12.1/drivers/virtio/
Dvirtio_balloon.c416 pages_to_bytes(i.totalram)); in update_balloon_stats()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c892 numa_info->size = info.totalram * info.mem_unit; in amdgpu_acpi_get_numa_info()
/linux-6.12.1/drivers/edac/
Dsynopsys_edac.c783 return inf.totalram * inf.mem_unit; in get_memsize()
/linux-6.12.1/fs/bcachefs/
Dbackpointers.c741 u64 mem_bytes = i.totalram * i.mem_unit; in mem_may_pin_bytes()
/linux-6.12.1/fs/notify/fanotify/
Dfanotify_user.c1951 max_marks = (((si.totalram - si.totalhigh) / 100) << PAGE_SHIFT) / in fanotify_user_setup()
/linux-6.12.1/fs/
Deventpoll.c2596 max_user_watches = (((si.totalram - si.totalhigh) / 25) << PAGE_SHIFT) / in eventpoll_init()
/linux-6.12.1/kernel/debug/kdb/
Dkdb_main.c2523 K(val.totalram), K(val.freeram), K(val.bufferram)); in kdb_summary()
/linux-6.12.1/drivers/gpu/drm/ttm/tests/
Dttm_bo_validate_test.c774 size_big = ALIGN(((u64)si.totalram * si.mem_unit / 2), PAGE_SIZE); in ttm_bo_validate_swapout()

12