Lines Matching refs:refc
56 .refc = 0,
416 ref->refc = 0;
481 if (ref->refc == 0) {
495 ref->refc--;
496 if (ref->refc == 0) {
504 } else if (ref->refc < 0) {
506 ref->refc = 0;
574 if (ref->refc == 0) {
584 ++ref->refc;
712 * count lock for this core and directly zero "refc" for this core.
721 ref->refc = 0;
729 imc_global_refc.refc--;
747 imc_global_refc.refc--;
754 if (imc_global_refc.refc <= 0) {
755 imc_global_refc.refc = 0;
782 if (ref->refc == 0) {
796 ref->refc--;
797 if (ref->refc == 0) {
805 } else if (ref->refc < 0) {
807 ref->refc = 0;
858 if (ref->refc == 0) {
868 ++ref->refc;
876 * Take the global lock, and check the refc.id
884 * the system, so set the refc.id to core-imc.
887 imc_global_refc.refc++;
963 /* Reduce the refc if thread-imc event running on this cpu */
966 imc_global_refc.refc--;
1014 imc_global_refc.refc++;
1149 if (ref->refc == 0) {
1158 ++ref->refc;
1177 ref->refc--;
1178 if (ref->refc == 0) {
1186 } else if (ref->refc < 0) {
1187 ref->refc = 0;
1248 * Reduce the refc if any trace-imc event running
1253 imc_global_refc.refc--;
1377 if (ref->refc == 0) {
1385 ++ref->refc;
1420 ref->refc--;
1421 if (ref->refc == 0) {
1428 } else if (ref->refc < 0) {
1429 ref->refc = 0;
1457 * system, so set the refc.id to trace-imc.
1460 imc_global_refc.refc++;