Lines Matching refs:kernel_lock
65 __cpu_simple_lock_t kernel_lock[CACHE_LINE_SIZE / sizeof(__cpu_simple_lock_t)] variable
79 LOCKDEBUG_BARRIER(kernel_lock, 1); in assert_sleepable()
118 LOCKDEBUG_ABORT(__func__, __LINE__, kernel_lock, &_kernel_lock_ops, msg)
165 __cpu_simple_lock_init(kernel_lock); in kernel_lock_init()
166 kernel_lock_dodebug = LOCKDEBUG_ALLOC(kernel_lock, &_kernel_lock_ops, in kernel_lock_init()
213 _KERNEL_LOCK_ASSERT(__SIMPLELOCK_LOCKED_P(kernel_lock)); in _kernel_lock()
221 LOCKDEBUG_WANTLOCK(kernel_lock_dodebug, kernel_lock, RETURN_ADDRESS, in _kernel_lock()
224 if (__predict_true(__cpu_simple_lock_try(kernel_lock))) { in _kernel_lock()
230 LOCKDEBUG_LOCKED(kernel_lock_dodebug, kernel_lock, NULL, in _kernel_lock()
268 while (__SIMPLELOCK_LOCKED_P(kernel_lock)) { in _kernel_lock()
286 } while (!__cpu_simple_lock_try(kernel_lock)); in _kernel_lock()
291 LOCKDEBUG_LOCKED(kernel_lock_dodebug, kernel_lock, NULL, in _kernel_lock()
294 LOCKSTAT_EVENT_RA(lsflag, kernel_lock, in _kernel_lock()
348 _KERNEL_LOCK_ASSERT(__SIMPLELOCK_LOCKED_P(kernel_lock)); in _kernel_unlock()
360 LOCKDEBUG_UNLOCKED(kernel_lock_dodebug, kernel_lock, in _kernel_unlock()
363 __cpu_simple_unlock(kernel_lock); in _kernel_unlock()
381 return __SIMPLELOCK_LOCKED_P(kernel_lock); in _kernel_locked_p()