| /include/linux/ |
| D | spinlock_api_up.h | 19 #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 …]
|
| D | rwlock_api_smp.h | 45 #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 …]
|
| D | spinlock.h | 104 # 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 …]
|
| D | spinlock_api_smp.h | 47 #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 …]
|
| D | rwlock.h | 20 # 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 …]
|
| D | spinlock_rt.h | 13 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 …]
|
| D | spinlock_up.h | 29 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 …]
|
| D | local_lock_internal.h | 54 #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 …]
|
| D | mutex.h | 48 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 …]
|
| D | local_lock.h | 10 #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
|
| D | lockdep.h | 132 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 …]
|
| D | rwlock_rt.h | 51 #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
|
| D | rtmutex.h | 42 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
|
| D | seqlock.h | 130 #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 …]
|
| D | osq_lock.h | 23 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()
|
| D | ww_mutex.h | 98 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()
|
| D | clk-provider.h | 545 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 …]
|
| D | kfifo.h | 260 #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
|
| D | kref.h | 73 struct mutex *lock) in kref_put_mutex() 84 spinlock_t *lock) in kref_put_lock()
|
| /include/asm-generic/ |
| D | qspinlock.h | 51 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()
|
| D | spinlock.h | 33 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()
|
| D | qrwlock.h | 44 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/ |
| D | ext2-atomic.h | 9 #define ext2_set_bit_atomic(lock, nr, addr) \ argument 18 #define ext2_clear_bit_atomic(lock, nr, addr) \ argument
|
| /include/drm/ |
| D | drm_modeset_lock.h | 112 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/ |
| D | iscsi_target_stat.h | 31 spinlock_t lock; member 48 spinlock_t lock; member 64 spinlock_t lock; member
|