Home
last modified time | relevance | path

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

/linux/kernel/
H A Dcrash_reserve.c64 unsigned long long total_mem = system_ram; in parse_crashkernel_mem() local
72 total_mem = roundup(total_mem, SZ_128M); in parse_crashkernel_mem()
117 if (size >= total_mem) { in parse_crashkernel_mem()
123 if (total_mem >= start && total_mem < end) { in parse_crashkernel_mem()
/linux/arch/s390/boot/
H A Dphysmem_info.c207 unsigned long start, end, total_mem = 0, total_reserved_mem = 0; in die_oom() local
226 total_mem += end - start; in die_oom()
229 total_mem, total_reserved_mem, in die_oom()
230 total_mem > total_reserved_mem ? total_mem - total_reserved_mem : 0); in die_oom()
/linux/arch/mips/kernel/
H A Dsetup.c451 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/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()
/linux/arch/arm/kernel/
H A 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()
1039 (unsigned long)(total_mem >> 20)); in reserve_crashkernel()
/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));
/linux/tools/perf/util/
H A Denv.h68 unsigned long long total_mem; member
H A Denv.c796 struct perf_env env = { .total_mem = 0, }; in x86__is_amd_cpu()
818 struct perf_env env = { .total_mem = 0, }; in x86__is_intel_cpu()
H A Dheader.c2036 fprintf(fp, "# total memory : %llu kB\n", ff->ph->env.total_mem); in print_total_mem()
2463 u64 total_mem; in process_total_mem() local
2466 ret = do_read_u64(ff, &total_mem); in process_total_mem()
2469 env->total_mem = (unsigned long long)total_mem; in process_total_mem()
3432 FEAT_OPR(TOTAL_MEM, total_mem, false),
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem.c27 uint64_t total_mem = atomic64_add_return(size, &priv->total_mem); in update_device_mem() local
28 trace_gpu_mem_total(0, 0, total_mem); in update_device_mem()
/linux/drivers/scsi/lpfc/
H A Dlpfc_bsg.c3063 uint32_t total_mem; in lpfc_bsg_diag_loopback_run() local
3112 total_mem = full_size; in lpfc_bsg_diag_loopback_run()
3114 total_mem = 64 * 1024; in lpfc_bsg_diag_loopback_run()
3117 total_mem = BUF_SZ_4K; in lpfc_bsg_diag_loopback_run()
3119 dataout = kmalloc(total_mem, GFP_KERNEL); in lpfc_bsg_diag_loopback_run()
/linux/drivers/net/ethernet/broadcom/
H A Dcnic.c1201 int total_mem, blks, i; in cnic_alloc_bnx2x_context() local
1203 total_mem = BNX2X_CONTEXT_MEM_SIZE * cp->max_cid_space; in cnic_alloc_bnx2x_context()
1204 blks = total_mem / ctx_blk_size; in cnic_alloc_bnx2x_context()
1205 if (total_mem % ctx_blk_size) in cnic_alloc_bnx2x_context()
/linux/drivers/net/ethernet/mellanox/mlx4/
H 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()