Home
last modified time | relevance | path

Searched refs:cv_waiters (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/kern/
H A Dkern_condvar.c52 * A bound below which cv_waiters is valid. Once cv_waiters reaches this bound,
58 if ((cvp)->cv_waiters < CV_WAITERS_BOUND) \
59 (cvp)->cv_waiters++; \
80 cvp->cv_waiters = 0; in cv_init()
437 if (cvp->cv_waiters == 0) in cv_signal()
440 if (cvp->cv_waiters == 0) { in cv_signal()
444 if (cvp->cv_waiters == CV_WAITERS_BOUND && sleepq_lookup(cvp) == NULL) { in cv_signal()
445 cvp->cv_waiters = 0; in cv_signal()
448 if (cvp->cv_waiters < CV_WAITERS_BOUN in cv_signal()
[all...]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-condvar.c75 atomic_set(&cvp->cv_waiters, 0); in __cv_init()
84 if (!atomic_read(&cvp->cv_waiters) && !atomic_read(&cvp->cv_refs)) { in cv_destroy_wakeup()
108 ASSERT3S(atomic_read(&cvp->cv_waiters), ==, 0); in __cv_destroy()
132 atomic_inc(&cvp->cv_waiters); in cv_wait_common()
146 if (atomic_dec_and_test(&cvp->cv_waiters)) { in cv_wait_common()
239 atomic_inc(&cvp->cv_waiters); in __cv_timedwait_common()
253 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_common()
346 atomic_inc(&cvp->cv_waiters); in __cv_timedwait_hires()
361 if (atomic_dec_and_test(&cvp->cv_waiters)) { in __cv_timedwait_hires()
441 if (atomic_read(&cvp->cv_waiters) > 0) in __cv_signal()
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dsound.h362 if ((x)->cv.cv_waiters != 0) { \
363 if ((x)->cv.cv_waiters > 1 && snd_verbose > 3) \
368 (x)->cv.cv_waiters); \
462 if ((x)->cv.cv_waiters != 0) \
H A Dchannel.h246 if ((x)->cv_waiters != 0) \
H A Dsound.c224 if (ch->intr_cv.cv_waiters == 0 && CHN_STOPPED(ch) && in pcm_killchans()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dspl_condvar.h50 int cv_waiters; member
/freebsd/sys/sys/
H A Dcondvar.h40 int cv_waiters; member
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dcondvar.h72 atomic_t cv_waiters; member