Lines Matching refs:usage_mask
689 if (class->usage_mask & lock_flag(bit + LOCK_USAGE_DIR_MASK)) { in get_usage_char()
691 if (class->usage_mask & lock_flag(bit)) in get_usage_char()
693 } else if (class->usage_mask & lock_flag(bit)) in get_usage_char()
2239 *(unsigned long *)mask |= entry->class->usage_mask; in usage_accumulate()
2241 *(unsigned long *)mask |= (entry->class->usage_mask & LOCKF_IRQ); in usage_accumulate()
2258 return !!(entry->class->usage_mask & *(unsigned long *)mask); in usage_match()
2260 return !!((entry->class->usage_mask & LOCKF_IRQ) & *(unsigned long *)mask); in usage_match()
2314 find_usage_forwards(struct lock_list *root, unsigned long usage_mask, in find_usage_forwards() argument
2321 result = __bfs_forwards(root, &usage_mask, usage_match, usage_skip, target_entry); in find_usage_forwards()
2331 find_usage_backwards(struct lock_list *root, unsigned long usage_mask, in find_usage_backwards() argument
2338 result = __bfs_backwards(root, &usage_mask, usage_match, usage_skip, target_entry); in find_usage_backwards()
2355 if (class->usage_mask & (1 << bit)) { in print_lock_class_header()
2791 unsigned long usage_mask = 0, forward_mask, backward_mask; in check_irq_usage() local
2804 ret = __bfs_backwards(&this, &usage_mask, usage_accumulate, usage_skip, NULL); in check_irq_usage()
2810 usage_mask &= LOCKF_USED_IN_IRQ_ALL; in check_irq_usage()
2811 if (!usage_mask) in check_irq_usage()
2818 forward_mask = exclusive_mask(usage_mask); in check_irq_usage()
2845 backward_mask = original_mask(target_entry1->class->usage_mask & LOCKF_ENABLED_IRQ_ALL); in check_irq_usage()
2859 ret = find_exclusive_match(target_entry->class->usage_mask, in check_irq_usage()
2860 target_entry1->class->usage_mask, in check_irq_usage()
4011 if (unlikely(hlock_class(this)->usage_mask & (1 << bad_bit))) { in valid_state()
4095 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_forwards() local
4098 ret = find_usage_forwards(&root, usage_mask, &target_entry); in check_usage_forwards()
4107 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_forwards()
4130 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_backwards() local
4133 ret = find_usage_backwards(&root, usage_mask, &target_entry); in check_usage_backwards()
4142 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_backwards()
4656 if (likely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4664 if (unlikely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4667 if (!hlock_class(this)->usage_mask) in mark_lock()
4670 hlock_class(this)->usage_mask |= new_mask; in mark_lock()
5681 if (!(class->usage_mask & mask)) in verify_lock_unused()