Home
last modified time | relevance | path

Searched refs:slock (Results 1 – 8 of 8) sorted by relevance

/arch/arc/include/asm/
Dspinlock.h13 #define arch_spin_is_locked(x) ((x)->slock != __ARCH_SPIN_LOCK_UNLOCKED__)
28 : [slock] "r" (&(lock->slock)), in arch_spin_lock()
58 : [slock] "r" (&(lock->slock)), in arch_spin_trylock()
71 WRITE_ONCE(lock->slock, __ARCH_SPIN_LOCK_UNLOCKED__); in arch_spin_unlock()
237 : "r"(&(lock->slock)), "ir"(__ARCH_SPIN_LOCK_LOCKED__) in arch_spin_lock()
253 : "r"(&(lock->slock)) in arch_spin_trylock()
280 : "r"(&(lock->slock)) in arch_spin_unlock()
Dspinlock_types.h10 volatile unsigned int slock; member
/arch/arm/include/asm/
Dspinlock.h62 prefetchw(&lock->slock); in arch_spin_lock()
70 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_lock()
84 u32 slock; in arch_spin_trylock() local
86 prefetchw(&lock->slock); in arch_spin_trylock()
94 : "=&r" (slock), "=&r" (contended), "=&r" (res) in arch_spin_trylock()
95 : "r" (&lock->slock), "I" (1 << TICKET_SHIFT) in arch_spin_trylock()
Dspinlock_types.h13 u32 slock; member
/arch/powerpc/include/asm/
Dsimple_spinlock.h36 return lock.slock == 0; in arch_spin_value_unlocked()
63 : "r" (token), "r" (&lock->slock) in __arch_spin_trylock()
122 } while (unlikely(lock->slock != 0)); in arch_spin_lock()
141 } while (unlikely(lock->slock != 0)); in arch_spin_lock_flags()
152 lock->slock = 0; in arch_spin_unlock()
Dsimple_spinlock_types.h10 volatile unsigned int slock; member
/arch/powerpc/lib/
Dlocks.c25 lock_value = lock->slock; in splpar_spin_yield()
35 if (lock->slock != lock_value) in splpar_spin_yield()
/arch/parisc/kernel/
Dirq.c387 volatile unsigned int slock[4]; member
392 .slock = { 1,1,1,1 },
480 irq_stack = ALIGN(irq_stack + sizeof(irq_stack_union.slock), in execute_on_irq_stack()