Searched refs:ATOMIC_HASH_SIZE (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/arch/sparc/lib/
H A Datomic32.c15 #define ATOMIC_HASH_SIZE 4 macro
16 #define ATOMIC_HASH(a) (&__atomic_hash[(((unsigned long)a)>>8) & (ATOMIC_HASH_SIZE-1)])
18 spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = {
19 [0 ... (ATOMIC_HASH_SIZE-1)] = __SPIN_LOCK_UNLOCKED(__atomic_hash)
25 #define ATOMIC_HASH_SIZE 1 macro
/linux-4.4.14/arch/parisc/lib/
H A Dbitops.c14 arch_spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] __lock_aligned = {
15 [0 ... (ATOMIC_HASH_SIZE-1)] = __ARCH_SPIN_LOCK_UNLOCKED
/linux-4.4.14/arch/tile/lib/
H A Datomic_32.c43 return p >= &atomic_locks[0] && p < &atomic_locks[ATOMIC_HASH_SIZE]; is_atomic_lock()
184 BUILD_BUG_ON(ATOMIC_HASH_SIZE & (ATOMIC_HASH_SIZE-1)); __init_atomic_per_cpu()
185 BUG_ON(ATOMIC_HASH_SIZE < nr_cpu_ids); __init_atomic_per_cpu()
198 BUILD_BUG_ON(ATOMIC_HASH_SIZE * sizeof(int) > PAGE_SIZE); __init_atomic_per_cpu()
203 * That should not produce more indices than ATOMIC_HASH_SIZE. __init_atomic_per_cpu()
205 BUILD_BUG_ON((PAGE_SIZE >> 3) > ATOMIC_HASH_SIZE); __init_atomic_per_cpu()
/linux-4.4.14/arch/parisc/include/asm/
H A Datomic.h28 # define ATOMIC_HASH_SIZE 4 macro
29 # define ATOMIC_HASH(a) (&(__atomic_hash[ (((unsigned long) (a))/L1_CACHE_BYTES) & (ATOMIC_HASH_SIZE-1) ]))
31 extern arch_spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] __lock_aligned;
/linux-4.4.14/include/asm-generic/bitops/
H A Datomic.h15 # define ATOMIC_HASH_SIZE 4 macro
16 # define ATOMIC_HASH(a) (&(__atomic_hash[ (((unsigned long) a)/L1_CACHE_BYTES) & (ATOMIC_HASH_SIZE-1) ]))
18 extern arch_spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] __lock_aligned;
/linux-4.4.14/arch/tile/include/asm/
H A Datomic_32.h211 #define ATOMIC_HASH_SIZE (1 << ATOMIC_HASH_SHIFT) macro

Completed in 226 milliseconds