Lines Matching refs:wq
196 static void aio_workq_init(aio_workq_t wq);
197 static void aio_workq_lock_spin(aio_workq_t wq);
198 static void aio_workq_unlock(aio_workq_t wq);
199 static lck_mtx_t* aio_workq_mutex(aio_workq_t wq);
301 aio_workq_init(aio_workq_t wq)
303 TAILQ_INIT(&wq->aioq_entries);
304 wq->aioq_count = 0;
305 lck_mtx_init(&wq->aioq_mtx, aio_queue_lock_grp, aio_lock_attr);
306 wq->aioq_waitq = wait_queue_alloc(SYNC_POLICY_FIFO);
479 aio_workq_lock_spin(aio_workq_t wq)
481 lck_mtx_lock_spin(aio_workq_mutex(wq));
485 aio_workq_unlock(aio_workq_t wq)
487 lck_mtx_unlock(aio_workq_mutex(wq));
491 aio_workq_mutex(aio_workq_t wq)
493 return &wq->aioq_mtx;