/openbsd/sys/arch/sparc64/include/ |
H A D | atomic.h | 30 #define atomic_cas_uint(_p, _e, _n) _atomic_cas_uint((_p), (_e), (_n)) macro 70 _def_atomic_swap(_atomic_swap_uint, unsigned int, atomic_cas_uint) in _def_atomic_swap() argument 108 _def_atomic_op_nv(_atomic_add_int_nv, unsigned int, atomic_cas_uint, +) 110 _def_atomic_op_nv(_atomic_sub_int_nv, unsigned int, atomic_cas_uint, -) 137 r = atomic_cas_uint(uip, e, e | v); in atomic_setbits_int() 149 r = atomic_cas_uint(uip, e, e & ~v); in atomic_clearbits_int()
|
/openbsd/sys/arch/m88k/include/ |
H A D | atomic.h | 22 #define atomic_cas_uint atomic_cas_uint_mp macro 115 #define atomic_cas_uint atomic_cas_uint_sp macro 137 ((unsigned long)atomic_cas_uint((unsigned int *)p, (unsigned int)o, \ 140 ((void *)atomic_cas_uint((void *)p, (unsigned int)o, (unsigned int)n)) 164 #define atomic_cas_uint UNIMPLEMENTED macro
|
/openbsd/lib/librthread/ |
H A D | rthread_rwlock.c | 108 } while (atomic_cas_uint(&rwlock->value, val, val + 1) != val); in _rthread_rwlock_tryrdlock() 149 if (atomic_cas_uint(&rwlock->value, val, new) == val) { in _rthread_rwlock_timedrdlock() 183 if (atomic_cas_uint(&rwlock->value, UNLOCKED, WRITER) != UNLOCKED) in _rthread_rwlock_tryrwlock() 226 if (atomic_cas_uint(&rwlock->value, val, new) == val) { in _rthread_rwlock_timedwrlock() 273 } while (atomic_cas_uint(&rwlock->value, val, new) != val); in pthread_rwlock_unlock()
|
H A D | rthread_sem.c | 67 if (atomic_cas_uint(&sem->value, val, val - 1) == val) { in _sem_wait() 292 if (atomic_cas_uint(&sem->value, val, val - 1) == val) { in sem_trywait()
|
/openbsd/sys/sys/ |
H A D | atomic.h | 33 #ifndef atomic_cas_uint 35 atomic_cas_uint(volatile unsigned int *p, unsigned int o, unsigned int n) in atomic_cas_uint() function
|
/openbsd/lib/libc/thread/ |
H A D | rthread_mutex.c | 101 if (atomic_cas_uint(&mutex->lock, UNLOCKED, LOCKED) == UNLOCKED) { in _rthread_mutex_trylock() 179 lock = atomic_cas_uint(&mutex->lock, UNLOCKED, LOCKED); in _rthread_mutex_timedlock()
|
/openbsd/regress/sys/netinet/tcpthread/ |
H A D | tcpthread.c | 121 if ((int)atomic_cas_uint(connectp, -1, sock) != -1) { in connect_socket() 203 if ((int)atomic_cas_uint(acceptp, -1, sock) != -1) { in accept_socket() 263 if ((int)atomic_cas_uint(sockp, sock, -1) != sock) { in send_routine() 302 if ((int)atomic_cas_uint(sockp, sock, -1) != sock) { in recv_routine() 456 if ((int)atomic_cas_uint(sockp, sock, -1) != sock) { in unsplice_routine()
|
/openbsd/sys/arch/i386/i386/ |
H A D | acpi_machdep.c | 249 } while (atomic_cas_uint(lock, old, new) != old); in acpi_acquire_glk() 267 } while (atomic_cas_uint(lock, old, new) != old); in acpi_release_glk()
|
H A D | pmap.c | 2669 while (atomic_cas_uint(&tlb_shoot_wait, 0, wait) != 0) { in pmap_tlb_shootpage() 2707 while (atomic_cas_uint(&tlb_shoot_wait, 0, wait) != 0) { in pmap_tlb_shootrange() 2745 while (atomic_cas_uint(&tlb_shoot_wait, 0, wait) != 0) { in pmap_tlb_shoottlb() 2781 while (atomic_cas_uint(&tlb_shoot_wait, 0, wait) != 0) { in pmap_tlb_droppmap()
|
/openbsd/sys/arch/mips64/include/ |
H A D | atomic.h | 77 #define atomic_cas_uint(_p, _o, _n) _atomic_cas_uint((_p), (_o), (_n)) macro
|
/openbsd/share/man/man9/ |
H A D | Makefile | 6 MAN= aml_evalnode.9 atomic_add_int.9 atomic_cas_uint.9 \
|
/openbsd/sys/arch/amd64/amd64/ |
H A D | acpi_machdep.c | 307 } while (atomic_cas_uint(lock, old, new) != old); in acpi_acquire_glk() 325 } while (atomic_cas_uint(lock, old, new) != old); in acpi_release_glk()
|
H A D | tsc.c | 476 while (atomic_cas_uint(&tsc_egress_barrier, 2, 0) != 2) in tsc_test_sync_ap()
|
/openbsd/sys/arch/sh/include/ |
H A D | atomic.h | 43 #define atomic_cas_uint(_p, _o, _n) _atomic_cas_uint((_p), (_o), (_n)) macro
|
/openbsd/sys/arch/powerpc/include/ |
H A D | atomic.h | 71 #define atomic_cas_uint(_p, _o, _n) _atomic_cas_uint((_p), (_o), (_n)) macro
|
/openbsd/sys/arch/powerpc64/include/ |
H A D | atomic.h | 71 #define atomic_cas_uint(_p, _o, _n) _atomic_cas_uint((_p), (_o), (_n)) macro
|
/openbsd/sys/arch/arm/include/ |
H A D | atomic.h | 41 #define atomic_cas_uint(_p, _e, _n) _atomic_cas_uint((_p), (_e), (_n)) in _def_atomic_cas() macro
|
/openbsd/sys/net/ |
H A D | if_loop.c | 281 atomic_cas_uint(&rt->rt_mtu, 0, LOMTU); in lortrequest()
|
/openbsd/sys/arch/hppa/include/ |
H A D | atomic.h | 92 #define atomic_cas_uint(_p, _o, _n) _atomic_cas_uint((_p), (_o), (_n)) macro
|
/openbsd/sys/kern/ |
H A D | subr_kubsan.c | 523 } while (atomic_cas_uint(line, prev, prev | LOCATION_REPORTED) != prev); in kubsan_is_reported() 744 if (atomic_cas_uint(&kubsan_slot, nslots, 0) != nslots) { in kubsan_report()
|
H A D | kern_descrip.c | 214 if (atomic_cas_uint(&nfp->f_count, count, count + 1) == count) in fd_iterfile() 486 } while (atomic_cas_uint(&fp->f_flag, prev, tmp) != prev); in sys_fcntl()
|
/openbsd/sys/arch/i386/include/ |
H A D | atomic.h | 62 #define atomic_cas_uint(_p, _e, _n) _atomic_cas_uint((_p), (_e), (_n)) macro
|
/openbsd/sys/arch/amd64/include/ |
H A D | atomic.h | 67 #define atomic_cas_uint(_p, _e, _n) _atomic_cas_uint((_p), (_e), (_n)) macro
|
/openbsd/sys/arch/powerpc64/powerpc64/ |
H A D | pmap.c | 397 if (atomic_cas_uint(&pmap_vsid[vsid / 32], bits, in pmap_alloc_vsid() 414 if (atomic_cas_uint(&pmap_vsid[vsid / 32], bits, in pmap_free_vsid()
|
/openbsd/sys/netinet/ |
H A D | ip_icmp.c | 1061 atomic_cas_uint(&rt->rt_mtu, rtmtu, mtu); in icmp_mtudisc()
|