Lines Matching refs:enabled
86 atomic_t enabled; member
246 { .enabled = { 1 }, \
249 { .enabled = { 0 }, \
259 return arch_atomic_read(&key->enabled); in static_key_count()
284 atomic_inc(&key->enabled); in static_key_slow_inc()
290 atomic_dec(&key->enabled); in static_key_slow_dec()
308 if (atomic_read(&key->enabled) != 0) { in static_key_enable()
309 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable()
312 atomic_set(&key->enabled, 1); in static_key_enable()
319 if (atomic_read(&key->enabled) != 1) { in static_key_disable()
320 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable()
323 atomic_set(&key->enabled, 0); in static_key_disable()
329 #define STATIC_KEY_INIT_TRUE { .enabled = ATOMIC_INIT(1) }
330 #define STATIC_KEY_INIT_FALSE { .enabled = ATOMIC_INIT(0) }