Lines Matching refs:queue
48 init_waitqueue_head(&lock->queue); in ttm_lock_init()
60 wake_up_all(&lock->queue); in ttm_read_unlock()
88 ret = wait_event_interruptible(lock->queue, in ttm_read_lock()
91 wait_event(lock->queue, __ttm_read_lock(lock)); in ttm_read_lock()
127 (lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
129 wait_event(lock->queue, __ttm_read_trylock(lock, &locked)); in ttm_read_trylock()
143 wake_up_all(&lock->queue); in ttm_write_unlock()
174 ret = wait_event_interruptible(lock->queue, in ttm_write_lock()
179 wake_up_all(&lock->queue); in ttm_write_lock()
183 wait_event(lock->queue, __ttm_write_lock(lock)); in ttm_write_lock()
197 wake_up_all(&lock->queue); in __ttm_vt_unlock()
237 ret = wait_event_interruptible(lock->queue, in ttm_vt_lock()
242 wake_up_all(&lock->queue); in ttm_vt_lock()
247 wait_event(lock->queue, __ttm_vt_lock(lock)); in ttm_vt_lock()
277 wake_up_all(&lock->queue); in ttm_suspend_unlock()
300 wait_event(lock->queue, __ttm_suspend_lock(lock)); in ttm_suspend_lock()