Lines Matching refs:usage_mask
658 if (class->usage_mask & lock_flag(bit + LOCK_USAGE_DIR_MASK)) { in get_usage_char()
660 if (class->usage_mask & lock_flag(bit)) in get_usage_char()
662 } else if (class->usage_mask & lock_flag(bit)) in get_usage_char()
2185 *(unsigned long *)mask |= entry->class->usage_mask; in usage_accumulate()
2187 *(unsigned long *)mask |= (entry->class->usage_mask & LOCKF_IRQ); in usage_accumulate()
2204 return !!(entry->class->usage_mask & *(unsigned long *)mask); in usage_match()
2206 return !!((entry->class->usage_mask & LOCKF_IRQ) & *(unsigned long *)mask); in usage_match()
2255 find_usage_forwards(struct lock_list *root, unsigned long usage_mask, in find_usage_forwards() argument
2262 result = __bfs_forwards(root, &usage_mask, usage_match, usage_skip, target_entry); in find_usage_forwards()
2272 find_usage_backwards(struct lock_list *root, unsigned long usage_mask, in find_usage_backwards() argument
2279 result = __bfs_backwards(root, &usage_mask, usage_match, usage_skip, target_entry); in find_usage_backwards()
2296 if (class->usage_mask & (1 << bit)) { in print_lock_class_header()
2732 unsigned long usage_mask = 0, forward_mask, backward_mask; in check_irq_usage() local
2745 ret = __bfs_backwards(&this, &usage_mask, usage_accumulate, usage_skip, NULL); in check_irq_usage()
2751 usage_mask &= LOCKF_USED_IN_IRQ_ALL; in check_irq_usage()
2752 if (!usage_mask) in check_irq_usage()
2759 forward_mask = exclusive_mask(usage_mask); in check_irq_usage()
2786 backward_mask = original_mask(target_entry1->class->usage_mask & LOCKF_ENABLED_IRQ_ALL); in check_irq_usage()
2800 ret = find_exclusive_match(target_entry->class->usage_mask, in check_irq_usage()
2801 target_entry1->class->usage_mask, in check_irq_usage()
3930 if (unlikely(hlock_class(this)->usage_mask & (1 << bad_bit))) { in valid_state()
4014 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_forwards() local
4017 ret = find_usage_forwards(&root, usage_mask, &target_entry); in check_usage_forwards()
4026 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_forwards()
4049 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_backwards() local
4052 ret = find_usage_backwards(&root, usage_mask, &target_entry); in check_usage_backwards()
4061 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_backwards()
4569 if (likely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4577 if (unlikely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
4580 if (!hlock_class(this)->usage_mask) in mark_lock()
4583 hlock_class(this)->usage_mask |= new_mask; in mark_lock()
5550 if (!(class->usage_mask & mask)) in verify_lock_unused()