Lines Matching refs:key
97 static inline int static_key_count(struct static_key *key) in static_key_count() argument
99 return atomic_read(&key->enabled); in static_key_count()
109 inline struct jump_entry *jump_label_get_entries(struct static_key *key) in jump_label_get_entries() argument
111 return (struct jump_entry *)((unsigned long)key->entries in jump_label_get_entries()
115 static inline bool jump_label_get_branch_default(struct static_key *key) in jump_label_get_branch_default() argument
117 if (((unsigned long)key->entries & JUMP_LABEL_TYPE_MASK) == in jump_label_get_branch_default()
123 static __always_inline bool static_key_false(struct static_key *key) in static_key_false() argument
125 return arch_static_branch(key); in static_key_false()
128 static __always_inline bool static_key_true(struct static_key *key) in static_key_true() argument
130 return !static_key_false(key); in static_key_true()
144 extern void static_key_slow_inc(struct static_key *key);
145 extern void static_key_slow_dec(struct static_key *key);
162 static __always_inline bool static_key_false(struct static_key *key) in static_key_false() argument
164 if (unlikely(static_key_count(key) > 0)) in static_key_false()
169 static __always_inline bool static_key_true(struct static_key *key) in static_key_true() argument
171 if (likely(static_key_count(key) > 0)) in static_key_true()
176 static inline void static_key_slow_inc(struct static_key *key) in static_key_slow_inc() argument
179 atomic_inc(&key->enabled); in static_key_slow_inc()
182 static inline void static_key_slow_dec(struct static_key *key) in static_key_slow_dec() argument
185 atomic_dec(&key->enabled); in static_key_slow_dec()
211 static inline bool static_key_enabled(struct static_key *key) in static_key_enabled() argument
213 return static_key_count(key) > 0; in static_key_enabled()