Home
last modified time | relevance | path

Searched refs:ATOMIC_HASH (Results 1 – 2 of 2) sorted by relevance

/arch/sparc/lib/
Datomic32.c17 #define ATOMIC_HASH(a) (&__atomic_hash[(((unsigned long)a)>>8) & (ATOMIC_HASH_SIZE-1)]) macro
27 #define ATOMIC_HASH(a) (&dummy) macro
36 spin_lock_irqsave(ATOMIC_HASH(v), flags); \
41 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); \
51 spin_lock_irqsave(ATOMIC_HASH(v), flags); \
55 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); \
75 spin_lock_irqsave(ATOMIC_HASH(v), flags); in arch_atomic_xchg()
78 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); in arch_atomic_xchg()
88 spin_lock_irqsave(ATOMIC_HASH(v), flags); in arch_atomic_cmpxchg()
93 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); in arch_atomic_cmpxchg()
[all …]
/arch/parisc/include/asm/
Datomic.h30 # define ATOMIC_HASH(a) (&(__atomic_hash[ (((unsigned long) (a))/L1_CACHE_BYTES) & (ATOMIC_HASH_SI… macro
37 arch_spinlock_t *s = ATOMIC_HASH(l); \
43 arch_spinlock_t *s = ATOMIC_HASH(l); \