Lines Matching refs:queue
49 init_waitqueue_head(&lock->queue); in ttm_lock_init()
61 wake_up_all(&lock->queue); in ttm_read_unlock()
90 ret = wait_event_interruptible(lock->queue, in ttm_read_lock()
96 wait_event(lock->queue, __ttm_read_lock(lock)); in ttm_read_lock()
135 (lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
140 wait_event(lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
156 wake_up_all(&lock->queue); in ttm_write_unlock()
188 ret = wait_event_interruptible(lock->queue, in ttm_write_lock()
194 wake_up_all(&lock->queue); in ttm_write_lock()
199 wait_event(lock->queue, __ttm_write_lock(lock)); in ttm_write_lock()
215 wake_up_all(&lock->queue); in __ttm_vt_unlock()
256 ret = wait_event_interruptible(lock->queue, in ttm_vt_lock()
262 wake_up_all(&lock->queue); in ttm_vt_lock()
268 wait_event(lock->queue, __ttm_vt_lock(lock)); in ttm_vt_lock()
300 wake_up_all(&lock->queue); in ttm_suspend_unlock()
324 wait_event(lock->queue, __ttm_suspend_lock(lock)); in ttm_suspend_lock()