Lines Matching refs:mtx
60 mtx_lock_spin(&t->mtx); in run_timer()
63 mtx_unlock_spin(&t->mtx); in run_timer()
68 mtx_unlock_spin(&t->mtx); in run_timer()
74 mtx_unlock_spin(&t->mtx); in run_timer()
82 mtx_init(&t->mtx, "dahdi timer lock", NULL, MTX_SPIN); in vchiq_init_timer()
102 mtx_lock_spin(&t->mtx); in vchiq_mod_timer()
104 mtx_unlock_spin(&t->mtx); in vchiq_mod_timer()
116 mtx_lock_spin(&t->mtx); in vchiq_del_timer_sync()
118 mtx_unlock_spin(&t->mtx); in vchiq_del_timer_sync()
120 mtx_destroy(&t->mtx); in vchiq_del_timer_sync()
310 mtx_init(&s->mtx, "sema lock", "VCHIQ sepmaphore backing lock", in _sema_init()
319 mtx_destroy(&s->mtx); in _sema_destroy()
327 mtx_lock(&s->mtx); in down()
330 cv_wait(&s->cv, &s->mtx); in down()
335 mtx_unlock(&s->mtx); in down()
345 mtx_lock(&s->mtx); in down_interruptible()
349 ret = cv_wait_sig(&s->cv, &s->mtx); in down_interruptible()
353 mtx_unlock(&s->mtx); in down_interruptible()
362 mtx_unlock(&s->mtx); in down_interruptible()
374 mtx_lock(&s->mtx); in down_trylock()
384 mtx_unlock(&s->mtx); in down_trylock()
392 mtx_lock(&s->mtx); in up()
397 mtx_unlock(&s->mtx); in up()