Lines Matching refs:local_mem
916 u64 *local_mem = per_cpu(thread_imc_mem, cpu_id); in thread_imc_mem_alloc() local
919 if (!local_mem) { in thread_imc_mem_alloc()
930 local_mem = page_address(page); in thread_imc_mem_alloc()
932 per_cpu(thread_imc_mem, cpu_id) = local_mem; in thread_imc_mem_alloc()
1120 u64 ldbar_value, *local_mem = per_cpu(thread_imc_mem, smp_processor_id()); in thread_imc_event_add() local
1129 ldbar_value = ((u64)local_mem & THREAD_IMC_LDBAR_MASK) | THREAD_IMC_ENABLE; in thread_imc_event_add()
1200 u64 *local_mem = per_cpu(trace_imc_mem, cpu_id); in trace_imc_mem_alloc() local
1204 if (!local_mem) { in trace_imc_mem_alloc()
1212 local_mem = page_address(page); in trace_imc_mem_alloc()
1213 per_cpu(trace_imc_mem, cpu_id) = local_mem; in trace_imc_mem_alloc()
1216 rc = opal_imc_counters_init(OPAL_IMC_COUNTERS_TRACE, __pa((void *)local_mem), in trace_imc_mem_alloc()
1355 u64 local_mem, ldbar_value; in trace_imc_event_add() local
1358 local_mem = get_trace_imc_event_base_addr(); in trace_imc_event_add()
1359 ldbar_value = ((u64)local_mem & THREAD_IMC_LDBAR_MASK) | TRACE_IMC_ENABLE; in trace_imc_event_add()
1391 u64 local_mem = get_trace_imc_event_base_addr(); in trace_imc_event_stop() local
1393 memset((void *)local_mem, 0, sizeof(u64)); in trace_imc_event_stop()