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()
1149 if (ref->refc == 0) { in thread_imc_event_add()
1158 ++ref->refc; in thread_imc_event_add()
1177 ref->refc--; in thread_imc_event_del()
1178 if (ref->refc == 0) { in thread_imc_event_del()
1186 } else if (ref->refc < 0) { in thread_imc_event_del()
1187 ref->refc = 0; in thread_imc_event_del()
1253 imc_global_refc.refc--; in ppc_trace_imc_cpu_offline()
1377 if (ref->refc == 0) { in trace_imc_event_add()
1385 ++ref->refc; in trace_imc_event_add()
1420 ref->refc--; in trace_imc_event_del()
1421 if (ref->refc == 0) { in trace_imc_event_del()
1428 } else if (ref->refc < 0) { in trace_imc_event_del()
1429 ref->refc = 0; in trace_imc_event_del()
1460 imc_global_refc.refc++; in trace_imc_event_init()