Lines Matching refs:flag
62 static __always_inline void set_cpu_flag(int flag) in set_cpu_flag() argument
64 this_pcpu()->flags |= (1UL << flag); in set_cpu_flag()
67 static __always_inline void clear_cpu_flag(int flag) in clear_cpu_flag() argument
69 this_pcpu()->flags &= ~(1UL << flag); in clear_cpu_flag()
72 static __always_inline bool test_cpu_flag(int flag) in test_cpu_flag() argument
74 return this_pcpu()->flags & (1UL << flag); in test_cpu_flag()
77 static __always_inline bool test_and_set_cpu_flag(int flag) in test_and_set_cpu_flag() argument
79 if (test_cpu_flag(flag)) in test_and_set_cpu_flag()
81 set_cpu_flag(flag); in test_and_set_cpu_flag()
85 static __always_inline bool test_and_clear_cpu_flag(int flag) in test_and_clear_cpu_flag() argument
87 if (!test_cpu_flag(flag)) in test_and_clear_cpu_flag()
89 clear_cpu_flag(flag); in test_and_clear_cpu_flag()
97 static __always_inline bool test_cpu_flag_of(int flag, int cpu) in test_cpu_flag_of() argument
99 return per_cpu(pcpu_devices, cpu).flags & (1UL << flag); in test_cpu_flag_of()