Lines Matching refs:refc

56 	.refc = 0,
410 ref->refc = 0; in ppc_nest_imc_cpu_offline()
475 if (ref->refc == 0) { in nest_imc_counters_release()
489 ref->refc--; in nest_imc_counters_release()
490 if (ref->refc == 0) { in nest_imc_counters_release()
498 } else if (ref->refc < 0) { in nest_imc_counters_release()
500 ref->refc = 0; in nest_imc_counters_release()
568 if (ref->refc == 0) { in nest_imc_event_init()
578 ++ref->refc; in nest_imc_event_init()
715 ref->refc = 0; in ppc_core_imc_cpu_offline()
723 imc_global_refc.refc--; in ppc_core_imc_cpu_offline()
741 imc_global_refc.refc--; in reset_global_refc()
748 if (imc_global_refc.refc <= 0) { in reset_global_refc()
749 imc_global_refc.refc = 0; in reset_global_refc()
776 if (ref->refc == 0) { in core_imc_counters_release()
790 ref->refc--; in core_imc_counters_release()
791 if (ref->refc == 0) { in core_imc_counters_release()
799 } else if (ref->refc < 0) { in core_imc_counters_release()
801 ref->refc = 0; in core_imc_counters_release()
852 if (ref->refc == 0) { in core_imc_event_init()
862 ++ref->refc; in core_imc_event_init()
881 imc_global_refc.refc++; in core_imc_event_init()
960 imc_global_refc.refc--; in ppc_thread_imc_cpu_offline()
1008 imc_global_refc.refc++; in thread_imc_event_init()
1143 if (ref->refc == 0) { in thread_imc_event_add()
1152 ++ref->refc; in thread_imc_event_add()
1171 ref->refc--; in thread_imc_event_del()
1172 if (ref->refc == 0) { in thread_imc_event_del()
1180 } else if (ref->refc < 0) { in thread_imc_event_del()
1181 ref->refc = 0; in thread_imc_event_del()
1247 imc_global_refc.refc--; in ppc_trace_imc_cpu_offline()
1371 if (ref->refc == 0) { in trace_imc_event_add()
1379 ++ref->refc; in trace_imc_event_add()
1414 ref->refc--; in trace_imc_event_del()
1415 if (ref->refc == 0) { in trace_imc_event_del()
1422 } else if (ref->refc < 0) { in trace_imc_event_del()
1423 ref->refc = 0; in trace_imc_event_del()
1454 imc_global_refc.refc++; in trace_imc_event_init()