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++;
1150 if (ref->refc == 0) {
1159 ++ref->refc;
1178 ref->refc--;
1179 if (ref->refc == 0) {
1187 } else if (ref->refc < 0) {
1188 ref->refc = 0;
1249 * Reduce the refc if any trace-imc event running
1254 imc_global_refc.refc--;
1378 if (ref->refc == 0) {
1386 ++ref->refc;
1421 ref->refc--;
1422 if (ref->refc == 0) {
1429 } else if (ref->refc < 0) {
1430 ref->refc = 0;
1458 * system, so set the refc.id to trace-imc.
1461 imc_global_refc.refc++;