Home
last modified time | relevance | path

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

1234567

/include/linux/
Dspinlock_api_up.h19 #define assert_spin_locked(lock) do { (void)(lock); } while (0) argument
27 #define __LOCK(lock) \ argument
30 #define __LOCK_BH(lock) \ argument
33 #define __LOCK_IRQ(lock) \ argument
36 #define __LOCK_IRQSAVE(lock, flags) \ argument
39 #define __UNLOCK(lock) \ argument
42 #define __UNLOCK_BH(lock) \ argument
45 #define __UNLOCK_IRQ(lock) \ argument
48 #define __UNLOCK_IRQRESTORE(lock, flags) \ argument
51 #define _spin_lock(lock) __LOCK(lock) argument
[all …]
Dspinlock.h96 # define spin_lock_init(lock) \ argument
104 # define spin_lock_init(lock) \ argument
111 # define rwlock_init(lock) \ argument
118 # define rwlock_init(lock) \ argument
122 #define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock) argument
125 #define spin_is_contended(lock) ((lock)->break_lock) argument
129 #define spin_is_contended(lock) __raw_spin_is_contended(&(lock)->raw_lock) argument
131 #define spin_is_contended(lock) (((void)(lock), 0)) argument
139 #define spin_unlock_wait(lock) __raw_spin_unlock_wait(&(lock)->raw_lock) argument
152 #define _raw_spin_lock_flags(lock, flags) _raw_spin_lock(lock) argument
[all …]
Dspinlock_up.h23 static inline void __raw_spin_lock(raw_spinlock_t *lock) in __raw_spin_lock()
29 __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) in __raw_spin_lock_flags()
35 static inline int __raw_spin_trylock(raw_spinlock_t *lock) in __raw_spin_trylock()
44 static inline void __raw_spin_unlock(raw_spinlock_t *lock) in __raw_spin_unlock()
52 #define __raw_read_lock(lock) do { (void)(lock); } while (0) argument
53 #define __raw_write_lock(lock) do { (void)(lock); } while (0) argument
54 #define __raw_read_trylock(lock) ({ (void)(lock); 1; }) argument
55 #define __raw_write_trylock(lock) ({ (void)(lock); 1; }) argument
56 #define __raw_read_unlock(lock) do { (void)(lock); } while (0) argument
57 #define __raw_write_unlock(lock) do { (void)(lock); } while (0) argument
[all …]
Dseqlock.h34 spinlock_t lock; member
173 #define write_seqlock_irqsave(lock, flags) \ argument
175 #define write_seqlock_irq(lock) \ argument
177 #define write_seqlock_bh(lock) \ argument
180 #define write_sequnlock_irqrestore(lock, flags) \ argument
182 #define write_sequnlock_irq(lock) \ argument
184 #define write_sequnlock_bh(lock) \ argument
187 #define read_seqbegin_irqsave(lock, flags) \ argument
190 #define read_seqretry_irqrestore(lock, iv, flags) \ argument
Dmutex.h71 struct mutex *lock; member
115 static inline int mutex_is_locked(struct mutex *lock) in mutex_is_locked()
131 #define mutex_lock(lock) mutex_lock_nested(lock, 0) argument
132 #define mutex_lock_interruptible(lock) mutex_lock_interruptible_nested(lock, 0) argument
133 #define mutex_lock_killable(lock) mutex_lock_killable_nested(lock, 0) argument
139 # define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
140 # define mutex_lock_interruptible_nested(lock, subclass) mutex_lock_interruptible(lock) argument
141 # define mutex_lock_killable_nested(lock, subclass) mutex_lock_killable(lock) argument
Dwakelock.h78 static inline void wake_lock_init(struct wake_lock *lock, int type, in wake_lock_init()
80 static inline void wake_lock_destroy(struct wake_lock *lock) {} in wake_lock_destroy()
81 static inline void wake_lock(struct wake_lock *lock) {} in wake_lock()
82 static inline void wake_lock_timeout(struct wake_lock *lock, long timeout) {} in wake_lock_timeout()
83 static inline void wake_unlock(struct wake_lock *lock) {} in wake_unlock()
85 static inline int wake_lock_active(struct wake_lock *lock) { return 0; } in wake_lock_active()
Dgenalloc.h16 rwlock_t lock; member
25 spinlock_t lock; member
Dlockdep.h285 #define lockdep_set_class(lock, key) \ argument
287 #define lockdep_set_class_and_name(lock, key, name) \ argument
289 #define lockdep_set_class_and_subclass(lock, key, sub) \ argument
291 #define lockdep_set_subclass(lock, sub) \ argument
321 static inline void lock_set_subclass(struct lockdep_map *lock, in lock_set_subclass()
347 # define lockdep_init_map(lock, name, key, sub) \ argument
349 # define lockdep_set_class(lock, key) do { (void)(key); } while (0) argument
350 # define lockdep_set_class_and_name(lock, key, name) \ argument
352 #define lockdep_set_class_and_subclass(lock, key, sub) \ argument
354 #define lockdep_set_subclass(lock, sub) do { } while (0) argument
[all …]
Dproportions.h61 spinlock_t lock; /* protect the snapshot state */ member
109 spinlock_t lock; /* protect the snapshot state */ member
Dcyclomx.h48 spinlock_t lock; member
63 spinlock_t lock; member
Dplist.h84 spinlock_t *lock; member
128 plist_head_init(struct plist_head *head, spinlock_t *lock) in plist_head_init()
Dfs_struct.h8 rwlock_t lock; member
/include/asm-m32r/
Dspinlock.h28 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) argument
39 static inline int __raw_spin_trylock(raw_spinlock_t *lock) in __raw_spin_trylock()
72 static inline void __raw_spin_lock(raw_spinlock_t *lock) in __raw_spin_lock()
114 static inline void __raw_spin_unlock(raw_spinlock_t *lock) in __raw_spin_unlock()
301 static inline int __raw_read_trylock(raw_rwlock_t *lock) in __raw_read_trylock()
310 static inline int __raw_write_trylock(raw_rwlock_t *lock) in __raw_write_trylock()
319 #define _raw_spin_relax(lock) cpu_relax() argument
320 #define _raw_read_relax(lock) cpu_relax() argument
321 #define _raw_write_relax(lock) cpu_relax() argument
Dspinlock_types.h15 volatile int lock; member
/include/asm-generic/bitops/
Dext2-atomic.h4 #define ext2_set_bit_atomic(lock, nr, addr) \ argument
13 #define ext2_clear_bit_atomic(lock, nr, addr) \ argument
/include/net/sctp/
Dsctp.h207 #define sctp_spin_lock_irqsave(lock, flags) spin_lock_irqsave(lock, flags) argument
208 #define sctp_spin_unlock_irqrestore(lock, flags) \ argument
212 #define sctp_spin_lock(lock) spin_lock(lock) argument
213 #define sctp_spin_unlock(lock) spin_unlock(lock) argument
214 #define sctp_write_lock(lock) write_lock(lock) argument
215 #define sctp_write_unlock(lock) write_unlock(lock) argument
216 #define sctp_read_lock(lock) read_lock(lock) argument
217 #define sctp_read_unlock(lock) read_unlock(lock) argument
/include/media/
Dvideobuf-dvb.h14 struct mutex lock; member
34 struct mutex lock; member
/include/scsi/
Dlibsrp.h25 spinlock_t lock; member
32 spinlock_t lock; member
/include/net/irda/
Dirmod.h97 #define irda_lock(lock) (! test_and_set_bit(0, (void *) (lock))) argument
98 #define irda_unlock(lock) (test_and_clear_bit(0, (void *) (lock))) argument
/include/net/phonet/
Dpn_dev.h28 spinlock_t lock; member
/include/asm-mn10300/
Dbitops.h231 #define ext2_set_bit_atomic(lock, nr, addr) \ argument
233 #define ext2_clear_bit_atomic(lock, nr, addr) \ argument
/include/linux/lockd/
Dxdr.h63 struct nlm_lock lock; member
80 struct nlm_lock lock; member
/include/net/netfilter/
Dxt_rateest.h8 spinlock_t lock; member
/include/net/
Draw.h33 rwlock_t lock; member
Dinet_frag.h19 spinlock_t lock; member
37 rwlock_t lock; member

1234567