Lines Matching refs:tq_lock
71 kmutex_t tq_lock; member
113 &tq->tq_lock, ddi_get_lbolt() + hz); in task_alloc()
118 mutex_exit(&tq->tq_lock); in task_alloc()
122 mutex_enter(&tq->tq_lock); in task_alloc()
137 mutex_exit(&tq->tq_lock); in task_free()
139 mutex_enter(&tq->tq_lock); in task_free()
156 mutex_enter(&tq->tq_lock); in taskq_dispatch()
159 mutex_exit(&tq->tq_lock); in taskq_dispatch()
175 mutex_exit(&tq->tq_lock); in taskq_dispatch()
194 mutex_enter(&tq->tq_lock); in taskq_dispatch_ent()
208 mutex_exit(&tq->tq_lock); in taskq_dispatch_ent()
214 mutex_enter(&tq->tq_lock); in taskq_wait()
216 cv_wait(&tq->tq_wait_cv, &tq->tq_lock); in taskq_wait()
217 mutex_exit(&tq->tq_lock); in taskq_wait()
227 mutex_enter(&tq->tq_lock); in taskq_thread()
232 cv_wait(&tq->tq_dispatch_cv, &tq->tq_lock); in taskq_thread()
241 mutex_exit(&tq->tq_lock); in taskq_thread()
247 mutex_enter(&tq->tq_lock); in taskq_thread()
253 mutex_exit(&tq->tq_lock); in taskq_thread()
288 mutex_init(&tq->tq_lock, NULL, MUTEX_DEFAULT, NULL); in taskq_create_proc()
302 mutex_enter(&tq->tq_lock); in taskq_create_proc()
305 mutex_exit(&tq->tq_lock); in taskq_create_proc()
323 mutex_enter(&tq->tq_lock); in taskq_destroy()
329 cv_wait(&tq->tq_wait_cv, &tq->tq_lock); in taskq_destroy()
337 mutex_exit(&tq->tq_lock); in taskq_destroy()
345 mutex_destroy(&tq->tq_lock); in taskq_destroy()