Lines Matching full:flag

49  * flag set/clear/test wrappers
53 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
55 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
58 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
60 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
63 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
67 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
69 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
72 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
74 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
77 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
79 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
82 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
84 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
87 #define set_thread_flag(flag) \ argument
88 set_ti_thread_flag(current_thread_info(), flag)
89 #define clear_thread_flag(flag) \ argument
90 clear_ti_thread_flag(current_thread_info(), flag)
91 #define update_thread_flag(flag, value) \ argument
92 update_ti_thread_flag(current_thread_info(), flag, value)
93 #define test_and_set_thread_flag(flag) \ argument
94 test_and_set_ti_thread_flag(current_thread_info(), flag)
95 #define test_and_clear_thread_flag(flag) \ argument
96 test_and_clear_ti_thread_flag(current_thread_info(), flag)
97 #define test_thread_flag(flag) \ argument
98 test_ti_thread_flag(current_thread_info(), flag)