Lines Matching refs:flag
30 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
32 set_bit(flag,&ti->flags); in set_ti_thread_flag()
35 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
37 clear_bit(flag,&ti->flags); in clear_ti_thread_flag()
40 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
42 return test_and_set_bit(flag,&ti->flags); in test_and_set_ti_thread_flag()
45 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
47 return test_and_clear_bit(flag,&ti->flags); in test_and_clear_ti_thread_flag()
50 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
52 return test_bit(flag,&ti->flags); in test_ti_thread_flag()
55 #define set_thread_flag(flag) \ argument
56 set_ti_thread_flag(current_thread_info(), flag)
57 #define clear_thread_flag(flag) \ argument
58 clear_ti_thread_flag(current_thread_info(), flag)
59 #define test_and_set_thread_flag(flag) \ argument
60 test_and_set_ti_thread_flag(current_thread_info(), flag)
61 #define test_and_clear_thread_flag(flag) \ argument
62 test_and_clear_ti_thread_flag(current_thread_info(), flag)
63 #define test_thread_flag(flag) \ argument
64 test_ti_thread_flag(current_thread_info(), flag)