• Home
  • Raw
  • Download

Lines Matching refs:key

375 #define __classhashfn(key)	hash_long((unsigned long)key, CLASSHASH_BITS)  argument
376 #define classhashentry(key) (classhash_table + __classhashfn((key))) argument
412 static inline u64 iterate_chain_key(u64 key, u32 idx) in iterate_chain_key() argument
414 u32 k0 = key, k1 = key >> 32; in iterate_chain_key()
631 const char *__get_key_name(const struct lockdep_subclass_key *key, char *str) in __get_key_name() argument
633 return kallsyms_lookup((unsigned long)key, NULL, NULL, NULL, str); in __get_key_name()
687 name = __get_key_name(class->key, str); in __print_lock_name()
718 name = __get_key_name(lock->key->subkeys, str); in print_lockdep_cache()
833 if (new_class->key - new_class->subclass == class->key) in count_matching_names()
846 struct lockdep_subclass_key *key; in look_up_lock_class() local
866 if (unlikely(!lock->key)) in look_up_lock_class()
878 key = lock->key->subkeys + subclass; in look_up_lock_class()
880 hash_head = classhashentry(key); in look_up_lock_class()
889 if (class->key == key) { in look_up_lock_class()
895 lock->key != &__lockdep_no_validate__); in look_up_lock_class()
924 lock->key = (void *)can_addr; in assign_lock_key()
926 lock->key = (void *)can_addr; in assign_lock_key()
928 lock->key = (void *)lock; in assign_lock_key()
1164 static inline struct hlist_head *keyhashentry(const struct lock_class_key *key) in keyhashentry() argument
1166 unsigned long hash = hash_long((uintptr_t)key, KEYHASH_BITS); in keyhashentry()
1172 void lockdep_register_key(struct lock_class_key *key) in lockdep_register_key() argument
1178 if (WARN_ON_ONCE(static_obj(key))) in lockdep_register_key()
1180 hash_head = keyhashentry(key); in lockdep_register_key()
1186 if (WARN_ON_ONCE(k == key)) in lockdep_register_key()
1189 hlist_add_head_rcu(&key->hash_entry, hash_head); in lockdep_register_key()
1198 static bool is_dynamic_key(const struct lock_class_key *key) in is_dynamic_key() argument
1204 if (WARN_ON_ONCE(static_obj(key))) in is_dynamic_key()
1215 hash_head = keyhashentry(key); in is_dynamic_key()
1219 if (k == key) { in is_dynamic_key()
1237 struct lockdep_subclass_key *key; in register_lock_class() local
1248 if (!lock->key) { in register_lock_class()
1251 } else if (!static_obj(lock->key) && !is_dynamic_key(lock->key)) { in register_lock_class()
1255 key = lock->key->subkeys + subclass; in register_lock_class()
1256 hash_head = classhashentry(key); in register_lock_class()
1266 if (class->key == key) in register_lock_class()
1287 class->key = key; in register_lock_class()
1313 printk("\nnew class %px: %s", class->key, class->name); in register_lock_class()
2299 depth, "", class->key, class->key); in print_lock_class_header()
2960 if (!hlock_class(prev)->key || !hlock_class(next)->key) { in check_prev_add()
2967 WARN_ONCE(!debug_locks_silent && !hlock_class(prev)->key, in check_prev_add()
2971 WARN_ONCE(!debug_locks_silent && !hlock_class(next)->key, in check_prev_add()
3653 class->key, class->name); in lookup_chain_cache_add()
3661 (unsigned long long)chain_key, class->key, class->name); in lookup_chain_cache_add()
4703 struct lock_class_key *key, int subclass, in lockdep_init_map_type() argument
4732 if (DEBUG_LOCKS_WARN_ON(!key)) in lockdep_init_map_type()
4738 if (!static_obj(key) && !is_dynamic_key(key)) { in lockdep_init_map_type()
4740 printk(KERN_ERR "BUG: key %px has not been registered!\n", key); in lockdep_init_map_type()
4744 lock->key = key; in lockdep_init_map_type()
4825 if (!prove_locking || lock->key == &__lockdep_no_validate__) in __lock_acquire()
4842 printk("\nacquire class [%px] %s", class->key, class->name); in __lock_acquire()
4951 WARN_ON_ONCE(depth && !hlock_class(hlock - 1)->key); in __lock_acquire()
4952 WARN_ON_ONCE(!hlock_class(hlock)->key); in __lock_acquire()
5117 struct lock_class_key *key, unsigned int subclass, in __lock_set_class() argument
5143 lockdep_init_map_type(lock, name, key, 0, in __lock_set_class()
5440 struct lock_class_key *key, unsigned int subclass, in lock_set_class() argument
5451 if (__lock_set_class(lock, name, key, subclass, ip)) in lock_set_class()
5904 WARN_ON_ONCE(!class->key); in zap_class()
5922 WRITE_ONCE(class->key, NULL); in zap_class()
5940 const unsigned int offset = offsetof(struct lock_class, key); in reinit_class()
6052 if (!within(class->key, start, size) && in __lockdep_free_key_range()
6225 void lockdep_unregister_key(struct lock_class_key *key) in lockdep_unregister_key() argument
6227 struct hlist_head *hash_head = keyhashentry(key); in lockdep_unregister_key()
6235 if (WARN_ON_ONCE(static_obj(key))) in lockdep_unregister_key()
6242 if (k == key) { in lockdep_unregister_key()
6251 __lockdep_free_key_range(pf, key, 1); in lockdep_unregister_key()