Lines Matching refs:lockp
1254 volatile uint8_t *lockp = (volatile uint8_t *)&mp->mutex_lockw; in mutex_trylock_adaptive() local
1279 if (set_lock_byte(lockp) == 0) { in mutex_trylock_adaptive()
1307 if (*lockp == 0 && set_lock_byte(lockp) == 0) { in mutex_trylock_adaptive()
1355 if (set_lock_byte(lockp) == 0) { in mutex_trylock_adaptive()
1406 volatile uint8_t *lockp; in mutex_queuelock_adaptive() local
1415 lockp = (volatile uint8_t *)&mp->mutex_lockw; in mutex_queuelock_adaptive()
1418 if (*lockp == 0 && set_lock_byte(lockp) == 0) in mutex_queuelock_adaptive()
1443 volatile uint64_t *lockp = (volatile uint64_t *)&mp->mutex_lockword64; in mutex_trylock_process() local
1485 if (set_lock_byte64(lockp, udp->pid) == 0) { in mutex_trylock_process()
1513 if ((*lockp & LOCKMASK64) == 0 && in mutex_trylock_process()
1522 if ((*lockp & LOCKMASK64) == 0 && in mutex_trylock_process()
1523 set_lock_byte64(lockp, udp->pid) == 0) { in mutex_trylock_process()
1560 if (set_lock_byte64(lockp, udp->pid) == 0) { in mutex_trylock_process()
2994 volatile uint8_t *lockp = (volatile uint8_t *)&mp->mutex_lockw; in pthread_spin_lock() local
3006 if (*lockp == 0) { /* lock byte appears to be clear */ in pthread_spin_lock()
3008 if (set_lock_byte(lockp) == 0) in pthread_spin_lock()