Lines Matching refs:subclass
725 if (class->subclass) in __print_lock_name()
726 printk(KERN_CONT "/%d", class->subclass); in __print_lock_name()
869 if (new_class->key - new_class->subclass == class->key) in count_matching_names()
880 look_up_lock_class(const struct lockdep_map *lock, unsigned int subclass) in look_up_lock_class() argument
886 if (unlikely(subclass >= MAX_LOCKDEP_SUBCLASSES)) { in look_up_lock_class()
890 "BUG: looking up invalid subclass: %u\n", subclass); in look_up_lock_class()
914 key = lock->key->subkeys + subclass; in look_up_lock_class()
1273 register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) in register_lock_class() argument
1282 class = look_up_lock_class(lock, subclass); in register_lock_class()
1293 key = lock->key->subkeys + subclass; in register_lock_class()
1327 class->subclass = subclass; in register_lock_class()
1365 if (!subclass || force) in register_lock_class()
1367 else if (subclass < NR_LOCKDEP_CACHING_CLASSES) in register_lock_class()
1368 lock->class_cache[subclass] = class; in register_lock_class()
1374 if (DEBUG_LOCKS_WARN_ON(class->subclass != subclass)) in register_lock_class()
4798 struct lock_class_key *key, int subclass, in lockdep_init_map_type() argument
4844 if (subclass) { in lockdep_init_map_type()
4852 register_lock_class(lock, subclass, 1); in lockdep_init_map_type()
4903 static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass, in __lock_acquire() argument
4922 if (subclass < NR_LOCKDEP_CACHING_CLASSES) in __lock_acquire()
4923 class = lock->class_cache[subclass]; in __lock_acquire()
4928 class = register_lock_class(lock, subclass, 0); in __lock_acquire()
5188 hlock_class(hlock)->subclass, in reacquire_held_locks()
5211 struct lock_class_key *key, unsigned int subclass, in __lock_set_class() argument
5241 class = register_lock_class(lock, subclass, 0); in __lock_set_class()
5536 struct lock_class_key *key, unsigned int subclass, in lock_set_class() argument
5547 if (__lock_set_class(lock, name, key, subclass, ip)) in lock_set_class()
5572 static void verify_lock_unused(struct lockdep_map *lock, struct held_lock *hlock, int subclass) in verify_lock_unused() argument
5575 struct lock_class *class = look_up_lock_class(lock, subclass); in verify_lock_unused()
5627 void lock_acquire(struct lockdep_map *lock, unsigned int subclass, in lock_acquire() argument
5633 trace_lock_acquire(lock, subclass, trylock, read, check, nest_lock, ip); in lock_acquire()
5653 verify_lock_unused(lock, &hlock, subclass); in lock_acquire()
5662 __lock_acquire(lock, subclass, trylock, read, check, in lock_acquire()