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