Home
last modified time | relevance | path

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

12345678910>>...12

/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.h97 # define raw_spin_lock_init(lock) \ argument
105 # define raw_spin_lock_init(lock) \ argument
109 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock) argument
112 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock) argument
114 #define raw_spin_is_contended(lock) (((void)(lock), 0)) argument
174 #define do_raw_spin_lock_flags(lock, flags) do_raw_spin_lock(lock) argument
178 static inline void do_raw_spin_lock(raw_spinlock_t *lock) __acquires(lock) in do_raw_spin_lock()
186 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument
190 do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags) __acquires(lock) in do_raw_spin_lock_flags()
197 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 …]
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
43 # define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument
47 # define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
51 # define do_raw_read_lock_flags(lock, flags) \ argument
56 # define do_raw_write_lock_flags(lock, flags) \ argument
67 #define read_trylock(lock) __cond_lock(lock, _raw_read_trylock(lock)) argument
68 #define write_trylock(lock) __cond_lock(lock, _raw_write_trylock(lock)) argument
[all …]
Dspinlock_up.h29 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
35 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
45 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
54 #define arch_read_lock(lock) do { barrier(); (void)(lock); } while (0) argument
55 #define arch_write_lock(lock) do { barrier(); (void)(lock); } while (0) argument
56 #define arch_read_trylock(lock) ({ barrier(); (void)(lock); 1; }) argument
57 #define arch_write_trylock(lock) ({ barrier(); (void)(lock); 1; }) argument
58 #define arch_read_unlock(lock) do { barrier(); (void)(lock); } while (0) argument
59 #define arch_write_unlock(lock) do { barrier(); (void)(lock); } while (0) argument
62 #define arch_spin_is_locked(lock) ((void)(lock), 0) argument
[all …]
Dmutex.h92 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
153 #define mutex_lock(lock) mutex_lock_nested(lock, 0) argument
154 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) argument
155 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0) argument
156 #define mutex_lock_io(lock) mutex_lock_io_nested(lock, 0) argument
158 #define mutex_lock_nest_lock(lock, nest_lock) \ argument
170 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
171 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) argument
172 # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) argument
173 # define mutex_lock_nest_lock(lock, nest_lock) mutex_lock(lock) argument
[all …]
Dlockdep.h311 #define lockdep_set_class(lock, key) \ argument
313 #define lockdep_set_class_and_name(lock, key, name) \ argument
315 #define lockdep_set_class_and_subclass(lock, key, sub) \ argument
317 #define lockdep_set_subclass(lock, sub) \ argument
321 #define lockdep_set_novalidate_class(lock) \ argument
326 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) argument
328 static inline int lockdep_match_key(struct lockdep_map *lock, in lockdep_match_key()
360 static inline int lock_is_held(const struct lockdep_map *lock) in lock_is_held()
365 #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) argument
366 #define lockdep_is_held_type(lock, r) lock_is_held_type(&(lock)->dep_map, (r)) argument
[all …]
Dww_mutex.h95 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init()
289 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
325 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible()
343 static inline int __must_check ww_mutex_trylock(struct ww_mutex *lock) in ww_mutex_trylock()
356 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy()
367 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
Dseqlock.h406 spinlock_t lock; member
491 #define write_seqlock_irqsave(lock, flags) \ argument
526 static inline void read_seqbegin_or_lock(seqlock_t *lock, int *seq) in read_seqbegin_or_lock()
534 static inline int need_seqretry(seqlock_t *lock, int seq) in need_seqretry()
539 static inline void done_seqretry(seqlock_t *lock, int seq) in done_seqretry()
573 #define read_seqlock_excl_irqsave(lock, flags) \ argument
583 read_seqbegin_or_lock_irqsave(seqlock_t *lock, int *seq) in read_seqbegin_or_lock_irqsave()
596 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.h73 struct mutex *lock) in kref_put_mutex()
84 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
931 #define __wait_event_lock_irq(wq_head, condition, lock, cmd) \ argument
961 #define wait_event_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
988 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
996 #define __wait_event_interruptible_lock_irq(wq_head, condition, lock, cmd) \ argument
1028 #define wait_event_interruptible_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
1059 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
1068 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1099 #define wait_event_interruptible_lock_irq_timeout(wq_head, condition, lock, \ argument
1110 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
/include/asm-generic/
Dqspinlock.h20 static __always_inline int queued_spin_is_locked(struct qspinlock *lock) in queued_spin_is_locked()
39 static __always_inline int queued_spin_value_unlocked(struct qspinlock lock) in queued_spin_value_unlocked()
49 static __always_inline int queued_spin_is_contended(struct qspinlock *lock) in queued_spin_is_contended()
58 static __always_inline int queued_spin_trylock(struct qspinlock *lock) in queued_spin_trylock()
74 static __always_inline void queued_spin_lock(struct qspinlock *lock) in queued_spin_lock()
89 static __always_inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock()
99 static __always_inline bool virt_spin_lock(struct qspinlock *lock) in virt_spin_lock()
Dqrwlock.h38 static inline int queued_read_trylock(struct qrwlock *lock) in queued_read_trylock()
57 static inline int queued_write_trylock(struct qrwlock *lock) in queued_write_trylock()
72 static inline void queued_read_lock(struct qrwlock *lock) in queued_read_lock()
88 static inline void queued_write_lock(struct qrwlock *lock) in queued_write_lock()
102 static inline void queued_read_unlock(struct qrwlock *lock) in queued_read_unlock()
114 static inline void queued_write_unlock(struct qrwlock *lock) in queued_write_unlock()
/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/target/iscsi/
Discsi_target_stat.h31 spinlock_t lock; member
48 spinlock_t lock; member
64 spinlock_t lock; member
/include/drm/
Ddrm_modeset_lock.h103 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock) in drm_modeset_lock_fini()
112 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock) in drm_modeset_is_locked()
Ddrm_prime.h47 struct mutex lock; member
/include/rdma/
Drdma_counter.h32 struct mutex lock; member
41 struct mutex lock; member
/include/media/
Dvideobuf2-dvb.h28 struct mutex lock; member
47 struct mutex lock; member
/include/net/netns/
Dxdp.h9 struct mutex lock; member
/include/crypto/internal/
Dgeniv.h16 spinlock_t lock; member

12345678910>>...12