Lines Matching refs:this
1406 static int add_lock_to_list(struct lock_class *this, in add_lock_to_list() argument
1420 entry->class = this; in add_lock_to_list()
2012 static noinline void print_circular_bug(struct lock_list *this, in print_circular_bug() argument
2025 this->trace = save_trace(); in print_circular_bug()
2026 if (!this->trace) in print_circular_bug()
2068 static unsigned long __lockdep_count_forward_deps(struct lock_list *this) in __lockdep_count_forward_deps() argument
2073 __bfs_forwards(this, (void *)&count, noop_count, NULL, &target_entry); in __lockdep_count_forward_deps()
2080 struct lock_list this; in lockdep_count_forward_deps() local
2082 __bfs_init_root(&this, class); in lockdep_count_forward_deps()
2086 ret = __lockdep_count_forward_deps(&this); in lockdep_count_forward_deps()
2093 static unsigned long __lockdep_count_backward_deps(struct lock_list *this) in __lockdep_count_backward_deps() argument
2098 __bfs_backwards(this, (void *)&count, noop_count, NULL, &target_entry); in __lockdep_count_backward_deps()
2106 struct lock_list this; in lockdep_count_backward_deps() local
2108 __bfs_init_root(&this, class); in lockdep_count_backward_deps()
2112 ret = __lockdep_count_backward_deps(&this); in lockdep_count_backward_deps()
2773 struct lock_list this, that; in check_irq_usage() local
2780 bfs_init_rootb(&this, prev); in check_irq_usage()
2782 ret = __bfs_backwards(&this, &usage_mask, usage_accumulate, usage_skip, NULL); in check_irq_usage()
2825 ret = find_usage_backwards(&this, backward_mask, &target_entry); in check_irq_usage()
2843 print_bad_irq_dependency(curr, &this, &that, in check_irq_usage()
3903 static int mark_lock(struct task_struct *curr, struct held_lock *this,
3924 print_usage_bug(struct task_struct *curr, struct held_lock *this, in print_usage_bug() argument
3945 print_lock(this); in print_usage_bug()
3948 print_lock_trace(hlock_class(this)->usage_traces[prev_bit], 1); in print_usage_bug()
3952 print_usage_bug_scenario(this); in print_usage_bug()
3964 valid_state(struct task_struct *curr, struct held_lock *this, in valid_state() argument
3967 if (unlikely(hlock_class(this)->usage_mask & (1 << bad_bit))) { in valid_state()
3969 print_usage_bug(curr, this, bad_bit, new_bit); in valid_state()
3982 struct held_lock *this, int forwards, in print_irq_inversion_bug() argument
3999 print_lock(this); in print_irq_inversion_bug()
4044 check_usage_forwards(struct task_struct *curr, struct held_lock *this, in check_usage_forwards() argument
4053 bfs_init_root(&root, this); in check_usage_forwards()
4065 this, 1, state_name(bit)); in check_usage_forwards()
4068 this, 1, state_name(read_bit)); in check_usage_forwards()
4079 check_usage_backwards(struct task_struct *curr, struct held_lock *this, in check_usage_backwards() argument
4088 bfs_init_rootb(&root, this); in check_usage_backwards()
4100 this, 0, state_name(bit)); in check_usage_backwards()
4103 this, 0, state_name(read_bit)); in check_usage_backwards()
4161 mark_lock_irq(struct task_struct *curr, struct held_lock *this, in mark_lock_irq() argument
4172 if (!valid_state(curr, this, new_bit, excl_bit)) in mark_lock_irq()
4178 if (!read && !valid_state(curr, this, new_bit, in mark_lock_irq()
4192 if (!check_usage_backwards(curr, this, excl_bit)) in mark_lock_irq()
4199 if (!check_usage_forwards(curr, this, excl_bit)) in mark_lock_irq()
4203 if (state_verbose(new_bit, hlock_class(this))) in mark_lock_irq()
4587 static int mark_lock(struct task_struct *curr, struct held_lock *this, in mark_lock() argument
4597 if (new_bit == LOCK_USED && this->read) in mark_lock()
4606 if (likely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4614 if (unlikely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4617 if (!hlock_class(this)->usage_mask) in mark_lock()
4620 hlock_class(this)->usage_mask |= new_mask; in mark_lock()
4623 if (!(hlock_class(this)->usage_traces[new_bit] = save_trace())) in mark_lock()
4628 ret = mark_lock_irq(curr, this, new_bit); in mark_lock()
4641 print_lock(this); in mark_lock()