Home
last modified time | relevance | path

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

1234567

/arch/hexagon/include/asm/
Dspinlock.h28 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock()
43 static inline void arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock()
58 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock()
76 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock()
91 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock()
109 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock()
115 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
130 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
136 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
Dspinlock_types.h16 volatile unsigned int lock; member
22 volatile unsigned int lock; member
/arch/alpha/include/asm/
Dspinlock.h19 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
24 static inline void arch_spin_unlock(arch_spinlock_t * lock) in arch_spin_unlock()
30 static inline void arch_spin_lock(arch_spinlock_t * lock) in arch_spin_lock()
50 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
57 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock()
77 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock()
97 static inline int arch_read_trylock(arch_rwlock_t * lock) in arch_read_trylock()
119 static inline int arch_write_trylock(arch_rwlock_t * lock) in arch_write_trylock()
141 static inline void arch_read_unlock(arch_rwlock_t * lock) in arch_read_unlock()
157 static inline void arch_write_unlock(arch_rwlock_t * lock) in arch_write_unlock()
Dspinlock_types.h10 volatile unsigned int lock; member
16 volatile unsigned int lock; member
/arch/csky/include/asm/
Dspinlock.h14 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
37 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
65 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
71 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
76 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked()
81 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended()
99 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
116 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
122 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
150 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock()
[all …]
Dspinlock_types.h14 u32 lock; member
31 u32 lock; member
/arch/riscv/include/asm/
Dspinlock.h22 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
27 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
41 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
54 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock()
69 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock()
84 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock()
102 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock()
120 static inline void arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock()
130 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock()
Dspinlock_types.h14 volatile unsigned int lock; member
20 volatile unsigned int lock; member
/arch/sparc/include/asm/
Dspinlock_32.h16 #define arch_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0) argument
18 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
38 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
48 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
92 #define arch_read_lock(lock) \ argument
112 #define arch_read_unlock(lock) \ argument
133 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock()
177 #define arch_read_trylock(lock) \ argument
Dspinlock_types.h10 volatile unsigned char lock; member
20 volatile unsigned int lock; member
/arch/powerpc/include/asm/
Dspinlock.h51 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
56 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked()
66 static inline unsigned long __arch_spin_trylock(arch_spinlock_t *lock) in __arch_spin_trylock()
86 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
110 static inline void splpar_spin_yield(arch_spinlock_t *lock) {}; in splpar_spin_yield()
111 static inline void splpar_rw_yield(arch_rwlock_t *lock) {}; in splpar_rw_yield()
128 static inline void spin_yield(arch_spinlock_t *lock) in spin_yield()
136 static inline void rw_yield(arch_rwlock_t *lock) in rw_yield()
144 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
159 void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags()
[all …]
/arch/ia64/include/asm/
Dspinlock.h43 static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) in __ticket_spin_lock()
63 static __always_inline int __ticket_spin_trylock(arch_spinlock_t *lock) in __ticket_spin_trylock()
72 static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock) in __ticket_spin_unlock()
82 static inline int __ticket_spin_is_locked(arch_spinlock_t *lock) in __ticket_spin_is_locked()
89 static inline int __ticket_spin_is_contended(arch_spinlock_t *lock) in __ticket_spin_is_contended()
96 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
101 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked()
106 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended()
112 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
117 static __always_inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
[all …]
Dacenv.h20 ia64_acpi_acquire_global_lock(unsigned int *lock) in ia64_acpi_acquire_global_lock()
32 ia64_acpi_release_global_lock(unsigned int *lock) in ia64_acpi_release_global_lock()
/arch/openrisc/include/asm/
Dspinlock.h22 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument
23 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
25 #define arch_spin_relax(lock) cpu_relax() argument
26 #define arch_read_relax(lock) cpu_relax() argument
27 #define arch_write_relax(lock) cpu_relax() argument
/arch/x86/include/asm/
Dqspinlock.h14 static __always_inline u32 queued_fetch_set_pending_acquire(struct qspinlock *lock) in queued_fetch_set_pending_acquire()
43 static inline void native_queued_spin_unlock(struct qspinlock *lock) in native_queued_spin_unlock()
48 static inline void queued_spin_lock_slowpath(struct qspinlock *lock, u32 val) in queued_spin_lock_slowpath()
53 static inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock()
86 static inline bool virt_spin_lock(struct qspinlock *lock) in virt_spin_lock()
/arch/mips/include/asm/octeon/
Dcvmx-spinlock.h63 static inline void cvmx_spinlock_init(cvmx_spinlock_t *lock) in cvmx_spinlock_init()
74 static inline int cvmx_spinlock_locked(cvmx_spinlock_t *lock) in cvmx_spinlock_locked()
84 static inline void cvmx_spinlock_unlock(cvmx_spinlock_t *lock) in cvmx_spinlock_unlock()
103 static inline unsigned int cvmx_spinlock_trylock(cvmx_spinlock_t *lock) in cvmx_spinlock_trylock()
128 static inline void cvmx_spinlock_lock(cvmx_spinlock_t *lock) in cvmx_spinlock_lock()
/arch/arm/include/asm/
Dspinlock.h56 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
81 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
107 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
114 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked()
119 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked()
124 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended()
Dmcs_spinlock.h9 #define arch_mcs_spin_lock_contended(lock) \ argument
17 #define arch_mcs_spin_unlock_contended(lock) \ argument
/arch/arc/include/asm/
Dspinlock.h17 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
44 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
67 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
222 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
250 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
267 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
/arch/sh/include/asm/
Dspinlock_types.h10 volatile unsigned int lock; member
16 volatile unsigned int lock; member
Dspinlock-cas.h28 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
33 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
38 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
Dspinlock-llsc.h26 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock()
46 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock()
61 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock()
/arch/parisc/include/asm/
Dspinlock_types.h6 volatile unsigned int lock[4]; member
11 arch_spinlock_t lock; member
/arch/arm/mach-omap1/
Dsram.S49 lock: ldrh r4, [r2], #0 @ read back dpll value label
/arch/mips/include/asm/
Dspinlock.h22 static inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock()

1234567