Lines Matching defs:lockp
33 __cpu_simple_lock_init(__cpu_simple_lock_t *lockp)
35 *lockp = __SIMPLELOCK_UNLOCKED;
39 __cpu_simple_lock_try(__cpu_simple_lock_t *lockp)
41 if (*lockp == __SIMPLELOCK_LOCKED)
43 *lockp = __SIMPLELOCK_LOCKED;
48 __cpu_simple_lock(__cpu_simple_lock_t *lockp)
50 while (!__cpu_simple_lock_try(lockp))
55 __cpu_simple_unlock(__cpu_simple_lock_t *lockp)
57 *lockp = __SIMPLELOCK_UNLOCKED;
61 __SIMPLELOCK_LOCKED_P(const __cpu_simple_lock_t *lockp)
63 return *lockp == __SIMPLELOCK_LOCKED;
67 __SIMPLELOCK_UNLOCKED_P(const __cpu_simple_lock_t *lockp)
69 return *lockp == __SIMPLELOCK_UNLOCKED;