Lines Matching refs:uintptr_t
83 static inline uintptr_t in __weak_alias()
84 rw_cas(pthread_rwlock_t *ptr, uintptr_t o, uintptr_t n) in __weak_alias()
87 return (uintptr_t)atomic_cas_ptr(&ptr->ptr_owner, (void *)o, in __weak_alias()
139 pthread__rwlock_spin(uintptr_t owner) in pthread__rwlock_spin()
160 uintptr_t owner, next; in pthread__rwlock_rdlock()
168 for (owner = (uintptr_t)ptr->ptr_owner;; owner = next) { in pthread__rwlock_rdlock()
191 if ((owner & RW_THREAD) == (uintptr_t)self) in pthread__rwlock_rdlock()
197 owner = (uintptr_t)ptr->ptr_owner; in pthread__rwlock_rdlock()
249 uintptr_t owner, next; in pthread_rwlock_tryrdlock()
262 for (owner = (uintptr_t)ptr->ptr_owner;; owner = next) { in pthread_rwlock_tryrdlock()
279 uintptr_t owner, next; in pthread__rwlock_wrlock()
285 _DIAGASSERT(((uintptr_t)self & RW_FLAGMASK) == 0); in pthread__rwlock_wrlock()
290 for (owner = (uintptr_t)ptr->ptr_owner;; owner = next) { in pthread__rwlock_wrlock()
297 (uintptr_t)self | RW_WRITE_LOCKED); in pthread__rwlock_wrlock()
313 if ((owner & RW_THREAD) == (uintptr_t)self) in pthread__rwlock_wrlock()
319 owner = (uintptr_t)ptr->ptr_owner; in pthread__rwlock_wrlock()
370 uintptr_t owner, next; in pthread_rwlock_trywrlock()
380 _DIAGASSERT(((uintptr_t)self & RW_FLAGMASK) == 0); in pthread_rwlock_trywrlock()
382 for (owner = (uintptr_t)ptr->ptr_owner;; owner = next) { in pthread_rwlock_trywrlock()
385 next = rw_cas(ptr, owner, (uintptr_t)self | RW_WRITE_LOCKED); in pthread_rwlock_trywrlock()
446 uintptr_t owner, decr, new, next; in pthread_rwlock_unlock()
465 owner = (uintptr_t)ptr->ptr_owner; in pthread_rwlock_unlock()
468 decr = (uintptr_t)self | RW_WRITE_LOCKED; in pthread_rwlock_unlock()
469 if ((owner & RW_THREAD) != (uintptr_t)self) { in pthread_rwlock_unlock()
502 owner = (uintptr_t)ptr->ptr_owner; in pthread_rwlock_unlock()
515 _DIAGASSERT(((uintptr_t)thread & RW_FLAGMASK) == 0); in pthread_rwlock_unlock()
516 new = (uintptr_t)thread | RW_WRITE_LOCKED; in pthread_rwlock_unlock()
578 uintptr_t owner, set, newval, next; in pthread__rwlock_early()
588 owner = (uintptr_t)ptr->ptr_owner; in pthread__rwlock_early()
614 uintptr_t owner = (uintptr_t)ptr->ptr_owner; in _pthread_rwlock_held_np()
617 return (owner & RW_THREAD) == (uintptr_t)pthread__self(); in _pthread_rwlock_held_np()
624 uintptr_t owner = (uintptr_t)ptr->ptr_owner; in _pthread_rwlock_rdheld_np()
632 uintptr_t owner = (uintptr_t)ptr->ptr_owner; in _pthread_rwlock_wrheld_np()
635 ((uintptr_t)pthread__self() | RW_WRITE_LOCKED); in _pthread_rwlock_wrheld_np()