Lines Matching refs:tfd_lock
90 struct mtx tfd_lock; /* tfd mtx lock */ member
143 mtx_lock(&tfd->tfd_lock); in timerfd_jumped()
147 mtx_unlock(&tfd->tfd_lock); in timerfd_jumped()
175 mtx_unlock(&tfd->tfd_lock); in timerfd_jumped()
191 mtx_lock(&tfd->tfd_lock); in timerfd_read()
199 mtx_unlock(&tfd->tfd_lock); in timerfd_read()
206 mtx_unlock(&tfd->tfd_lock); in timerfd_read()
210 error = mtx_sleep(&tfd->tfd_count, &tfd->tfd_lock, in timerfd_read()
215 mtx_unlock(&tfd->tfd_lock); in timerfd_read()
222 mtx_unlock(&tfd->tfd_lock); in timerfd_read()
256 mtx_lock(&tfd->tfd_lock); in timerfd_poll()
262 mtx_unlock(&tfd->tfd_lock); in timerfd_poll()
272 mtx_lock(&tfd->tfd_lock); in filt_timerfddetach()
274 mtx_unlock(&tfd->tfd_lock); in filt_timerfddetach()
282 mtx_assert(&tfd->tfd_lock, MA_OWNED); in filt_timerfdread()
318 mtx_lock(&tfd->tfd_lock); in timerfd_stat()
321 mtx_unlock(&tfd->tfd_lock); in timerfd_stat()
341 mtx_destroy(&tfd->tfd_lock); in timerfd_close()
384 mtx_assert(&tfd->tfd_lock, MA_OWNED); in timerfd_curval()
466 mtx_init(&tfd->tfd_lock, "timerfd", NULL, MTX_DEF); in kern_timerfd_create()
467 callout_init_mtx(&tfd->tfd_callout, &tfd->tfd_lock, 0); in kern_timerfd_create()
468 knlist_init_mtx(&tfd->tfd_sel.si_note, &tfd->tfd_lock); in kern_timerfd_create()
499 mtx_lock(&tfd->tfd_lock); in kern_timerfd_gettime()
501 mtx_unlock(&tfd->tfd_lock); in kern_timerfd_gettime()
531 mtx_lock(&tfd->tfd_lock); in kern_timerfd_settime()
563 mtx_unlock(&tfd->tfd_lock); in kern_timerfd_settime()