Lines Matching refs:flag
69 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
71 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
74 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
76 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
79 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
81 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
84 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
86 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
89 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
91 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
94 #define set_thread_flag(flag) \ argument
95 set_ti_thread_flag(current_thread_info(), flag)
96 #define clear_thread_flag(flag) \ argument
97 clear_ti_thread_flag(current_thread_info(), flag)
98 #define test_and_set_thread_flag(flag) \ argument
99 test_and_set_ti_thread_flag(current_thread_info(), flag)
100 #define test_and_clear_thread_flag(flag) \ argument
101 test_and_clear_ti_thread_flag(current_thread_info(), flag)
102 #define test_thread_flag(flag) \ argument
103 test_ti_thread_flag(current_thread_info(), flag)