Lines Matching refs:refc
55 .refc = 0,
409 ref->refc = 0;
474 if (ref->refc == 0) {
488 ref->refc--;
489 if (ref->refc == 0) {
497 } else if (ref->refc < 0) {
499 ref->refc = 0;
567 if (ref->refc == 0) {
577 ++ref->refc;
705 * count lock for this core and directly zero "refc" for this core.
714 ref->refc = 0;
722 imc_global_refc.refc--;
740 imc_global_refc.refc--;
747 if (imc_global_refc.refc <= 0) {
748 imc_global_refc.refc = 0;
775 if (ref->refc == 0) {
789 ref->refc--;
790 if (ref->refc == 0) {
798 } else if (ref->refc < 0) {
800 ref->refc = 0;
851 if (ref->refc == 0) {
861 ++ref->refc;
869 * Take the global lock, and check the refc.id
877 * the system, so set the refc.id to core-imc.
880 imc_global_refc.refc++;
956 /* Reduce the refc if thread-imc event running on this cpu */
959 imc_global_refc.refc--;
1007 imc_global_refc.refc++;
1142 if (ref->refc == 0) {
1151 ++ref->refc;
1170 ref->refc--;
1171 if (ref->refc == 0) {
1179 } else if (ref->refc < 0) {
1180 ref->refc = 0;
1241 * Reduce the refc if any trace-imc event running
1246 imc_global_refc.refc--;
1370 if (ref->refc == 0) {
1378 ++ref->refc;
1413 ref->refc--;
1414 if (ref->refc == 0) {
1421 } else if (ref->refc < 0) {
1422 ref->refc = 0;
1450 * system, so set the refc.id to trace-imc.
1453 imc_global_refc.refc++;