Lines Matching defs:xp
991 __sx_slock_try(struct sx *sx, struct thread *td, uintptr_t *xp, bool fp
1001 while (__sx_can_read(td, *xp, fp)) {
1002 if (atomic_fcmpset_acq_ptr(&sx->sx_lock, xp,
1003 *xp + SX_ONE_SHARER)) {
1006 __func__, sx, (void *)*xp,
1007 (void *)(*xp + SX_ONE_SHARER));
1298 _sx_sunlock_try(struct sx *sx, struct thread *td, uintptr_t *xp)
1302 if (SX_SHARERS(*xp) > 1 || !(*xp & SX_LOCK_WAITERS)) {
1303 if (atomic_fcmpset_rel_ptr(&sx->sx_lock, xp,
1304 *xp - SX_ONE_SHARER)) {
1308 __func__, sx, (void *)*xp,
1309 (void *)(*xp - SX_ONE_SHARER));