Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 257) sorted by relevance

1234567891011

/include/linux/
Dspinlock_api_up.h19 #define assert_raw_spin_locked(lock) do { (void)(lock); } while (0) argument
27 #define ___LOCK(lock) \ argument
30 #define __LOCK(lock) \ argument
33 #define __LOCK_BH(lock) \ argument
36 #define __LOCK_IRQ(lock) \ argument
39 #define __LOCK_IRQSAVE(lock, flags) \ argument
42 #define ___UNLOCK(lock) \ argument
45 #define __UNLOCK(lock) \ argument
48 #define __UNLOCK_BH(lock) \ argument
52 #define __UNLOCK_IRQ(lock) \ argument
[all …]
Drwlock_api_smp.h44 #define _raw_read_lock(lock) __raw_read_lock(lock) argument
48 #define _raw_write_lock(lock) __raw_write_lock(lock) argument
52 #define _raw_read_lock_bh(lock) __raw_read_lock_bh(lock) argument
56 #define _raw_write_lock_bh(lock) __raw_write_lock_bh(lock) argument
60 #define _raw_read_lock_irq(lock) __raw_read_lock_irq(lock) argument
64 #define _raw_write_lock_irq(lock) __raw_write_lock_irq(lock) argument
68 #define _raw_read_lock_irqsave(lock) __raw_read_lock_irqsave(lock) argument
72 #define _raw_write_lock_irqsave(lock) __raw_write_lock_irqsave(lock) argument
76 #define _raw_read_trylock(lock) __raw_read_trylock(lock) argument
80 #define _raw_write_trylock(lock) __raw_write_trylock(lock) argument
[all …]
Dspinlock.h96 # define raw_spin_lock_init(lock) \ argument
104 # define raw_spin_lock_init(lock) \ argument
108 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock) argument
111 #define raw_spin_is_contended(lock) ((lock)->break_lock) argument
115 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock) argument
117 #define raw_spin_is_contended(lock) (((void)(lock), 0)) argument
159 #define do_raw_spin_lock_flags(lock, flags) do_raw_spin_lock(lock) argument
163 static inline void do_raw_spin_lock(raw_spinlock_t *lock) __acquires(lock) in do_raw_spin_lock()
170 do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags) __acquires(lock) in do_raw_spin_lock_flags()
176 static inline int do_raw_spin_trylock(raw_spinlock_t *lock) in do_raw_spin_trylock()
[all …]
Dspinlock_api_smp.h47 #define _raw_spin_lock(lock) __raw_spin_lock(lock) argument
51 #define _raw_spin_lock_bh(lock) __raw_spin_lock_bh(lock) argument
55 #define _raw_spin_lock_irq(lock) __raw_spin_lock_irq(lock) argument
59 #define _raw_spin_lock_irqsave(lock) __raw_spin_lock_irqsave(lock) argument
63 #define _raw_spin_trylock(lock) __raw_spin_trylock(lock) argument
67 #define _raw_spin_trylock_bh(lock) __raw_spin_trylock_bh(lock) argument
71 #define _raw_spin_unlock(lock) __raw_spin_unlock(lock) argument
75 #define _raw_spin_unlock_bh(lock) __raw_spin_unlock_bh(lock) argument
79 #define _raw_spin_unlock_irq(lock) __raw_spin_unlock_irq(lock) argument
83 #define _raw_spin_unlock_irqrestore(lock, flags) __raw_spin_unlock_irqrestore(lock, flags) argument
[all …]
Dspinlock_up.h29 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
36 arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags()
43 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
53 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
62 #define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0) argument
63 #define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0) argument
64 #define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; }) argument
65 #define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; }) argument
66 #define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0) argument
67 #define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0) argument
[all …]
Drwlock.h20 # define rwlock_init(lock) \ argument
27 # define rwlock_init(lock) \ argument
33 #define do_raw_read_lock_flags(lock, flags) do_raw_read_lock(lock) argument
37 #define do_raw_write_lock_flags(lock, flags) do_raw_write_lock(lock) argument
42 # define do_raw_read_lock_flags(lock, flags) \ argument
47 # define do_raw_write_lock_flags(lock, flags) \ argument
61 #define read_trylock(lock) __cond_lock(lock, _raw_read_trylock(lock)) argument
62 #define write_trylock(lock) __cond_lock(lock, _raw_write_trylock(lock)) argument
64 #define write_lock(lock) _raw_write_lock(lock) argument
65 #define read_lock(lock) _raw_read_lock(lock) argument
[all …]
Dmutex.h69 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner()
98 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
143 static inline int mutex_is_locked(struct mutex *lock) in mutex_is_locked()
165 #define mutex_lock(lock) mutex_lock_nested(lock, 0) argument
166 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) argument
167 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0) argument
168 #define mutex_lock_io(lock) mutex_lock_io_nested(lock, 0) argument
170 #define mutex_lock_nest_lock(lock, nest_lock) \ argument
182 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
183 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) argument
[all …]
Dww_mutex.h86 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init()
278 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
314 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible()
332 static inline int __must_check ww_mutex_trylock(struct ww_mutex *lock) in ww_mutex_trylock()
345 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy()
356 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
Dlockdep.h386 #define lockdep_set_class(lock, key) \ argument
388 #define lockdep_set_class_and_name(lock, key, name) \ argument
390 #define lockdep_set_class_and_subclass(lock, key, sub) \ argument
392 #define lockdep_set_subclass(lock, sub) \ argument
396 #define lockdep_set_novalidate_class(lock) \ argument
401 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) argument
403 static inline int lockdep_match_key(struct lockdep_map *lock, in lockdep_match_key()
435 static inline int lock_is_held(struct lockdep_map *lock) in lock_is_held()
440 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) argument
441 #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r)) argument
[all …]
Dseqlock.h407 spinlock_t lock; member
492 #define write_seqlock_irqsave(lock, flags) \ argument
527 static inline void read_seqbegin_or_lock(seqlock_t *lock, int *seq) in read_seqbegin_or_lock()
535 static inline int need_seqretry(seqlock_t *lock, int seq) in need_seqretry()
540 static inline void done_seqretry(seqlock_t *lock, int seq) in done_seqretry()
574 #define read_seqlock_excl_irqsave(lock, flags) \ argument
584 read_seqbegin_or_lock_irqsave(seqlock_t *lock, int *seq) in read_seqbegin_or_lock_irqsave()
597 done_seqretry_irqrestore(seqlock_t *lock, int seq, unsigned long flags) in done_seqretry_irqrestore()
Dosq_lock.h28 static inline void osq_lock_init(struct optimistic_spin_queue *lock) in osq_lock_init()
36 static inline bool osq_is_locked(struct optimistic_spin_queue *lock) in osq_is_locked()
Drtmutex.h101 static inline int rt_mutex_is_locked(struct rt_mutex *lock) in rt_mutex_is_locked()
111 #define rt_mutex_lock(lock) rt_mutex_lock_nested(lock, 0) argument
114 #define rt_mutex_lock_nested(lock, subclass) rt_mutex_lock(lock) argument
Dkref.h78 struct mutex *lock) in kref_put_mutex()
89 spinlock_t *lock) in kref_put_lock()
Dflex_proportions.h49 raw_spinlock_t lock; /* Protect period and numerator */ member
81 raw_spinlock_t lock; /* Protect period and numerator */ member
Dwait.h35 spinlock_t lock; member
802 #define __wait_event_lock_irq(wq_head, condition, lock, cmd) \ argument
832 #define wait_event_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
859 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
867 #define __wait_event_interruptible_lock_irq(wq_head, condition, lock, cmd) \ argument
899 #define wait_event_interruptible_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
930 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
939 #define __wait_event_interruptible_lock_irq_timeout(wq_head, condition, \ argument
971 #define wait_event_interruptible_lock_irq_timeout(wq_head, condition, lock, \ argument
/include/asm-generic/
Dqrwlock.h59 static inline int queued_read_can_lock(struct qrwlock *lock) in queued_read_can_lock()
68 static inline int queued_write_can_lock(struct qrwlock *lock) in queued_write_can_lock()
78 static inline int queued_read_trylock(struct qrwlock *lock) in queued_read_trylock()
97 static inline int queued_write_trylock(struct qrwlock *lock) in queued_write_trylock()
112 static inline void queued_read_lock(struct qrwlock *lock) in queued_read_lock()
128 static inline void queued_write_lock(struct qrwlock *lock) in queued_write_lock()
141 static inline void queued_read_unlock(struct qrwlock *lock) in queued_read_unlock()
154 static inline u8 *__qrwlock_write_byte(struct qrwlock *lock) in __qrwlock_write_byte()
163 static inline void queued_write_unlock(struct qrwlock *lock) in queued_write_unlock()
Dqspinlock.h30 static __always_inline int queued_spin_is_locked(struct qspinlock *lock) in queued_spin_is_locked()
50 static __always_inline int queued_spin_value_unlocked(struct qspinlock lock) in queued_spin_value_unlocked()
60 static __always_inline int queued_spin_is_contended(struct qspinlock *lock) in queued_spin_is_contended()
69 static __always_inline int queued_spin_trylock(struct qspinlock *lock) in queued_spin_trylock()
83 static __always_inline void queued_spin_lock(struct qspinlock *lock) in queued_spin_lock()
98 static __always_inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock()
108 static __always_inline bool virt_spin_lock(struct qspinlock *lock) in virt_spin_lock()
/include/asm-generic/bitops/
Dext2-atomic.h9 #define ext2_set_bit_atomic(lock, nr, addr) \ argument
18 #define ext2_clear_bit_atomic(lock, nr, addr) \ argument
/include/drm/
Ddrm_modeset_lock.h98 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock) in drm_modeset_lock_fini()
107 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock) in drm_modeset_is_locked()
Ddrm_prime.h48 struct mutex lock; member
/include/drm/ttm/
Dttm_lock.h73 spinlock_t lock; member
240 static inline void ttm_lock_set_kill(struct ttm_lock *lock, bool val, in ttm_lock_set_kill()
/include/target/iscsi/
Discsi_target_stat.h31 spinlock_t lock; member
48 spinlock_t lock; member
64 spinlock_t lock; member
/include/media/
Dvideobuf2-dvb.h29 struct mutex lock; member
48 struct mutex lock; member
Dvideobuf-dvb.h18 struct mutex lock; member
38 struct mutex lock; member
/include/net/
Dsmc.h15 rwlock_t lock; member

1234567891011