Lines Matching refs:subclass
696 if (class->subclass) in __print_lock_name()
697 printk(KERN_CONT "/%d", class->subclass); in __print_lock_name()
848 if (new_class->key - new_class->subclass == class->key) in count_matching_names()
859 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) in look_up_lock_class() argument
865 if (unlikely(subclass >= MAX_LOCKDEP_SUBCLASSES)) { in look_up_lock_class()
869 "BUG: looking up invalid subclass: %u\n", subclass); in look_up_lock_class()
893 key = lock->key->subkeys + subclass; in look_up_lock_class()
1250 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) in register_lock_class() argument
1258 class = look_up_lock_class(lock, subclass); in register_lock_class()
1269 key = lock->key->subkeys + subclass; in register_lock_class()
1303 class->subclass = subclass; in register_lock_class()
1338 if (!subclass || force) in register_lock_class()
1340 else if (subclass < NR_LOCKDEP_CACHING_CLASSES) in register_lock_class()
1341 lock->class_cache[subclass] = class; in register_lock_class()
1347 if (DEBUG_LOCKS_WARN_ON(class->subclass != subclass)) in register_lock_class()
4775 struct lock_class_key *key, int subclass, in lockdep_init_map_type() argument
4821 if (subclass) { in lockdep_init_map_type()
4829 register_lock_class(lock, subclass, 1); in lockdep_init_map_type()
4881 static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass, in __lock_acquire() argument
4900 if (subclass < NR_LOCKDEP_CACHING_CLASSES) in __lock_acquire()
4901 class = lock->class_cache[subclass]; in __lock_acquire()
4906 class = register_lock_class(lock, subclass, 0); in __lock_acquire()
5166 hlock_class(hlock)->subclass, in reacquire_held_locks()
5189 struct lock_class_key *key, unsigned int subclass, in __lock_set_class() argument
5218 class = register_lock_class(lock, subclass, 0); in __lock_set_class()
5511 struct lock_class_key *key, unsigned int subclass, in lock_set_class() argument
5522 if (__lock_set_class(lock, name, key, subclass, ip)) in lock_set_class()
5547 static void verify_lock_unused(struct lockdep_map *lock, struct held_lock *hlock, int subclass) in verify_lock_unused() argument
5550 struct lock_class *class = look_up_lock_class(lock, subclass); in verify_lock_unused()
5602 void lock_acquire(struct lockdep_map *lock, unsigned int subclass, in lock_acquire() argument
5608 trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip); in lock_acquire()
5628 verify_lock_unused(lock, &hlock, subclass); in lock_acquire()
5637 __lock_acquire(lock, subclass, trylock, read, check, in lock_acquire()