• Home
  • Raw
  • Download

Lines Matching refs:key

342 #define __classhashfn(key)	hash_long((unsigned long)key, CLASSHASH_BITS)  argument
343 #define classhashentry(key) (classhash_table + __classhashfn((key))) argument
364 static inline u64 iterate_chain_key(u64 key, u32 idx) in iterate_chain_key() argument
366 u32 k0 = key, k1 = key >> 32; in iterate_chain_key()
581 const char *__get_key_name(const struct lockdep_subclass_key *key, char *str) in __get_key_name() argument
583 return kallsyms_lookup((unsigned long)key, NULL, NULL, NULL, str); in __get_key_name()
637 name = __get_key_name(class->key, str); in __print_lock_name()
666 name = __get_key_name(lock->key->subkeys, str); in print_lockdep_cache()
781 if (new_class->key - new_class->subclass == class->key) in count_matching_names()
793 struct lockdep_subclass_key *key; in look_up_lock_class() local
811 if (unlikely(!lock->key)) in look_up_lock_class()
823 key = lock->key->subkeys + subclass; in look_up_lock_class()
825 hash_head = classhashentry(key); in look_up_lock_class()
834 if (class->key == key) { in look_up_lock_class()
840 lock->key != &__lockdep_no_validate__); in look_up_lock_class()
869 lock->key = (void *)can_addr; in assign_lock_key()
871 lock->key = (void *)can_addr; in assign_lock_key()
873 lock->key = (void *)lock; in assign_lock_key()
1106 static inline struct hlist_head *keyhashentry(const struct lock_class_key *key) in keyhashentry() argument
1108 unsigned long hash = hash_long((uintptr_t)key, KEYHASH_BITS); in keyhashentry()
1114 void lockdep_register_key(struct lock_class_key *key) in lockdep_register_key() argument
1120 if (WARN_ON_ONCE(static_obj(key))) in lockdep_register_key()
1122 hash_head = keyhashentry(key); in lockdep_register_key()
1128 if (WARN_ON_ONCE(k == key)) in lockdep_register_key()
1131 hlist_add_head_rcu(&key->hash_entry, hash_head); in lockdep_register_key()
1140 static bool is_dynamic_key(const struct lock_class_key *key) in is_dynamic_key() argument
1146 if (WARN_ON_ONCE(static_obj(key))) in is_dynamic_key()
1157 hash_head = keyhashentry(key); in is_dynamic_key()
1161 if (k == key) { in is_dynamic_key()
1179 struct lockdep_subclass_key *key; in register_lock_class() local
1189 if (!lock->key) { in register_lock_class()
1192 } else if (!static_obj(lock->key) && !is_dynamic_key(lock->key)) { in register_lock_class()
1196 key = lock->key->subkeys + subclass; in register_lock_class()
1197 hash_head = classhashentry(key); in register_lock_class()
1207 if (class->key == key) in register_lock_class()
1228 class->key = key; in register_lock_class()
1248 printk("\nnew class %px: %s", class->key, class->name); in register_lock_class()
1940 depth, "", class->key, class->key); in print_lock_class_header()
2568 if (!hlock_class(prev)->key || !hlock_class(next)->key) { in check_prev_add()
2575 WARN_ONCE(!debug_locks_silent && !hlock_class(prev)->key, in check_prev_add()
2579 WARN_ONCE(!debug_locks_silent && !hlock_class(next)->key, in check_prev_add()
3012 class->key, class->name); in lookup_chain_cache_add()
3020 (unsigned long long)chain_key, class->key, class->name); in lookup_chain_cache_add()
3832 struct lock_class_key *key, int subclass) in lockdep_init_map() argument
3856 if (DEBUG_LOCKS_WARN_ON(!key)) in lockdep_init_map()
3862 if (!static_obj(key) && !is_dynamic_key(key)) { in lockdep_init_map()
3864 printk(KERN_ERR "BUG: key %px has not been registered!\n", key); in lockdep_init_map()
3868 lock->key = key; in lockdep_init_map()
3949 if (!prove_locking || lock->key == &__lockdep_no_validate__) in __lock_acquire()
3966 printk("\nacquire class [%px] %s", class->key, class->name); in __lock_acquire()
4072 WARN_ON_ONCE(depth && !hlock_class(hlock - 1)->key); in __lock_acquire()
4073 WARN_ON_ONCE(!hlock_class(hlock)->key); in __lock_acquire()
4238 struct lock_class_key *key, unsigned int subclass, in __lock_set_class() argument
4264 lockdep_init_map(lock, name, key, 0); in __lock_set_class()
4555 struct lock_class_key *key, unsigned int subclass, in lock_set_class() argument
4566 if (__lock_set_class(lock, name, key, subclass, ip)) in lock_set_class()
4977 WARN_ON_ONCE(!class->key); in zap_class()
4995 WRITE_ONCE(class->key, NULL); in zap_class()
5010 const unsigned int offset = offsetof(struct lock_class, key); in reinit_class()
5124 if (!within(class->key, start, size) && in __lockdep_free_key_range()
5293 void lockdep_unregister_key(struct lock_class_key *key) in lockdep_unregister_key() argument
5295 struct hlist_head *hash_head = keyhashentry(key); in lockdep_unregister_key()
5303 if (WARN_ON_ONCE(static_obj(key))) in lockdep_unregister_key()
5312 if (k == key) { in lockdep_unregister_key()
5319 __lockdep_free_key_range(pf, key, 1); in lockdep_unregister_key()