Searched refs:mem_unit (Results 1 – 17 of 17) sorted by relevance
/linux-6.12.1/tools/testing/selftests/size/ |
D | get_size.c | 108 print_k_value(" Total: ", info.totalram, info.mem_unit); in _start() 109 print_k_value(" Free: ", info.freeram, info.mem_unit); in _start() 110 print_k_value(" Buffer: ", info.bufferram, info.mem_unit); in _start() 111 print_k_value(" In use: ", used, info.mem_unit); in _start()
|
/linux-6.12.1/include/uapi/linux/ |
D | sysinfo.h | 21 __u32 mem_unit; /* Memory unit size in bytes */ 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/kernel/ |
D | sys.c | 2814 unsigned int mem_unit, bitcount; in do_sysinfo() local 2843 mem_unit = info->mem_unit; in do_sysinfo() 2844 while (mem_unit > 1) { in do_sysinfo() 2846 mem_unit >>= 1; in do_sysinfo() 2860 info->mem_unit = 1; in do_sysinfo() 2900 u32 mem_unit; member 2917 while (s.mem_unit < PAGE_SIZE) { in COMPAT_SYSCALL_DEFINE1() 2918 s.mem_unit <<= 1; in COMPAT_SYSCALL_DEFINE1() 2946 s_32.mem_unit = s.mem_unit; in COMPAT_SYSCALL_DEFINE1()
|
/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 | 83 val->mem_unit = PAGE_SIZE; in si_meminfo() 117 val->mem_unit = PAGE_SIZE; in si_meminfo_node()
|
/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/mmc/host/ |
D | sdhci-xenon.c | 467 if (si.totalram * si.mem_unit > SZ_2G) { in xenon_probe_params()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd.c | 54 amdgpu_amdkfd_total_mem_size *= si.mem_unit; in amdgpu_amdkfd_init()
|
D | amdgpu_acpi.c | 892 numa_info->size = info.totalram * info.mem_unit; in amdgpu_acpi_get_numa_info()
|
D | amdgpu_vm.c | 2239 phys_ram_gb = ((uint64_t)si.totalram * si.mem_unit + in amdgpu_vm_adjust_size()
|
D | amdgpu_amdkfd_gpuvm.c | 122 mem *= si.mem_unit; in amdgpu_amdkfd_gpuvm_init_mem_limits()
|
D | amdgpu_device.c | 1848 total_memory = (uint64_t)si.totalram * si.mem_unit; in amdgpu_device_check_smu_prv_buffer_size()
|
/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/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()
|
/linux-6.12.1/fs/nfsd/ |
D | nfs4state.c | 4695 max_clients = (u64)si.totalram * si.mem_unit / (1024 * 1024 * 1024); in nfsd4_init_leases_net()
|