Lines Matching full:enabled
88 atomic_t enabled; member
111 atomic_t enabled; member
234 * We should be using ATOMIC_INIT() for initializing .enabled, but
236 * in 'low-level' headers. Thus, we are initializing .enabled with a
241 { .enabled = { 1 }, \
244 { .enabled = { 0 }, \
254 return atomic_read(&key->enabled); in static_key_count()
279 atomic_inc(&key->enabled); in static_key_slow_inc()
285 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) }
434 * enabled type branch instuction
448 * dynamic: instruction = enabled ^ branch
486 * Advanced usage; refcount, branch is enabled when: count != 0