Lines Matching refs:refc
56 .refc = 0,
416 ref->refc = 0; in ppc_nest_imc_cpu_offline()
481 if (ref->refc == 0) { in nest_imc_counters_release()
495 ref->refc--; in nest_imc_counters_release()
496 if (ref->refc == 0) { in nest_imc_counters_release()
504 } else if (ref->refc < 0) { in nest_imc_counters_release()
506 ref->refc = 0; in nest_imc_counters_release()
574 if (ref->refc == 0) { in nest_imc_event_init()
584 ++ref->refc; in nest_imc_event_init()
721 ref->refc = 0; in ppc_core_imc_cpu_offline()
729 imc_global_refc.refc--; in ppc_core_imc_cpu_offline()
747 imc_global_refc.refc--; in reset_global_refc()
754 if (imc_global_refc.refc <= 0) { in reset_global_refc()
755 imc_global_refc.refc = 0; in reset_global_refc()
782 if (ref->refc == 0) { in core_imc_counters_release()
796 ref->refc--; in core_imc_counters_release()
797 if (ref->refc == 0) { in core_imc_counters_release()
805 } else if (ref->refc < 0) { in core_imc_counters_release()
807 ref->refc = 0; in core_imc_counters_release()
858 if (ref->refc == 0) { in core_imc_event_init()
868 ++ref->refc; in core_imc_event_init()
887 imc_global_refc.refc++; in core_imc_event_init()
966 imc_global_refc.refc--; in ppc_thread_imc_cpu_offline()
1014 imc_global_refc.refc++; in thread_imc_event_init()
1150 if (ref->refc == 0) { in thread_imc_event_add()
1159 ++ref->refc; in thread_imc_event_add()
1178 ref->refc--; in thread_imc_event_del()
1179 if (ref->refc == 0) { in thread_imc_event_del()
1187 } else if (ref->refc < 0) { in thread_imc_event_del()
1188 ref->refc = 0; in thread_imc_event_del()
1254 imc_global_refc.refc--; in ppc_trace_imc_cpu_offline()
1378 if (ref->refc == 0) { in trace_imc_event_add()
1386 ++ref->refc; in trace_imc_event_add()
1421 ref->refc--; in trace_imc_event_del()
1422 if (ref->refc == 0) { in trace_imc_event_del()
1429 } else if (ref->refc < 0) { in trace_imc_event_del()
1430 ref->refc = 0; in trace_imc_event_del()
1461 imc_global_refc.refc++; in trace_imc_event_init()