Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/mips/sgi-ip30/
A 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-6.3-rc2/kernel/
A 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-6.3-rc2/arch/ia64/kernel/
A 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-6.3-rc2/arch/x86/kernel/
A Dsetup.c551 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
558 total_mem = memblock_phys_mem_size(); in reserve_crashkernel()
561 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
564 ret = parse_crashkernel_high(boot_command_line, total_mem, in reserve_crashkernel()
617 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/linux-6.3-rc2/arch/loongarch/kernel/
A Dsetup.c245 unsigned long long total_mem; in arch_parse_crashkernel() local
248 total_mem = memblock_phys_mem_size(); in arch_parse_crashkernel()
249 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in arch_parse_crashkernel()
/linux-6.3-rc2/arch/mips/kernel/
A 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-6.3-rc2/tools/perf/arch/x86/util/
A Dmem-events.c31 struct perf_env env = { .total_mem = 0, }; in perf_mem_is_amd_cpu()
A Devsel.c21 struct perf_env env = { .total_mem = 0, } ; in arch_evsel__fixup_new_cycles()
/linux-6.3-rc2/arch/x86/mm/
A 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-6.3-rc2/drivers/gpu/drm/vmwgfx/
A 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()
A Dvmwgfx_validation.h73 size_t total_mem; member
/linux-6.3-rc2/drivers/edac/
A 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()
A 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-6.3-rc2/arch/arm/kernel/
A Dsetup.c1015 unsigned long long total_mem; in reserve_crashkernel() local
1018 total_mem = get_total_mem(); in reserve_crashkernel()
1019 ret = parse_crashkernel(boot_command_line, total_mem, in reserve_crashkernel()
1052 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/linux-6.3-rc2/tools/testing/selftests/sgx/
A 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-6.3-rc2/tools/perf/util/
A Denv.h62 unsigned long long total_mem; member
A Dheader.c2025 fprintf(fp, "# total memory : %llu kB\n", ff->ph->env.total_mem); in print_total_mem()
2439 u64 total_mem; in process_total_mem() local
2442 ret = do_read_u64(ff, &total_mem); in process_total_mem()
2445 ff->ph->env.total_mem = (unsigned long long)total_mem; in process_total_mem()
3389 FEAT_OPR(TOTAL_MEM, total_mem, false),
/linux-6.3-rc2/drivers/usb/core/
A 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-6.3-rc2/drivers/scsi/lpfc/
A 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-6.3-rc2/drivers/net/ethernet/broadcom/
A Dcnic.c1193 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1195 total_mem = BNX2X_CONTEXT_MEM_SIZE * cp->max_cid_space; in cnic_alloc_bnx2x_context()
1196 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1197 if (total_mem % ctx_blk_size) in cnic_alloc_bnx2x_context()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A 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()

Completed in 68 milliseconds