Lines Matching refs:bit
51 #define trace_recursion_set(bit) do { (current)->trace_recursion |= (1<<(bit)); } while (0) argument
52 #define trace_recursion_clear(bit) do { (current)->trace_recursion &= ~(1<<(bit)); } while (0) argument
53 #define trace_recursion_test(bit) ((current)->trace_recursion & (1<<(bit))) argument
80 unsigned char bit = interrupt_context_level(); in trace_get_context_bit() local
82 return TRACE_CTX_NORMAL - bit; in trace_get_context_bit()
121 int bit; in trace_test_and_set_recursion() local
126 bit = trace_get_context_bit() + start; in trace_test_and_set_recursion()
127 if (unlikely(val & (1 << bit))) { in trace_test_and_set_recursion()
136 bit = TRACE_CTX_TRANSITION + start; in trace_test_and_set_recursion()
137 if (val & (1 << bit)) { in trace_test_and_set_recursion()
143 val |= 1 << bit; in trace_test_and_set_recursion()
149 return bit; in trace_test_and_set_recursion()
155 static __always_inline void trace_clear_recursion(int bit) in trace_clear_recursion() argument
159 trace_recursion_clear(bit); in trace_clear_recursion()
183 static __always_inline void ftrace_test_recursion_unlock(int bit) in ftrace_test_recursion_unlock() argument
185 trace_clear_recursion(bit); in ftrace_test_recursion_unlock()