Lines Matching refs:lock
72 spinlock_t lock; member
87 extern void ttm_lock_init(struct ttm_lock *lock);
96 extern void ttm_read_unlock(struct ttm_lock *lock);
108 extern int ttm_read_lock(struct ttm_lock *lock, bool interruptible);
125 extern int ttm_read_trylock(struct ttm_lock *lock, bool interruptible);
134 extern void ttm_write_unlock(struct ttm_lock *lock);
146 extern int ttm_write_lock(struct ttm_lock *lock, bool interruptible);
155 extern void ttm_lock_downgrade(struct ttm_lock *lock);
164 extern void ttm_suspend_lock(struct ttm_lock *lock);
173 extern void ttm_suspend_unlock(struct ttm_lock *lock);
187 extern int ttm_vt_lock(struct ttm_lock *lock, bool interruptible,
199 extern int ttm_vt_unlock(struct ttm_lock *lock);
208 extern void ttm_write_unlock(struct ttm_lock *lock);
220 extern int ttm_write_lock(struct ttm_lock *lock, bool interruptible);
239 static inline void ttm_lock_set_kill(struct ttm_lock *lock, bool val, in ttm_lock_set_kill() argument
242 lock->kill_takers = val; in ttm_lock_set_kill()
244 lock->signal = signal; in ttm_lock_set_kill()