Lines Matching defs:locks
11 * arbitrary-sized memory locations. This design uses locks that should
21 * locks and hashes the object pointers to find the one that it should use.
40 /// Number of locks. This allocates one page on 32-bit platforms, two on
73 /// locks for atomic operations
74 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} };
82 /// Locks a lock. In the current implementation, this is potentially
87 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
95 /// Locks a lock. In the current implementation, this is potentially
103 /// locks for atomic operations
104 static Lock locks[SPINLOCK_COUNT];
122 return locks + (hash & SPINLOCK_MASK);