Searched refs:ch_lock (Results 1 – 8 of 8) sorted by relevance
| /netbsd-src/sys/kern/ |
| H A D | subr_callback.c | 42 mutex_init(&ch->ch_lock, MUTEX_DEFAULT, ipl); in callback_head_init() 57 mutex_destroy(&ch->ch_lock); in callback_head_destroy() 69 mutex_enter(&ch->ch_lock); in callback_register() 72 mutex_exit(&ch->ch_lock); in callback_register() 79 mutex_enter(&ch->ch_lock); in callback_unregister() 81 cv_wait(&ch->ch_cv, &ch->ch_lock); in callback_unregister() 87 mutex_exit(&ch->ch_lock); in callback_unregister() 114 mutex_enter(&ch->ch_lock); in callback_run_enter() 116 mutex_exit(&ch->ch_lock); in callback_run_enter() 123 mutex_enter(&ch->ch_lock); in callback_run_leave() [all …]
|
| /netbsd-src/sys/dev/ata/ |
| H A D | ata_subr.c | 113 KASSERT(mutex_owned(&chp->ch_lock)); in ata_queue_get_active_xfer_locked() 198 mutex_init(&chp->ch_lock, MUTEX_DEFAULT, IPL_BIO); in ata_channel_init() 217 mutex_enter(&chp->ch_lock); in ata_channel_destroy() 218 callout_halt(&chp->c_timo_callout, &chp->ch_lock); in ata_channel_destroy() 220 mutex_exit(&chp->ch_lock); in ata_channel_destroy() 222 mutex_destroy(&chp->ch_lock); in ata_channel_destroy() 269 mutex_enter(&chp->ch_lock); in ata_channel_lock() 275 mutex_exit(&chp->ch_lock); in ata_channel_unlock() 281 KASSERT(mutex_owned(&chp->ch_lock)); in ata_channel_lock_owned() 306 KASSERT(mutex_owned(&chp->ch_lock)); in ata_queue_alloc_slot() [all …]
|
| H A D | ata.c | 469 cv_wait(&chp->ch_thr_idle, &chp->ch_lock); in atabus_thread() 551 KASSERT(mutex_owned(&chp->ch_lock)); in ata_is_thread_run() 559 KASSERT(mutex_owned(&chp->ch_lock)); in ata_thread_wake_locked() 679 cv_wait(&chp->ch_thr_idle, &chp->ch_lock); in atabus_detach() 1003 cv_timedwait(&chp->ch_queue->queue_idle, &chp->ch_lock, 1); in ata_channel_idle() 1043 cv_wait(&chp->ch_queue->c_active, &chp->ch_lock); in ata_exec_xfer() 1236 KASSERT(mutex_owned(&chp->ch_lock)); in ata_xfer_start() 1273 KASSERT(mutex_owned(&chp->ch_lock)); in ata_activate_xfer_locked() 1455 KASSERT(mutex_owned(&chp->ch_lock)); in ata_kill_active() 1513 cv_wait(&chq->queue_drain, &chp->ch_lock); in ata_kill_pending() [all …]
|
| H A D | atavar.h | 402 kmutex_t ch_lock; /* channel lock - queue */ member
|
| /netbsd-src/sys/arch/evbppc/wii/dev/ |
| H A D | exi.c | 72 kmutex_t ch_lock; member 135 mutex_init(&sc->sc_chan[chan].ch_lock, MUTEX_DEFAULT, IPL_VM); in exi_attach() 212 mutex_enter(&ch->ch_lock); in exi_select() 236 mutex_exit(&ch->ch_lock); in exi_unselect() 262 KASSERT(mutex_owned(&ch->ch_lock)); in exi_send_imm() 294 KASSERT(mutex_owned(&ch->ch_lock)); in exi_recv_imm() 326 KASSERT(mutex_owned(&ch->ch_lock)); in exi_recv_dma()
|
| /netbsd-src/sys/sys/ |
| H A D | callback.h | 43 kmutex_t ch_lock; member
|
| /netbsd-src/sys/arch/atari/dev/ |
| H A D | wdc_mb.c | 233 &wd_lock, 1, &chp->ch_lock)) in claim_hw()
|
| /netbsd-src/sys/dev/ic/ |
| H A D | wdc.c | 1298 &chp->ch_lock); in wdcwait()
|