Lines Matching refs:enabled
88 atomic_t enabled; member
111 atomic_t enabled; member
177 { .enabled = { 1 }, \
180 { .enabled = { 0 }, \
190 return atomic_read(&key->enabled); in static_key_count()
217 atomic_inc(&key->enabled); in static_key_slow_inc()
223 atomic_dec(&key->enabled); in static_key_slow_dec()
246 if (atomic_read(&key->enabled) != 0) { in static_key_enable()
247 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable()
250 atomic_set(&key->enabled, 1); in static_key_enable()
257 if (atomic_read(&key->enabled) != 1) { in static_key_disable()
258 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable()
261 atomic_set(&key->enabled, 0); in static_key_disable()
267 #define STATIC_KEY_INIT_TRUE { .enabled = ATOMIC_INIT(1) }
268 #define STATIC_KEY_INIT_FALSE { .enabled = ATOMIC_INIT(0) }