Lines Matching refs:static_key

13  * The use of 'struct static_key' directly, is now DEPRECATED. In addition
16 * struct static_key false = STATIC_KEY_INIT_FALSE;
17 * struct static_key true = STATIC_KEY_INIT_TRUE;
85 struct static_key {
133 static inline struct static_key *jump_entry_key(const struct jump_entry *entry)
137 return (struct static_key *)((unsigned long)&entry->key + offset);
152 static inline struct static_key *jump_entry_key(const struct jump_entry *entry)
154 return (struct static_key *)((unsigned long)entry->key & ~3UL);
205 static __always_inline bool static_key_false(struct static_key *key)
210 static __always_inline bool static_key_true(struct static_key *key)
228 extern bool static_key_slow_inc(struct static_key *key);
229 extern bool static_key_fast_inc_not_disabled(struct static_key *key);
230 extern void static_key_slow_dec(struct static_key *key);
231 extern bool static_key_slow_inc_cpuslocked(struct static_key *key);
232 extern void static_key_slow_dec_cpuslocked(struct static_key *key);
233 extern int static_key_count(struct static_key *key);
234 extern void static_key_enable(struct static_key *key);
235 extern void static_key_disable(struct static_key *key);
236 extern void static_key_enable_cpuslocked(struct static_key *key);
237 extern void static_key_disable_cpuslocked(struct static_key *key);
259 static __always_inline int static_key_count(struct static_key *key)
271 static __always_inline bool static_key_false(struct static_key *key)
278 static __always_inline bool static_key_true(struct static_key *key)
285 static inline bool static_key_fast_inc_not_disabled(struct static_key *key)
303 static inline void static_key_slow_dec(struct static_key *key)
320 static inline void static_key_enable(struct static_key *key)
331 static inline void static_key_disable(struct static_key *key)
356 * Two type wrappers around static_key, such that we can use compile time
363 struct static_key key;
367 struct static_key key;
420 if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \
424 static_key_count((struct static_key *)x) > 0; \
457 * The initial value is encoded in the LSB of static_key::entries,