Home
last modified time | relevance | path

Searched refs:total_mem (Results 1 – 21 of 21) sorted by relevance

/Linux-v6.1/arch/mips/sgi-ip30/
Dip30-setup.c49 unsigned long total_mem; in ip30_mem_init() local
55 total_mem = 0; in ip30_mem_init()
69 total_mem += size; in ip30_mem_init()
77 pr_info("Detected %luMB of physical memory.\n", MEM_SHIFT(total_mem)); in ip30_mem_init()
/Linux-v6.1/kernel/
Dcrash_core.c49 unsigned long long total_mem = system_ram; in parse_crashkernel_mem() local
57 total_mem = roundup(total_mem, SZ_128M); in parse_crashkernel_mem()
102 if (size >= total_mem) { in parse_crashkernel_mem()
108 if (total_mem >= start && total_mem < end) { in parse_crashkernel_mem()
/Linux-v6.1/arch/loongarch/kernel/
Dsetup.c230 unsigned long long total_mem; in arch_parse_crashkernel() local
233 total_mem = memblock_phys_mem_size(); in arch_parse_crashkernel()
234 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in arch_parse_crashkernel()
/Linux-v6.1/arch/ia64/kernel/
Defi.c978 unsigned long total_mem = 0; in find_memmap_space() local
1026 if (total_mem + (ae - as) > mem_limit) in find_memmap_space()
1027 ae -= total_mem + (ae - as) - mem_limit; in find_memmap_space()
1055 unsigned long total_mem = 0; in efi_memmap_init() local
1145 if (total_mem + (ae - as) > mem_limit) in efi_memmap_init()
1146 ae -= total_mem + (ae - as) - mem_limit; in efi_memmap_init()
1152 total_mem += ae - as; in efi_memmap_init()
1158 total_mem += ae - as; in efi_memmap_init()
1167 return total_mem; in efi_memmap_init()
/Linux-v6.1/arch/x86/kernel/
Dsetup.c555 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
562 total_mem = memblock_phys_mem_size(); in reserve_crashkernel()
565 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
568 ret = parse_crashkernel_high(boot_command_line, total_mem, in reserve_crashkernel()
621 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/Linux-v6.1/arch/mips/kernel/
Dsetup.c454 unsigned long long total_mem; in mips_parse_crashkernel() local
458 total_mem = memblock_phys_mem_size(); in mips_parse_crashkernel()
459 ret = parse_crashkernel(boot_command_line, total_mem, in mips_parse_crashkernel()
/Linux-v6.1/tools/perf/arch/x86/util/
Dmem-events.c31 struct perf_env env = { .total_mem = 0, }; in perf_mem_is_amd_cpu()
Devsel.c21 struct perf_env env = { .total_mem = 0, } ; in arch_evsel__fixup_new_cycles()
/Linux-v6.1/arch/x86/mm/
Dmem_encrypt_amd.c220 phys_addr_t total_mem = memblock_phys_mem_size(); in sev_setup_arch() local
244 size = total_mem * 6 / 100; in sev_setup_arch()
/Linux-v6.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_validation.c120 ctx->total_mem += VMWGFX_VALIDATION_MEM_GRAN; in vmw_validation_mem_alloc()
159 if (ctx->vm && ctx->total_mem) { in vmw_validation_mem_free()
160 ctx->total_mem = 0; in vmw_validation_mem_free()
Dvmwgfx_validation.h74 size_t total_mem; member
/Linux-v6.1/arch/arm/kernel/
Dsetup.c1001 unsigned long long total_mem; in reserve_crashkernel() local
1004 total_mem = get_total_mem(); in reserve_crashkernel()
1005 ret = parse_crashkernel(boot_command_line, total_mem, in reserve_crashkernel()
1038 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/Linux-v6.1/drivers/edac/
Dcpc925_edac.c266 unsigned long total_mem; member
300 pdata->total_mem = 0; in get_total_mem()
307 pdata->total_mem += size; in get_total_mem()
311 edac_dbg(0, "total_mem 0x%lx\n", pdata->total_mem); in get_total_mem()
Daltera_edac.c211 unsigned long total_mem = 0; in get_total_mem() local
218 total_mem += resource_size(&res); in get_total_mem()
220 edac_dbg(0, "total_mem 0x%lx\n", total_mem); in get_total_mem()
221 return total_mem; in get_total_mem()
/Linux-v6.1/tools/testing/selftests/sgx/
Dmain.c356 unsigned long total_mem; in TEST_F() local
358 total_mem = get_total_epc_mem(); in TEST_F()
359 ASSERT_NE(total_mem, 0); in TEST_F()
360 ASSERT_TRUE(setup_test_encl(total_mem, &self->encl, _metadata)); in TEST_F()
391 unsigned long total_mem; variable
400 total_mem = get_total_epc_mem();
401 ASSERT_NE(total_mem, 0);
403 total_mem);
404 ASSERT_TRUE(setup_test_encl(total_mem, &self->encl, _metadata));
/Linux-v6.1/tools/perf/util/
Denv.h62 unsigned long long total_mem; member
Dheader.c2018 fprintf(fp, "# total memory : %llu kB\n", ff->ph->env.total_mem); in print_total_mem()
2430 u64 total_mem; in process_total_mem() local
2433 ret = do_read_u64(ff, &total_mem); in process_total_mem()
2436 ff->ph->env.total_mem = (unsigned long long)total_mem; in process_total_mem()
3378 FEAT_OPR(TOTAL_MEM, total_mem, false),
/Linux-v6.1/drivers/usb/core/
Ddevio.c148 u64 lim, total_mem; in usbfs_increase_memory_usage() local
157 total_mem = usbfs_memory_usage + amount; in usbfs_increase_memory_usage()
158 if (lim > 0 && total_mem > lim) in usbfs_increase_memory_usage()
161 usbfs_memory_usage = total_mem; in usbfs_increase_memory_usage()
/Linux-v6.1/drivers/scsi/lpfc/
Dlpfc_bsg.c3050 uint32_t total_mem; in lpfc_bsg_diag_loopback_run() local
3099 total_mem = full_size; in lpfc_bsg_diag_loopback_run()
3101 total_mem = 64 * 1024; in lpfc_bsg_diag_loopback_run()
3104 total_mem = BUF_SZ_4K; in lpfc_bsg_diag_loopback_run()
3106 dataout = kmalloc(total_mem, GFP_KERNEL); in lpfc_bsg_diag_loopback_run()
/Linux-v6.1/drivers/net/ethernet/broadcom/
Dcnic.c1195 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1197 total_mem = BNX2X_CONTEXT_MEM_SIZE * cp->max_cid_space; in cnic_alloc_bnx2x_context()
1198 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1199 if (total_mem % ctx_blk_size) in cnic_alloc_bnx2x_context()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c2731 int total_mem; in qp_get_mtt_size() local
2737 total_mem = sq_size + rq_size; in qp_get_mtt_size()
2738 tot = (total_mem + (page_offset << 6)) >> page_shift; in qp_get_mtt_size()