Home
last modified time | relevance | path

Searched refs:RW_READ_INCR (Results 1 – 14 of 14) sorted by relevance

/netbsd/src/sys/arch/powerpc/powerpc/
Dlock_stubs.S109 #if RW_READ_INCR != 32
110 #error RW_READ_INCR != 32, clrrXi need fixing
124 addi %r7,%r9,RW_READ_INCR
150 addi %r7,%r9,RW_READ_INCR
182 addi %r7,%r9,-RW_READ_INCR
Dgenassym.cf228 define RW_READ_INCR RW_READ_INCR
/netbsd/src/sys/kern/
Dkern_rwlock.c317 incr = RW_READ_INCR; in rw_vector_enter()
462 decr = RW_READ_INCR; in rw_vector_exit()
505 if (rcnt == 0 || decr == RW_READ_INCR) { in rw_vector_exit()
561 incr = RW_READ_INCR; in rw_vector_tryenter()
618 next = rw_cas(rw, owner, newown + RW_READ_INCR); in rw_downgrade()
651 newown |= RW_READ_INCR | RW_HAS_WAITERS | in rw_downgrade()
665 newown += (rcnt << RW_READ_COUNT_SHIFT) + RW_READ_INCR; in rw_downgrade()
702 for (owner = RW_READ_INCR;; owner = next) { in rw_tryupgrade()
710 if (__predict_false((next & RW_THREAD) != RW_READ_INCR)) { in rw_tryupgrade()
/netbsd/src/sys/arch/amd64/amd64/
Dlock_stubs.S190 leaq RW_READ_INCR(%rax), %rdx
227 cmpq $RW_READ_INCR, %rax
229 leaq -RW_READ_INCR(%rax), %rdx
267 leaq RW_READ_INCR(%rax), %rdx
Dgenassym.cf359 define RW_READ_INCR RW_READ_INCR
/netbsd/src/sys/sys/
Drwlock.h78 #define RW_READ_INCR (1UL << RW_READ_COUNT_SHIFT) macro
79 #define RW_THREAD ((uintptr_t)-RW_READ_INCR)
/netbsd/src/sys/arch/i386/i386/
Dlock_stubs.S117 leal RW_READ_INCR(%eax), %ecx
155 cmpl $RW_READ_INCR, %eax
157 leal -RW_READ_INCR(%eax), %ecx
199 leal RW_READ_INCR(%eax), %ecx
Dgenassym.cf359 define RW_READ_INCR RW_READ_INCR
/netbsd/src/sys/arch/alpha/alpha/
Dlock_stubs.s231 addq t0, RW_READ_INCR, t2
268 addq t0, RW_READ_INCR, v0
336 subq t0, RW_READ_INCR, t2
Dgenassym.cf209 define RW_READ_INCR RW_READ_INCR
/netbsd/src/lib/libpthread/
Dpthread_rwlock.c174 next = rw_cas(ptr, owner, owner + RW_READ_INCR); in pthread__rwlock_rdlock()
265 next = rw_cas(ptr, owner, owner + RW_READ_INCR); in pthread_rwlock_tryrdlock()
473 decr = RW_READ_INCR; in pthread_rwlock_unlock()
547 new += RW_READ_INCR; in pthread_rwlock_unlock()
Dpthread_int.h332 #define RW_READ_INCR (1 << RW_READ_COUNT_SHIFT) macro
333 #define RW_THREAD ((uintptr_t)-RW_READ_INCR)
/netbsd/src/sys/arch/vax/vax/
Dlock_stubs.S199 subl3 $RW_READ_INCR, %r2, %r3 /* decr. reader count (new) */
233 addl3 $RW_READ_INCR, %r2, %r3 /* incr reader count (new) */
Dgenassym.cf177 define RW_READ_INCR RW_READ_INCR