Home | History | Annotate | Download | only in atomic

Lines Matching refs:PTR

62 #define HASH(PTR)	(((uintptr_t)(PTR) >> 3) & 127)
104 _atomic_cas_up(volatile uint32_t *ptr, uint32_t old, uint32_t new)
109 ret = *ptr;
113 *ptr = new;
122 _atomic_cas_64_up(volatile uint64_t *ptr, uint64_t old, uint64_t new)
127 ret = *ptr;
131 *ptr = new;
140 _atomic_cas_16_up(volatile uint16_t *ptr, uint16_t old, uint16_t new)
145 ret = *ptr;
149 *ptr = new;
158 _atomic_cas_8_up(volatile uint8_t *ptr, uint8_t old, uint8_t new)
163 ret = *ptr;
167 *ptr = new;
175 _atomic_cas_mp(volatile uint32_t *ptr, uint32_t old, uint32_t new)
180 lock = &atomic_locks[HASH(ptr)];
182 ret = *ptr;
184 *ptr = new;
193 _atomic_cas_64_mp(volatile uint64_t *ptr, uint64_t old, uint64_t new)
198 lock = &atomic_locks[HASH(ptr)];
200 ret = *ptr;
202 *ptr = new;
211 _atomic_cas_16_mp(volatile uint16_t *ptr, uint16_t old, uint16_t new)
216 lock = &atomic_locks[HASH(ptr)];
218 ret = *ptr;
220 *ptr = new;
228 _atomic_cas_8_mp(volatile uint8_t *ptr, uint8_t old, uint8_t new)
233 lock = &atomic_locks[HASH(ptr)];
235 ret = *ptr;
237 *ptr = new;
245 _atomic_cas_32(volatile uint32_t *ptr, uint32_t old, uint32_t new)
248 return (*_atomic_cas_fn)(ptr, old, new);
255 _atomic_cas_64(volatile uint64_t *ptr, uint64_t old, uint64_t new)
258 return (*_atomic_cas_64_fn)(ptr, old, new);
263 _atomic_cas_16(volatile uint16_t *ptr, uint16_t old, uint16_t new)
266 return (*_atomic_cas_16_fn)(ptr, old, new);
272 _atomic_cas_8(volatile uint8_t *ptr, uint8_t old, uint8_t new)
275 return (*_atomic_cas_8_fn)(ptr, old, new);