Home
last modified time | relevance | path

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

12

/openbmc/u-boot/board/freescale/b4860qds/
H A Dddr.c200 unsigned long long total_mem, current_mem_base, total_ctlr_mem; in step_assign_addresses() local
204 total_mem = 0; in step_assign_addresses()
230 pinfo->common_timing_params[i].total_mem = in step_assign_addresses()
232 total_mem = current_mem_base + total_ctlr_mem; in step_assign_addresses()
257 pinfo->common_timing_params[i].total_mem = in step_assign_addresses()
259 total_mem += total_ctlr_mem; in step_assign_addresses()
262 debug("Total mem by %s is 0x%llx\n", __func__, total_mem); in step_assign_addresses()
264 return total_mem; in step_assign_addresses()
/openbmc/u-boot/drivers/ddr/fsl/
H A Dmain.c307 total_mem = 0; in __step_assign_addresses()
352 pinfo->common_timing_params[i].total_mem = in __step_assign_addresses()
359 current_mem_base = total_mem; in __step_assign_addresses()
373 pinfo->common_timing_params[i].total_mem = in __step_assign_addresses()
375 total_mem += total_ctlr_mem; in __step_assign_addresses()
398 pinfo->common_timing_params[i].total_mem = in __step_assign_addresses()
400 total_mem += total_ctlr_mem; in __step_assign_addresses()
405 return total_mem; in __step_assign_addresses()
418 unsigned long long total_mem = 0; in fsl_ddr_compute() local
560 debug("Total mem %llu assigned\n", total_mem); in fsl_ddr_compute()
[all …]
H A Dutil.c126 unsigned long long size = memctl_common_params->total_mem; in __fsl_ddr_set_lawbar()
H A Dinteractive.c198 COMMON_TIMING(total_mem), in lowest_common_dimm_parameters_edit()
488 plcd_dimm_params->total_mem, in print_lowest_common_dimm_parameters()
489 plcd_dimm_params->total_mem / 0x100000); in print_lowest_common_dimm_parameters()
/openbmc/linux/arch/mips/sgi-ip30/
H 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()
/openbmc/linux/arch/s390/boot/
H A Dphysmem_info.c188 unsigned long start, end, total_mem = 0, total_reserved_mem = 0; in die_oom() local
207 total_mem += end - start; in die_oom()
210 total_mem, total_reserved_mem, in die_oom()
211 total_mem > total_reserved_mem ? total_mem - total_reserved_mem : 0); in die_oom()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c966 uint64_t total_mem; /* in Mb */ in cmd_sanitize_overwrite() local
970 if (total_mem <= 512) { in cmd_sanitize_overwrite()
972 } else if (total_mem <= 1024) { in cmd_sanitize_overwrite()
974 } else if (total_mem <= 2 * 1024) { in cmd_sanitize_overwrite()
976 } else if (total_mem <= 4 * 1024) { in cmd_sanitize_overwrite()
978 } else if (total_mem <= 8 * 1024) { in cmd_sanitize_overwrite()
980 } else if (total_mem <= 16 * 1024) { in cmd_sanitize_overwrite()
982 } else if (total_mem <= 32 * 1024) { in cmd_sanitize_overwrite()
984 } else if (total_mem <= 64 * 1024) { in cmd_sanitize_overwrite()
986 } else if (total_mem <= 128 * 1024) { in cmd_sanitize_overwrite()
[all …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Denv.c8 struct perf_env env = { .total_mem = 0, }; in x86__is_amd_cpu()
/openbmc/linux/kernel/
H A Dcrash_core.c56 unsigned long long total_mem = system_ram; in parse_crashkernel_mem() local
64 total_mem = roundup(total_mem, SZ_128M); in parse_crashkernel_mem()
109 if (size >= total_mem) { in parse_crashkernel_mem()
115 if (total_mem >= start && total_mem < end) { in parse_crashkernel_mem()
/openbmc/u-boot/include/
H A Dcommon_timing_params.h61 unsigned long long total_mem; member
/openbmc/linux/arch/ia64/kernel/
H 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()
/openbmc/linux/arch/x86/kernel/
H A Dsetup.c546 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
553 total_mem = memblock_phys_mem_size(); in reserve_crashkernel()
556 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
559 ret = parse_crashkernel_high(boot_command_line, total_mem, in reserve_crashkernel()
612 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/openbmc/u-boot/arch/arm/mach-mvebu/
H A Ddram.c168 u32 total_mem = 0; in dram_ecc_scrubbing() local
188 total_mem += (u32)(total / (1 << 30)); in dram_ecc_scrubbing()
/openbmc/linux/arch/loongarch/kernel/
H A Dsetup.c268 unsigned long long total_mem; in arch_parse_crashkernel() local
271 total_mem = memblock_phys_mem_size(); in arch_parse_crashkernel()
272 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in arch_parse_crashkernel()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c457 unsigned long long total_mem; in mips_parse_crashkernel() local
461 total_mem = memblock_phys_mem_size(); in mips_parse_crashkernel()
462 ret = parse_crashkernel(boot_command_line, total_mem, in mips_parse_crashkernel()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_validation.c119 ctx->total_mem += VMWGFX_VALIDATION_MEM_GRAN; in vmw_validation_mem_alloc()
158 if (ctx->vm && ctx->total_mem) { in vmw_validation_mem_free()
159 ctx->total_mem = 0; in vmw_validation_mem_free()
H A Dvmwgfx_validation.h73 size_t total_mem; member
/openbmc/linux/drivers/edac/
H 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()
H 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()
/openbmc/linux/arch/arm/kernel/
H A Dsetup.c1008 unsigned long long total_mem; in reserve_crashkernel() local
1011 total_mem = get_total_mem(); in reserve_crashkernel()
1012 ret = parse_crashkernel(boot_command_line, total_mem, in reserve_crashkernel()
1045 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/openbmc/linux/tools/testing/selftests/sgx/
H 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));
/openbmc/linux/arch/x86/mm/
H A Dmem_encrypt_amd.c221 phys_addr_t total_mem = memblock_phys_mem_size(); in sev_setup_arch() local
245 size = total_mem * 6 / 100; in sev_setup_arch()
/openbmc/linux/tools/perf/util/
H A Denv.h62 unsigned long long total_mem; member
H A Dheader.c2058 fprintf(fp, "# total memory : %llu kB\n", ff->ph->env.total_mem); in print_total_mem()
2472 u64 total_mem; in process_total_mem() local
2475 ret = do_read_u64(ff, &total_mem); in process_total_mem()
2478 ff->ph->env.total_mem = (unsigned long long)total_mem; in process_total_mem()
3421 FEAT_OPR(TOTAL_MEM, total_mem, false),
/openbmc/linux/drivers/usb/core/
H 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()

12