• Home
  • Raw
  • Download

Lines Matching refs:bit

668 static inline unsigned long lock_flag(enum lock_usage_bit bit)  in lock_flag()  argument
670 return 1UL << bit; in lock_flag()
673 static char get_usage_char(struct lock_class *class, enum lock_usage_bit bit) in get_usage_char() argument
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()
2323 int bit; in print_lock_class_header() local
2332 for (bit = 0; bit < LOCK_TRACE_STATES; bit++) { in print_lock_class_header()
2333 if (class->usage_mask & (1 << bit)) { in print_lock_class_header()
2336 len += printk("%*s %s", depth, "", usage_str[bit]); in print_lock_class_header()
2338 print_lock_trace(class->usage_traces[bit], len); in print_lock_class_header()
2621 static inline const char *state_name(enum lock_usage_bit bit) in state_name() argument
2623 if (bit & LOCK_USAGE_READ_MASK) in state_name()
2624 return state_rnames[bit >> LOCK_USAGE_DIR_MASK]; in state_name()
2626 return state_names[bit >> LOCK_USAGE_DIR_MASK]; in state_name()
2737 int bit, excl, excl_read; in find_exclusive_match() local
2739 for_each_set_bit(bit, &mask, LOCK_USED) { in find_exclusive_match()
2745 excl = exclusive_bit(bit); in find_exclusive_match()
2748 *bitp = bit; in find_exclusive_match()
2752 *bitp = bit; in find_exclusive_match()
4045 enum lock_usage_bit bit) in check_usage_forwards() argument
4050 enum lock_usage_bit read_bit = bit + LOCK_USAGE_READ_MASK; in check_usage_forwards()
4051 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_forwards()
4063 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_forwards()
4065 this, 1, state_name(bit)); in check_usage_forwards()
4080 enum lock_usage_bit bit) in check_usage_backwards() argument
4085 enum lock_usage_bit read_bit = bit + LOCK_USAGE_READ_MASK; in check_usage_backwards()
4086 unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit); in check_usage_backwards()
4098 if (target_entry->class->usage_mask & lock_flag(bit)) { in check_usage_backwards()
4100 this, 0, state_name(bit)); in check_usage_backwards()
4151 static inline int state_verbose(enum lock_usage_bit bit, in state_verbose() argument
4154 return state_verbose_f[bit >> LOCK_USAGE_DIR_MASK](class); in state_verbose()
4158 enum lock_usage_bit bit, const char *name);