Lines Matching full:flag

62  * flag set/clear/test wrappers
66 static inline void set_ti_thread_flag(struct thread_info *ti, int flag) in set_ti_thread_flag() argument
68 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
71 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
73 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
76 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
80 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
82 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
85 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
87 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
90 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
92 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
95 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
97 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
100 #define set_thread_flag(flag) \ argument
101 set_ti_thread_flag(current_thread_info(), flag)
102 #define clear_thread_flag(flag) \ argument
103 clear_ti_thread_flag(current_thread_info(), flag)
104 #define update_thread_flag(flag, value) \ argument
105 update_ti_thread_flag(current_thread_info(), flag, value)
106 #define test_and_set_thread_flag(flag) \ argument
107 test_and_set_ti_thread_flag(current_thread_info(), flag)
108 #define test_and_clear_thread_flag(flag) \ argument
109 test_and_clear_ti_thread_flag(current_thread_info(), flag)
110 #define test_thread_flag(flag) \ argument
111 test_ti_thread_flag(current_thread_info(), flag)