Lines Matching refs:flag

87 static inline void set_ti_thread_flag(struct thread_info *ti, int flag)  in set_ti_thread_flag()  argument
89 set_bit(flag, (unsigned long *)&ti->flags); in set_ti_thread_flag()
92 static inline void clear_ti_thread_flag(struct thread_info *ti, int flag) in clear_ti_thread_flag() argument
94 clear_bit(flag, (unsigned long *)&ti->flags); in clear_ti_thread_flag()
97 static inline void update_ti_thread_flag(struct thread_info *ti, int flag, in update_ti_thread_flag() argument
101 set_ti_thread_flag(ti, flag); in update_ti_thread_flag()
103 clear_ti_thread_flag(ti, flag); in update_ti_thread_flag()
106 static inline int test_and_set_ti_thread_flag(struct thread_info *ti, int flag) in test_and_set_ti_thread_flag() argument
108 return test_and_set_bit(flag, (unsigned long *)&ti->flags); in test_and_set_ti_thread_flag()
111 static inline int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag) in test_and_clear_ti_thread_flag() argument
113 return test_and_clear_bit(flag, (unsigned long *)&ti->flags); in test_and_clear_ti_thread_flag()
116 static inline int test_ti_thread_flag(struct thread_info *ti, int flag) in test_ti_thread_flag() argument
118 return test_bit(flag, (unsigned long *)&ti->flags); in test_ti_thread_flag()
130 #define set_thread_flag(flag) \ argument
131 set_ti_thread_flag(current_thread_info(), flag)
132 #define clear_thread_flag(flag) \ argument
133 clear_ti_thread_flag(current_thread_info(), flag)
134 #define update_thread_flag(flag, value) \ argument
135 update_ti_thread_flag(current_thread_info(), flag, value)
136 #define test_and_set_thread_flag(flag) \ argument
137 test_and_set_ti_thread_flag(current_thread_info(), flag)
138 #define test_and_clear_thread_flag(flag) \ argument
139 test_and_clear_ti_thread_flag(current_thread_info(), flag)
140 #define test_thread_flag(flag) \ argument
141 test_ti_thread_flag(current_thread_info(), flag)