/openbmc/u-boot/board/freescale/b4860qds/ |
H A D | ddr.c | 200 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 D | main.c | 241 unsigned long long total_mem, current_mem_base, total_ctlr_mem; in __step_assign_addresses() local 307 total_mem = 0; in __step_assign_addresses() 352 pinfo->common_timing_params[i].total_mem = in __step_assign_addresses() 354 total_mem = current_mem_base + total_ctlr_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() 403 debug("Total mem by %s is 0x%llx\n", __func__, total_mem); in __step_assign_addresses() [all …]
|
H A D | util.c | 126 unsigned long long size = memctl_common_params->total_mem; in __fsl_ddr_set_lawbar()
|
H A D | interactive.c | 198 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 D | ip30-setup.c | 49 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 D | physmem_info.c | 188 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/linux/kernel/ |
H A D | crash_core.c | 56 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/linux/tools/perf/arch/x86/util/ |
H A D | env.c | 8 struct perf_env env = { .total_mem = 0, }; in x86__is_amd_cpu()
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | efi.c | 978 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/u-boot/include/ |
H A D | common_timing_params.h | 61 unsigned long long total_mem; member
|
/openbmc/linux/arch/x86/kernel/ |
H A D | setup.c | 546 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 D | dram.c | 168 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 D | setup.c | 269 unsigned long long total_mem; in arch_parse_crashkernel() local 272 total_mem = memblock_phys_mem_size(); in arch_parse_crashkernel() 273 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in arch_parse_crashkernel()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | setup.c | 457 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/qemu/hw/cxl/ |
H A D | cxl-mailbox-utils.c | 1580 uint64_t total_mem; /* in Mb */ in cmd_sanitize_overwrite() local 1583 total_mem = (ct3d->cxl_dstate.vmem_size + ct3d->cxl_dstate.pmem_size) >> 20; in cmd_sanitize_overwrite() 1584 if (total_mem <= 512) { in cmd_sanitize_overwrite() 1586 } else if (total_mem <= 1024) { in cmd_sanitize_overwrite() 1588 } else if (total_mem <= 2 * 1024) { in cmd_sanitize_overwrite() 1590 } else if (total_mem <= 4 * 1024) { in cmd_sanitize_overwrite() 1592 } else if (total_mem <= 8 * 1024) { in cmd_sanitize_overwrite() 1594 } else if (total_mem <= 16 * 1024) { in cmd_sanitize_overwrite() 1596 } else if (total_mem <= 32 * 1024) { in cmd_sanitize_overwrite() 1598 } else if (total_mem <= 64 * 1024) { in cmd_sanitize_overwrite() [all …]
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_validation.c | 119 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 D | vmwgfx_validation.h | 73 size_t total_mem; member
|
/openbmc/linux/arch/arm/kernel/ |
H A D | setup.c | 1008 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/drivers/edac/ |
H A D | cpc925_edac.c | 266 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 D | altera_edac.c | 211 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/tools/testing/selftests/sgx/ |
H A D | main.c | 356 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 D | mem_encrypt_amd.c | 221 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 D | env.h | 62 unsigned long long total_mem; member
|
H A D | header.c | 2058 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 D | devio.c | 148 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()
|