/linux-6.12.1/tools/testing/selftests/cgroup/ |
D | test_zswap.c | 510 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/ |
D | appldata_mem.c | 48 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/ |
D | get_size.c | 105 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/ |
D | meminfo.c | 60 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/ |
D | sysinfo.h | 11 __kernel_ulong_t totalram; /* Total usable main memory size */ member
|
/linux-6.12.1/drivers/gpu/drm/ttm/ |
D | ttm_device.c | 88 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/ |
D | xe_ttm_sys_mgr.c | 111 gtt_size = (u64)si.totalram * si.mem_unit; in xe_ttm_sys_mgr_init()
|
/linux-6.12.1/mm/ |
D | show_mem.c | 77 val->totalram = totalram_pages(); in si_meminfo() 99 val->totalram = managed_pages; in si_meminfo_node()
|
/linux-6.12.1/kernel/ |
D | sys.c | 2839 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/ |
D | node.c | 399 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/ |
D | netlink.c | 185 tmp = si.totalram / (25 * si.mem_unit); in handshake_net_init()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
D | profile.c | 108 (si.totalram << 1) >> log_mtts_per_seg))); in mlx4_make_profile()
|
/linux-6.12.1/drivers/mmc/host/ |
D | sdhci-xenon.c | 467 if (si.totalram * si.mem_unit > SZ_2G) { in xenon_probe_params()
|
/linux-6.12.1/fs/notify/inotify/ |
D | inotify_user.c | 841 watches_max = (((si.totalram - si.totalhigh) / 100) << PAGE_SHIFT) / in inotify_user_setup()
|
/linux-6.12.1/fs/nfsd/ |
D | nfssvc.c | 606 target = (i.totalram - i.totalhigh) << PAGE_SHIFT; in nfsd_get_default_max_blksize()
|
/linux-6.12.1/net/rds/ |
D | ib_recv.c | 1064 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/ |
D | jfs_txnmgr.c | 236 if (si.totalram > (256 * 1024)) /* 1 GB */ in txInit() 239 nTxLock = si.totalram >> 2; in txInit()
|
/linux-6.12.1/drivers/virtio/ |
D | virtio_balloon.c | 416 pages_to_bytes(i.totalram)); in update_balloon_stats()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_acpi.c | 892 numa_info->size = info.totalram * info.mem_unit; in amdgpu_acpi_get_numa_info()
|
/linux-6.12.1/drivers/edac/ |
D | synopsys_edac.c | 783 return inf.totalram * inf.mem_unit; in get_memsize()
|
/linux-6.12.1/fs/bcachefs/ |
D | backpointers.c | 741 u64 mem_bytes = i.totalram * i.mem_unit; in mem_may_pin_bytes()
|
/linux-6.12.1/fs/notify/fanotify/ |
D | fanotify_user.c | 1951 max_marks = (((si.totalram - si.totalhigh) / 100) << PAGE_SHIFT) / in fanotify_user_setup()
|
/linux-6.12.1/fs/ |
D | eventpoll.c | 2596 max_user_watches = (((si.totalram - si.totalhigh) / 25) << PAGE_SHIFT) / in eventpoll_init()
|
/linux-6.12.1/kernel/debug/kdb/ |
D | kdb_main.c | 2523 K(val.totalram), K(val.freeram), K(val.bufferram)); in kdb_summary()
|
/linux-6.12.1/drivers/gpu/drm/ttm/tests/ |
D | ttm_bo_validate_test.c | 774 size_big = ALIGN(((u64)si.totalram * si.mem_unit / 2), PAGE_SIZE); in ttm_bo_validate_swapout()
|