Lines Matching refs:enabled
110 int n = atomic_read(&key->enabled); in static_key_count()
135 for (v = atomic_read(&key->enabled); v > 0; v = v1) { in static_key_slow_inc_cpuslocked()
136 v1 = atomic_cmpxchg(&key->enabled, v, v + 1); in static_key_slow_inc_cpuslocked()
142 if (atomic_read(&key->enabled) == 0) { in static_key_slow_inc_cpuslocked()
143 atomic_set(&key->enabled, -1); in static_key_slow_inc_cpuslocked()
149 atomic_set_release(&key->enabled, 1); in static_key_slow_inc_cpuslocked()
151 atomic_inc(&key->enabled); in static_key_slow_inc_cpuslocked()
169 if (atomic_read(&key->enabled) > 0) { in static_key_enable_cpuslocked()
170 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable_cpuslocked()
175 if (atomic_read(&key->enabled) == 0) { in static_key_enable_cpuslocked()
176 atomic_set(&key->enabled, -1); in static_key_enable_cpuslocked()
181 atomic_set_release(&key->enabled, 1); in static_key_enable_cpuslocked()
200 if (atomic_read(&key->enabled) != 1) { in static_key_disable_cpuslocked()
201 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable_cpuslocked()
206 if (atomic_cmpxchg(&key->enabled, 1, 0)) in static_key_disable_cpuslocked()
224 val = atomic_fetch_add_unless(&key->enabled, -1, 1); in static_key_slow_try_dec()
247 if (atomic_dec_and_test(&key->enabled)) in __static_key_slow_dec_cpuslocked()
396 bool enabled = static_key_enabled(key); in jump_label_type() local
400 return enabled ^ branch; in jump_label_type()