Lines Matching defs:oldcnt
64 u_int32_t cnt, oldcnt;
67 oldcnt = se->sy_thrcnt;
68 KASSERT((oldcnt & SY_THR_STATIC) == 0,
70 cnt = oldcnt | SY_THR_DRAINING;
71 } while (atomic_cmpset_acq_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
80 u_int32_t cnt, oldcnt;
83 oldcnt = se->sy_thrcnt;
84 if ((oldcnt & SY_THR_STATIC) != 0)
86 if ((oldcnt & (SY_THR_DRAINING | SY_THR_ABSENT)) != 0)
88 cnt = oldcnt + SY_THR_INCR;
89 } while (atomic_cmpset_acq_32(&se->sy_thrcnt, oldcnt, cnt) == 0);
96 u_int32_t cnt, oldcnt;
99 oldcnt = se->sy_thrcnt;
100 if ((oldcnt & SY_THR_STATIC) != 0)
102 cnt = oldcnt - SY_THR_INCR;
103 } while (atomic_cmpset_rel_32(&se->sy_thrcnt, oldcnt, cnt) == 0);