Lines Matching refs:depth
559 int i, depth = curr->lockdep_depth; in lockdep_print_held_locks() local
561 if (!depth) { in lockdep_print_held_locks()
566 depth, depth > 1 ? "s" : "", curr->comm, task_pid_nr(curr)); in lockdep_print_held_locks()
568 for (i = 0; i < depth; i++) { in lockdep_print_held_locks()
971 int depth = 0; in get_lock_depth() local
976 depth++; in get_lock_depth()
978 return depth; in get_lock_depth()
1077 print_circular_bug_entry(struct lock_list *target, int depth) in print_circular_bug_entry() argument
1081 printk("\n-> #%u", depth); in print_circular_bug_entry()
1144 print_circular_bug_header(struct lock_list *entry, unsigned int depth, in print_circular_bug_header() argument
1166 print_circular_bug_entry(entry, depth); in print_circular_bug_header()
1184 int depth; in print_circular_bug() local
1192 depth = get_lock_depth(target); in print_circular_bug()
1194 print_circular_bug_header(target, depth, check_src, check_tgt); in print_circular_bug()
1200 print_circular_bug_entry(parent, --depth); in print_circular_bug()
1365 static void print_lock_class_header(struct lock_class *class, int depth) in print_lock_class_header() argument
1369 printk("%*s->", depth, ""); in print_lock_class_header()
1376 int len = depth; in print_lock_class_header()
1378 len += printk("%*s %s", depth, "", usage_str[bit]); in print_lock_class_header()
1383 printk("%*s }\n", depth, ""); in print_lock_class_header()
1385 printk("%*s ... key at: ",depth,""); in print_lock_class_header()
1397 int depth; in print_shortest_lock_dependencies() local
1400 depth = get_lock_depth(leaf); in print_shortest_lock_dependencies()
1403 print_lock_class_header(entry->class, depth); in print_shortest_lock_dependencies()
1404 printk("%*s ... acquired at:\n", depth, ""); in print_shortest_lock_dependencies()
1408 if (depth == 0 && (entry != root)) { in print_shortest_lock_dependencies()
1414 depth--; in print_shortest_lock_dependencies()
1415 } while (entry && (depth >= 0)); in print_shortest_lock_dependencies()
1916 int depth = curr->lockdep_depth; in check_prevs_add() local
1925 if (!depth) in check_prevs_add()
1931 if (curr->held_locks[depth].irq_context != in check_prevs_add()
1932 curr->held_locks[depth-1].irq_context) in check_prevs_add()
1936 int distance = curr->lockdep_depth - depth + 1; in check_prevs_add()
1937 hlock = curr->held_locks + depth-1; in check_prevs_add()
1955 depth--; in check_prevs_add()
1959 if (!depth) in check_prevs_add()
1964 if (curr->held_locks[depth].irq_context != in check_prevs_add()
1965 curr->held_locks[depth-1].irq_context) in check_prevs_add()
2069 chain->depth = curr->lockdep_depth + 1 - i; in lookup_chain_cache()
2070 if (likely(nr_chain_hlocks + chain->depth <= MAX_LOCKDEP_CHAIN_HLOCKS)) { in lookup_chain_cache()
2072 nr_chain_hlocks += chain->depth; in lookup_chain_cache()
2073 for (j = 0; j < chain->depth - 1; j++, i++) { in lookup_chain_cache()
2285 int depth; in print_irq_inversion_bug() local
2308 depth = get_lock_depth(other); in print_irq_inversion_bug()
2310 if (depth == 0 && (entry != root)) { in print_irq_inversion_bug()
2316 depth--; in print_irq_inversion_bug()
2317 } while (entry && entry != root && (depth >= 0)); in print_irq_inversion_bug()
2830 unsigned int depth = curr->lockdep_depth; in separate_irq_context() local
2837 if (depth) { in separate_irq_context()
2840 prev_hlock = curr->held_locks + depth-1; in separate_irq_context()
3051 unsigned int depth, id; in __lock_acquire() local
3097 depth = curr->lockdep_depth; in __lock_acquire()
3101 if (DEBUG_LOCKS_WARN_ON(depth >= MAX_LOCK_DEPTH)) in __lock_acquire()
3106 if (depth) { in __lock_acquire()
3107 hlock = curr->held_locks + depth - 1; in __lock_acquire()
3118 hlock = curr->held_locks + depth; in __lock_acquire()
3164 if (!depth) { in __lock_acquire()
3304 unsigned int depth; in __lock_set_class() local
3307 depth = curr->lockdep_depth; in __lock_set_class()
3312 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_set_class()
3316 for (i = depth-1; i >= 0; i--) { in __lock_set_class()
3337 for (; i < depth; i++) { in __lock_set_class()
3351 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth)) in __lock_set_class()
3367 unsigned int depth; in lock_release_non_nested() local
3374 depth = curr->lockdep_depth; in lock_release_non_nested()
3379 if (DEBUG_LOCKS_WARN_ON(!depth)) in lock_release_non_nested()
3383 for (i = depth-1; i >= 0; i--) { in lock_release_non_nested()
3421 for (i++; i < depth; i++) { in lock_release_non_nested()
3435 if (DEBUG_LOCKS_WARN_ON(curr->lockdep_depth != depth - 1)) in lock_release_non_nested()
3450 unsigned int depth; in lock_release_nested() local
3455 depth = curr->lockdep_depth - 1; in lock_release_nested()
3456 hlock = curr->held_locks + depth; in lock_release_nested()
3468 if (DEBUG_LOCKS_WARN_ON(!depth && (hlock->prev_chain_key != 0))) in lock_release_nested()
3692 unsigned int depth; in __lock_contended() local
3695 depth = curr->lockdep_depth; in __lock_contended()
3700 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_contended()
3704 for (i = depth-1; i >= 0; i--) { in __lock_contended()
3744 unsigned int depth; in __lock_acquired() local
3748 depth = curr->lockdep_depth; in __lock_acquired()
3753 if (DEBUG_LOCKS_WARN_ON(!depth)) in __lock_acquired()
3757 for (i = depth-1; i >= 0; i--) { in __lock_acquired()