Lines Matching refs:enabled
86 atomic_t enabled; member
247 { .enabled = { 1 }, \
250 { .enabled = { 0 }, \
260 return raw_atomic_read(&key->enabled); in static_key_count()
291 v = atomic_read(&key->enabled); in static_key_fast_inc_not_disabled()
295 } while (!likely(atomic_try_cmpxchg(&key->enabled, &v, v + 1))); in static_key_fast_inc_not_disabled()
303 atomic_dec(&key->enabled); in static_key_slow_dec()
321 if (atomic_read(&key->enabled) != 0) { in static_key_enable()
322 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable()
325 atomic_set(&key->enabled, 1); in static_key_enable()
332 if (atomic_read(&key->enabled) != 1) { in static_key_disable()
333 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable()
336 atomic_set(&key->enabled, 0); in static_key_disable()
342 #define STATIC_KEY_INIT_TRUE { .enabled = ATOMIC_INIT(1) }
343 #define STATIC_KEY_INIT_FALSE { .enabled = ATOMIC_INIT(0) }