Lines Matching full:flag
91 * flag set/clear/test wrappers
95 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
97 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
100 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
102 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
105 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
109 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
111 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
114 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
116 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
119 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
121 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
124 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
126 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
138 #define set_thread_flag(flag) \ argument
139 set_ti_thread_flag(current_thread_info(), flag)
140 #define clear_thread_flag(flag) \ argument
141 clear_ti_thread_flag(current_thread_info(), flag)
142 #define update_thread_flag(flag, value) \ argument
143 update_ti_thread_flag(current_thread_info(), flag, value)
144 #define test_and_set_thread_flag(flag) \ argument
145 test_and_set_ti_thread_flag(current_thread_info(), flag)
146 #define test_and_clear_thread_flag(flag) \ argument
147 test_and_clear_ti_thread_flag(current_thread_info(), flag)
148 #define test_thread_flag(flag) \ argument
149 test_ti_thread_flag(current_thread_info(), flag)