Lines Matching refs:depth
575 int i, depth = curr->lockdep_depth; in lockdep_print_held_locks() local
577 if (!depth) { in lockdep_print_held_locks()
582 depth, depth > 1 ? "s" : "", curr->comm, task_pid_nr(curr)); in lockdep_print_held_locks()
584 for (i = 0; i < depth; i++) { in lockdep_print_held_locks()
984 int depth = 0; in get_lock_depth() local
989 depth++; in get_lock_depth()
991 return depth; in get_lock_depth()
1092 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument
1096 printk("\n-> #%u", depth); in print_circular_bug_entry()
1159 print_circular_bug_header(struct lock_list *entry, unsigned int depth, in print_circular_bug_header() argument
1181 print_circular_bug_entry(entry, depth); in print_circular_bug_header()
1199 int depth; in print_circular_bug() local
1207 depth = get_lock_depth(target); in print_circular_bug()
1209 print_circular_bug_header(target, depth, check_src, check_tgt); in print_circular_bug()
1215 print_circular_bug_entry(parent, --depth); in print_circular_bug()
1380 static void print_lock_class_header(struct lock_class *class, int depth) in print_lock_class_header() argument
1384 printk("%*s->", depth, ""); in print_lock_class_header()
1391 int len = depth; in print_lock_class_header()
1393 len += printk("%*s %s", depth, "", usage_str[bit]); in print_lock_class_header()
1398 printk("%*s }\n", depth, ""); in print_lock_class_header()
1400 printk("%*s ... key at: ",depth,""); in print_lock_class_header()
1412 int depth; in print_shortest_lock_dependencies() local
1415 depth = get_lock_depth(leaf); in print_shortest_lock_dependencies()
1418 print_lock_class_header(entry->class, depth); in print_shortest_lock_dependencies()
1419 printk("%*s ... acquired at:\n", depth, ""); in print_shortest_lock_dependencies()
1423 if (depth == 0 && (entry != root)) { in print_shortest_lock_dependencies()
1429 depth--; in print_shortest_lock_dependencies()
1430 } while (entry && (depth >= 0)); in print_shortest_lock_dependencies()
1931 int depth = curr->lockdep_depth; in check_prevs_add() local
1940 if (!depth) in check_prevs_add()
1946 if (curr->held_locks[depth].irq_context != in check_prevs_add()
1947 curr->held_locks[depth-1].irq_context) in check_prevs_add()
1951 int distance = curr->lockdep_depth - depth + 1; in check_prevs_add()
1952 hlock = curr->held_locks + depth - 1; in check_prevs_add()
1970 depth--; in check_prevs_add()
1974 if (!depth) in check_prevs_add()
1979 if (curr->held_locks[depth].irq_context != in check_prevs_add()
1980 curr->held_locks[depth-1].irq_context) in check_prevs_add()
2084 chain->depth = curr->lockdep_depth + 1 - i; in lookup_chain_cache()
2085 if (likely(nr_chain_hlocks + chain->depth <= MAX_LOCKDEP_CHAIN_HLOCKS)) { in lookup_chain_cache()
2087 nr_chain_hlocks += chain->depth; in lookup_chain_cache()
2088 for (j = 0; j < chain->depth - 1; j++, i++) { in lookup_chain_cache()
2300 int depth; in print_irq_inversion_bug() local
2323 depth = get_lock_depth(other); in print_irq_inversion_bug()
2325 if (depth == 0 && (entry != root)) { in print_irq_inversion_bug()
2331 depth--; in print_irq_inversion_bug()
2332 } while (entry && entry != root && (depth >= 0)); in print_irq_inversion_bug()
2845 unsigned int depth = curr->lockdep_depth; in separate_irq_context() local
2852 if (depth) { in separate_irq_context()
2855 prev_hlock = curr->held_locks + depth-1; in separate_irq_context()
3076 unsigned int depth, id; in __lock_acquire() local
3119 depth = curr->lockdep_depth; in __lock_acquire()
3123 if (DEBUG_LOCKS_WARN_ON(depth >= MAX_LOCK_DEPTH)) in __lock_acquire()
3128 if (depth) { in __lock_acquire()
3129 hlock = curr->held_locks + depth - 1; in __lock_acquire()
3140 hlock = curr->held_locks + depth; in __lock_acquire()
3187 if (!depth) { in __lock_acquire()
3307 unsigned int depth; in __lock_set_class() local
3310 depth = curr->lockdep_depth; in __lock_set_class()
3315 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_set_class()
3319 for (i = depth-1; i >= 0; i--) { in __lock_set_class()
3340 for (; i < depth; i++) { in __lock_set_class()
3354 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth)) in __lock_set_class()
3371 unsigned int depth; in __lock_release() local
3377 depth = curr->lockdep_depth; in __lock_release()
3382 if (DEBUG_LOCKS_WARN_ON(depth <= 0)) in __lock_release()
3390 for (i = depth-1; i >= 0; i--) { in __lock_release()
3430 for (i++; i < depth; i++) { in __lock_release()
3444 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth - 1)) in __lock_release()
3711 unsigned int depth; in __lock_contended() local
3714 depth = curr->lockdep_depth; in __lock_contended()
3719 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_contended()
3723 for (i = depth-1; i >= 0; i--) { in __lock_contended()
3763 unsigned int depth; in __lock_acquired() local
3767 depth = curr->lockdep_depth; in __lock_acquired()
3772 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_acquired()
3776 for (i = depth-1; i >= 0; i--) { in __lock_acquired()