Home
last modified time | relevance | path

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

12345678910>>...13

/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.h45 #define _raw_read_lock(lock) __raw_read_lock(lock) argument
49 #define _raw_write_lock(lock) __raw_write_lock(lock) argument
53 #define _raw_read_lock_bh(lock) __raw_read_lock_bh(lock) argument
57 #define _raw_write_lock_bh(lock) __raw_write_lock_bh(lock) argument
61 #define _raw_read_lock_irq(lock) __raw_read_lock_irq(lock) argument
65 #define _raw_write_lock_irq(lock) __raw_write_lock_irq(lock) argument
69 #define _raw_read_lock_irqsave(lock) __raw_read_lock_irqsave(lock) argument
73 #define _raw_write_lock_irqsave(lock) __raw_write_lock_irqsave(lock) argument
77 #define _raw_read_trylock(lock) __raw_read_trylock(lock) argument
81 #define _raw_write_trylock(lock) __raw_write_trylock(lock) argument
[all …]
Dspinlock.h104 # define raw_spin_lock_init(lock) \ argument
112 # define raw_spin_lock_init(lock) \ argument
116 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock) argument
119 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock) argument
121 #define raw_spin_is_contended(lock) (((void)(lock), 0)) argument
184 static inline void do_raw_spin_lock(raw_spinlock_t *lock) __acquires(lock) in do_raw_spin_lock()
191 static inline int do_raw_spin_trylock(raw_spinlock_t *lock) in do_raw_spin_trylock()
201 static inline void do_raw_spin_unlock(raw_spinlock_t *lock) __releases(lock) in do_raw_spin_unlock()
215 #define raw_spin_trylock(lock) __cond_lock(lock, _raw_spin_trylock(lock)) argument
217 #define raw_spin_lock(lock) _raw_spin_lock(lock) argument
[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
52 #define read_trylock(lock) __cond_lock(lock, _raw_read_trylock(lock)) argument
53 #define write_trylock(lock) __cond_lock(lock, _raw_write_trylock(lock)) argument
55 #define write_lock(lock) _raw_write_lock(lock) argument
56 #define read_lock(lock) _raw_read_lock(lock) argument
59 #define write_lock_nested(lock, subclass) _raw_write_lock_nested(lock, subclass) argument
61 #define write_lock_nested(lock, subclass) _raw_write_lock(lock) argument
66 #define read_lock_irqsave(lock, flags) \ argument
71 #define write_lock_irqsave(lock, flags) \ argument
[all …]
Dspinlock_rt.h13 static inline void __rt_spin_lock_init(spinlock_t *lock, const char *name, in __rt_spin_lock_init()
42 static __always_inline void spin_lock(spinlock_t *lock) in spin_lock()
48 # define __spin_lock_nested(lock, subclass) \ argument
51 # define __spin_lock_nest_lock(lock, nest_lock) \ argument
56 # define __spin_lock_irqsave_nested(lock, flags, subclass) \ argument
69 # define __spin_lock_nested(lock, subclass) spin_lock(((void)(subclass), (lock))) argument
70 # define __spin_lock_nest_lock(lock, subclass) spin_lock(((void)(subclass), (lock))) argument
71 # define __spin_lock_irqsave_nested(lock, flags, subclass) \ argument
75 #define spin_lock_nested(lock, subclass) \ argument
78 #define spin_lock_nest_lock(lock, nest_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 …]
Dlocal_lock_internal.h54 #define __local_lock_init(lock) \ argument
65 #define __spinlock_nested_bh_init(lock) \ argument
76 #define __local_lock(lock) \ argument
82 #define __local_lock_irq(lock) \ argument
88 #define __local_lock_irqsave(lock, flags) \ argument
94 #define __local_unlock(lock) \ argument
100 #define __local_unlock_irq(lock) \ argument
106 #define __local_unlock_irqrestore(lock, flags) \ argument
112 #define __local_lock_nested_bh(lock) \ argument
118 #define __local_unlock_nested_bh(lock) \ argument
[all …]
Dmutex.h48 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
133 static inline int __devm_mutex_init(struct device *dev, struct mutex *lock) in __devm_mutex_init()
166 #define mutex_lock(lock) mutex_lock_nested(lock, 0) argument
167 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) argument
168 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0) argument
169 #define mutex_lock_io(lock) mutex_lock_io_nested(lock, 0) argument
171 #define mutex_lock_nest_lock(lock, nest_lock) \ argument
183 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
184 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) argument
185 # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) argument
[all …]
Dlocal_lock.h10 #define local_lock_init(lock) __local_lock_init(lock) argument
16 #define local_lock(lock) __local_lock(lock) argument
22 #define local_lock_irq(lock) __local_lock_irq(lock) argument
30 #define local_lock_irqsave(lock, flags) \ argument
37 #define local_unlock(lock) __local_unlock(lock) argument
43 #define local_unlock_irq(lock) __local_unlock_irq(lock) argument
51 #define local_unlock_irqrestore(lock, flags) \ argument
Dlockdep.h132 lockdep_init_map_waits(struct lockdep_map *lock, const char *name, in lockdep_init_map_waits()
139 lockdep_init_map_wait(struct lockdep_map *lock, const char *name, in lockdep_init_map_wait()
145 static inline void lockdep_init_map(struct lockdep_map *lock, const char *name, in lockdep_init_map()
157 #define lockdep_set_class(lock, key) \ argument
163 #define lockdep_set_class_and_name(lock, key, name) \ argument
169 #define lockdep_set_class_and_subclass(lock, key, sub) \ argument
175 #define lockdep_set_subclass(lock, sub) \ argument
189 #define lockdep_set_novalidate_class(lock) \ argument
199 #define lockdep_set_notrack_class(lock) \ argument
205 #define lockdep_match_class(lock, key) lockdep_match_key(&(lock)->dep_map, key) argument
[all …]
Drwlock_rt.h51 #define read_lock_irqsave(lock, flags) \ argument
58 #define read_trylock(lock) __cond_lock(lock, rt_read_trylock(lock)) argument
93 #define write_lock_nested(lock, subclass) rt_write_lock(((void)(subclass), (lock))) argument
107 #define write_lock_irqsave(lock, flags) \ argument
114 #define write_trylock(lock) __cond_lock(lock, rt_write_trylock(lock)) argument
116 #define write_trylock_irqsave(lock, flags) \ argument
148 #define rwlock_is_contended(lock) (((void)(lock), 0)) argument
Drtmutex.h42 static inline bool rt_mutex_base_is_locked(struct rt_mutex_base *lock) in rt_mutex_base_is_locked()
103 #define rt_mutex_lock(lock) rt_mutex_lock_nested(lock, 0) argument
104 #define rt_mutex_lock_nest_lock(lock, nest_lock) \ argument
112 #define rt_mutex_lock_nested(lock, subclass) rt_mutex_lock(lock) argument
113 #define rt_mutex_lock_nest_lock(lock, nest_lock) rt_mutex_lock(lock) argument
Dseqlock.h130 #define seqcount_raw_spinlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, raw_spinlock) argument
131 #define seqcount_spinlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, spinlock) argument
132 #define seqcount_rwlock_init(s, lock) seqcount_LOCKNAME_init(s, lock, rwlock) argument
133 #define seqcount_mutex_init(s, lock) seqcount_LOCKNAME_init(s, lock, mutex) argument
243 #define SEQCNT_RAW_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
244 #define SEQCNT_SPINLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
245 #define SEQCNT_RWLOCK_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
246 #define SEQCNT_MUTEX_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
247 #define SEQCNT_WW_MUTEX_ZERO(name, lock) SEQCOUNT_LOCKNAME_ZERO(name, lock) argument
965 #define write_seqlock_irqsave(lock, flags) \ argument
[all …]
Dosq_lock.h23 static inline void osq_lock_init(struct optimistic_spin_queue *lock) in osq_lock_init()
31 static inline bool osq_is_locked(struct optimistic_spin_queue *lock) in osq_is_locked()
Dww_mutex.h98 static inline void ww_mutex_init(struct ww_mutex *lock, in ww_mutex_init()
293 ww_mutex_lock_slow(struct ww_mutex *lock, struct ww_acquire_ctx *ctx) in ww_mutex_lock_slow()
329 ww_mutex_lock_slow_interruptible(struct ww_mutex *lock, in ww_mutex_lock_slow_interruptible()
351 static inline void ww_mutex_destroy(struct ww_mutex *lock) in ww_mutex_destroy()
364 static inline bool ww_mutex_is_locked(struct ww_mutex *lock) in ww_mutex_is_locked()
Dclk-provider.h545 spinlock_t *lock; member
585 clk_gate_flags, lock) \ argument
602 bit_idx, clk_gate_flags, lock) \ argument
619 bit_idx, clk_gate_flags, lock) \ argument
635 clk_gate_flags, lock) \ argument
653 lock) \ argument
714 spinlock_t *lock; member
783 clk_divider_flags, lock) \ argument
800 width, clk_divider_flags, lock) \ argument
819 lock) \ argument
[all …]
Dkfifo.h260 #define kfifo_is_empty_spinlocked(fifo, lock) \ argument
276 #define kfifo_is_empty_spinlocked_noirqsave(fifo, lock) \ argument
552 #define kfifo_in_spinlocked(fifo, buf, n, lock) \ argument
573 #define kfifo_in_spinlocked_noirqsave(fifo, buf, n, lock) \ argument
583 #define kfifo_in_locked(fifo, buf, n, lock) \ argument
622 #define kfifo_out_spinlocked(fifo, buf, n, lock) \ argument
645 #define kfifo_out_spinlocked_noirqsave(fifo, buf, n, lock) \ argument
657 #define kfifo_out_locked(fifo, buf, n, lock) \ argument
Dkref.h73 struct mutex *lock) in kref_put_mutex()
84 spinlock_t *lock) in kref_put_lock()
/include/asm-generic/
Dqspinlock.h51 static __always_inline int queued_spin_is_locked(struct qspinlock *lock) in queued_spin_is_locked()
71 static __always_inline int queued_spin_value_unlocked(struct qspinlock lock) in queued_spin_value_unlocked()
81 static __always_inline int queued_spin_is_contended(struct qspinlock *lock) in queued_spin_is_contended()
90 static __always_inline int queued_spin_trylock(struct qspinlock *lock) in queued_spin_trylock()
107 static __always_inline void queued_spin_lock(struct qspinlock *lock) in queued_spin_lock()
123 static __always_inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock()
133 static __always_inline bool virt_spin_lock(struct qspinlock *lock) in virt_spin_lock()
Dspinlock.h33 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
53 static __always_inline bool arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
63 static __always_inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
71 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
78 static __always_inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked()
85 static __always_inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended()
Dqrwlock.h44 static inline int queued_read_trylock(struct qrwlock *lock) in queued_read_trylock()
63 static inline int queued_write_trylock(struct qrwlock *lock) in queued_write_trylock()
78 static inline void queued_read_lock(struct qrwlock *lock) in queued_read_lock()
94 static inline void queued_write_lock(struct qrwlock *lock) in queued_write_lock()
108 static inline void queued_read_unlock(struct qrwlock *lock) in queued_read_unlock()
120 static inline void queued_write_unlock(struct qrwlock *lock) in queued_write_unlock()
130 static inline int queued_rwlock_is_contended(struct qrwlock *lock) in queued_rwlock_is_contended()
/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.h112 static inline void drm_modeset_lock_fini(struct drm_modeset_lock *lock) in drm_modeset_lock_fini()
121 static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock) in drm_modeset_is_locked()
130 static inline void drm_modeset_lock_assert_held(struct drm_modeset_lock *lock) in drm_modeset_lock_assert_held()
/include/target/iscsi/
Discsi_target_stat.h31 spinlock_t lock; member
48 spinlock_t lock; member
64 spinlock_t lock; member

12345678910>>...13