Lines Matching defs:flag
47 static __always_inline void set_cpu_flag(int flag)
49 S390_lowcore.cpu_flags |= (1UL << flag);
52 static __always_inline void clear_cpu_flag(int flag)
54 S390_lowcore.cpu_flags &= ~(1UL << flag);
57 static __always_inline bool test_cpu_flag(int flag)
59 return S390_lowcore.cpu_flags & (1UL << flag);
62 static __always_inline bool test_and_set_cpu_flag(int flag)
64 if (test_cpu_flag(flag))
66 set_cpu_flag(flag);
70 static __always_inline bool test_and_clear_cpu_flag(int flag)
72 if (!test_cpu_flag(flag))
74 clear_cpu_flag(flag);
79 * Test CIF flag of another CPU. The caller needs to ensure that
82 static __always_inline bool test_cpu_flag_of(int flag, int cpu)
86 return lc->cpu_flags & (1UL << flag);